projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
entities zones
[carveJwlIkooP6JGAAIwe30JlM.git]
/
player_skate.c
diff --git
a/player_skate.c
b/player_skate.c
index bfccb61a2930b5c146544182eb5d3327b379858f..0362386289b361901505252bf19f8f37e16b39a3 100644
(file)
--- a/
player_skate.c
+++ b/
player_skate.c
@@
-1198,11
+1198,17
@@
VG_STATIC void player__skate_post_update( player_instance *player )
const u32 flags = AUDIO_FLAG_SPACIAL_3D|AUDIO_FLAG_LOOP;
const u32 flags = AUDIO_FLAG_SPACIAL_3D|AUDIO_FLAG_LOOP;
- if( !s->aud_air )
- s->aud_air = audio_request_channel( &audio_board[1], flags );
+ if( !s->aud_air ){
+ s->aud_air = audio_get_first_idle_channel();
+ if( s->aud_air )
+ audio_channel_init( s->aud_air, &audio_board[1], flags );
+ }
- if( !s->aud_slide )
- s->aud_slide = audio_request_channel( &audio_board[2], flags );
+ if( !s->aud_slide ){
+ s->aud_slide = audio_get_first_idle_channel();
+ if( s->aud_slide )
+ audio_channel_init( s->aud_slide, &audio_board[2], flags );
+ }
/* brrrrrrrrrrrt sound for tiles and stuff
/* brrrrrrrrrrrt sound for tiles and stuff