Maxmod
Loading...
Searching...
No Matches
Data Fields
t_mmsoundeffect Struct Reference

Information for playing a sound effect. More...

#include <mm_types.h>

Data Fields

mm_sfxhand handle
 Handle of previous sound effect. If a valid handle is given, it will be recycled.
 
mm_hword id
 ID of sample to be played. Values are defined in the soundbank header. 0x0000 to 0xFFFE (0xFFFF is invalid). This value is only used if 'sample' is NULL.
 
mm_byte panning
 Panning level. Ranges from 0 (far-left) to 255 (far-right).
 
mm_hword rate
 Playback rate. 6.10 fixed point number. (1024 = original sound)
 
const void * sample
 Address of a sample that isn't in the soundbank. The ID is ignored if this entry is not NULL.
 
mm_byte volume
 Volume level. Ranges from 0 (silent) to 255 (normal).
 

Detailed Description

Information for playing a sound effect.

The sample entry is only supported on DS and may be used to play an external sample source.


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