KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
sfx_play_data_t Struct Reference

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).
 

Detailed Description

Data structure for sound effect playback.

This structure is used to pass data to the extended version of sound effect playback functions.

Field Documentation

◆ chn

int sfx_play_data_t::chn

The channel to play on.

If chn == -1, the next available channel will be used automatically.

◆ freq

int sfx_play_data_t::freq

Frequency.

◆ idx

sfxhnd_t sfx_play_data_t::idx

The handle to the sound effect to play.

◆ loop

int sfx_play_data_t::loop

Whether to loop the sound effect or not.

◆ loopend

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.

◆ loopstart

unsigned int sfx_play_data_t::loopstart

Loop start index (in samples).

◆ pan

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.

◆ vol

int sfx_play_data_t::vol

The volume to play at (between 0 and 255).


The documentation for this struct was generated from the following file: