audio_unlock();
}
+VG_STATIC
+enum audio_sprite_type world_audio_sample_sprite_random(v3f origin, v3f output);
VG_STATIC void audio_ambient_sprites_update( world_instance *world, v3f co )
{
static float accum = 0.0f;
if( sprite_type != k_audio_sprite_type_none ){
if( sprite_type == k_audio_sprite_type_grass ){
- audio_ambient_sprite_play( sprite_pos, &audio_grass[rand()%4] );
+ audio_ambient_sprite_play( sprite_pos, &audio_grass[vg_randu32()%4] );
}
else if( sprite_type == k_audio_sprite_type_water ){
- if( world->water.enabled )
- audio_ambient_sprite_play( sprite_pos, &audio_water[rand()%6] );
+ if( world->water.enabled ){
+ audio_ambient_sprite_play( sprite_pos,
+ &audio_water[vg_randu32()%6] );
+ }
}
}
}