6 sfx_vol_control audio_vol_all
= { .val
= 1.0f
, .name
= "All" };
10 .sources
= "sound/skate.ogg\0"
15 sfx_system audio_player0
=
19 .vol_src
= &audio_vol_all
,
21 .flags
= SFX_FLAG_REPEAT
| SFX_FLAG_PERSISTENT
24 sfx_system audio_player1
=
28 .vol_src
= &audio_vol_all
,
30 .flags
= SFX_FLAG_REPEAT
| SFX_FLAG_PERSISTENT
33 sfx_system audio_player2
=
37 .vol_src
= &audio_vol_all
,
39 .flags
= SFX_FLAG_REPEAT
| SFX_FLAG_PERSISTENT
42 static void audio_init(void)
44 sfx_set_init( &audio_board
, NULL
);
45 sfx_set_play( &audio_board
, &audio_player0
, 0 );
46 sfx_set_play( &audio_board
, &audio_player1
, 1 );
47 sfx_set_play( &audio_board
, &audio_player2
, 2 );
50 static void audio_free(void)
52 sfx_set_free( &audio_board
);