font source file
[vg.git] / vg_audio_dsp.h
index e6a953ec5cae6e7c8acd6f356388d27b3e46aac3..0eaeb544ae6855da0687b106ad10eb8e0d4f3b15 100644 (file)
@@ -154,8 +154,7 @@ static void vg_dsp_init( void )
    vg_dsp.buffer = vg_linear_alloc( vg_mem.rtmemory, 1024*1024*1 );
    vg_dsp.view_texture_buffer = vg_linear_alloc( vg_mem.rtmemory, 512*512 );
 
-   vg_async_item *call = vg_async_alloc(0);
-   vg_async_dispatch( call, async_vg_dsp_alloc_texture );
+   vg_async_call( async_vg_dsp_alloc_texture, NULL, 0 );
 
    /* temporary global design */
    dsp_init_lpf( &__lpf_mud_free, 125.0f );
@@ -168,7 +167,7 @@ static void vg_dsp_init( void )
    for( int i=0; i<8; i++ ){
       float reflection_time = ((sizes[i])/343.0f) * 1000.0f;
 
-      float var   = 1.0f + (vg_randf()*2.0f - 1.0f) * reflection_variance,
+      float var   = 1.0f + (vg_randf64()*2.0f - 1.0f) * reflection_variance,
             total = reflection_time * var;
 
       dsp_init_delay( &__echos[i], total / 1000.0f );