KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Data structure for sound effect playback. More...
#include <sfxmgr.h>
Data Fields | |
int | chn |
The channel to play on. | |
sfxhnd_t | idx |
The handle to the sound effect to play. | |
int | vol |
The volume to play at (between 0 and 255). | |
int | pan |
The panning value of the sound effect. | |
int | loop |
Whether to loop the sound effect or not. | |
int | freq |
Frequency. | |
unsigned int | loopstart |
Loop start index (in samples). | |
unsigned int | loopend |
Loop end index (in samples). | |
Data structure for sound effect playback.
This structure is used to pass data to the extended version of sound effect playback functions.
int sfx_play_data_t::chn |
The channel to play on.
If chn == -1, the next available channel will be used automatically.
int sfx_play_data_t::freq |
Frequency.
sfxhnd_t sfx_play_data_t::idx |
The handle to the sound effect to play.
int sfx_play_data_t::loop |
Whether to loop the sound effect or not.
unsigned int sfx_play_data_t::loopend |
Loop end index (in samples).
If loopend == 0, the loop end will default to sfx size in samples.
unsigned int sfx_play_data_t::loopstart |
Loop start index (in samples).
int sfx_play_data_t::pan |
The panning value of the sound effect.
0 is all the way to the left, 128 is center, 255 is all the way to the right.
int sfx_play_data_t::vol |
The volume to play at (between 0 and 255).