41#define SOUND_PCM_CH_AUTO 0xFF
47#define SOUND_PCM_CH1 Z80_DRV_CH0_SFT
52#define SOUND_PCM_CH2 Z80_DRV_CH1_SFT
57#define SOUND_PCM_CH3 Z80_DRV_CH2_SFT
62#define SOUND_PCM_CH4 Z80_DRV_CH3_SFT
68#define SOUND_PCM_CH1_MSK Z80_DRV_CH0
73#define SOUND_PCM_CH2_MSK Z80_DRV_CH1
78#define SOUND_PCM_CH3_MSK Z80_DRV_CH2
83#define SOUND_PCM_CH4_MSK Z80_DRV_CH3
90#define SOUND_RATE_32000 0
96#define SOUND_RATE_22050 1
101#define SOUND_RATE_16000 2
107#define SOUND_RATE_13400 3
112#define SOUND_RATE_11025 4
118#define SOUND_RATE_8000 5
124#define SOUND_PAN_LEFT 0x80
129#define SOUND_PAN_RIGHT 0x40
134#define SOUND_PAN_CENTER 0xC0
324#define SND_isPlaying_4PCM_ENV SND_isPlaying_4PCM
325#define SND_startPlay_4PCM_ENV SND_startPlay_4PCM
326#define SND_stopPlay_4PCM_ENV SND_stopPlay_4PCM
327#define SND_getVolume_4PCM_ENV SND_getVolume_4PCM
328#define SND_setVolume_4PCM_ENV SND_setVolume_4PCM
337#define SND_isPlaying_XGM() _Pragma("GCC error \"This method is deprecated, use XGM_isPlaying() instead.\"")
341#define SND_startPlay_XGM(song) _Pragma("GCC error \"This method is deprecated, use XGM_startPlay(..) instead.\"")
345#define SND_stopPlay_XGM() _Pragma("GCC error \"This method is deprecated, use XGM_stopPlay() instead.\"")
349#define SND_pausePlay_XGM() _Pragma("GCC error \"This method is deprecated, use XGM_pausePlay() instead.\"")
353#define SND_resumePlay_XGM() _Pragma("GCC error \"This method is deprecated, use XGM_resumePlay() instead.\"")
358#define SND_isPlayingPCM_XGM(channel_mask) _Pragma("GCC error \"This method is deprecated, use XGM_isPlayingPCM(..) instead.\"")
362#define SND_setPCM_XGM(id, sample, len) _Pragma("GCC error \"This method is deprecated, use XGM_setPCM(..) instead.\"")
366#define SND_setPCMFast_XGM(id, sample, len) _Pragma("GCC error \"This method is deprecated, use XGM_setPCMFast(..) instead.\"")
370#define SND_startPlayPCM_XGM(id, prio, ch) _Pragma("GCC error \"This method is deprecated, use XGM_startPlayPCM(..) instead.\"")
374#define SND_stopPlayPCM_XGM(channel) _Pragma("GCC error \"This method is deprecated, use XGM_stopPlayPCM(..) instead.\"")
379#define SND_getMusicTempo_XGM() _Pragma("GCC error \"This method is deprecated, use XGM_getMusicTempo() instead.\"")
383#define SND_setMusicTempo_XGM(value) _Pragma("GCC error \"This method is deprecated, use XGM_setMusicTempo(..) instead.\"")
388#define SND_getManualSync_XGM() _Pragma("GCC error \"This method is deprecated, use XGM_getManualSync() instead.\"")
392#define SND_setManualSync_XGM() _Pragma("GCC error \"This method is deprecated, use XGM_setManualSync() instead.\"")
396#define SND_nextFrame_XGM() _Pragma("GCC error \"This method is deprecated, use XGM_nextFrame() instead.\"")
400#define SND_nextXFrame_XGM(num) _Pragma("GCC error \"This method is deprecated, use XGM_nextXFrame(..) instead.\"")
405#define SND_setLoopNumber_XGM(value) _Pragma("GCC error \"This method is deprecated, use XGM_setLoopNumber(..) instead.\"")
410#define SND_set68KBUSProtection_XGM(value) _Pragma("GCC error \"This method is deprecated, use XGM_set68KBUSProtection(..) instead.\"")
414#define SND_getForceDelayDMA_XGM() _Pragma("GCC error \"This method is deprecated, use XGM_getForceDelayDMA() instead.\"")
418#define SND_setForceDelayDMA_XGM(value) _Pragma("GCC error \"This method is deprecated, use XGM_setForceDelayDMA(..) instead.\"")
422#define SND_getCPULoad_XGM() _Pragma("GCC error \"This method is deprecated, use XGM_getCPULoad() instead.\"")
u8 SND_isPlaying_4PCM(const u16 channel_mask)
Return play status of specified channel (4 channels PCM player driver).
Definition sound.c:228
void SND_startPlay_4PCM(const u8 *sample, const u32 len, const u16 channel, const u8 loop)
Start playing a sample on specified channel (4 channels PCM player driver). If a sample was currentl...
Definition sound.c:248
void SND_stopPlay_2ADPCM(const u16 channel)
Stop playing the specified channel (2 channels ADPCM player driver). No effect if no sample was curr...
Definition sound.c:193
void SND_stopPlay_PCM(void)
Stop playing (Single channel PCM player driver). No effect if no sample was currently playing.
Definition sound.c:81
void SND_setVolume_4PCM(const u16 channel, const u8 volume)
Change envelop / volume of specified channel (4 channels PCM player driver).
Definition sound.c:335
void SND_stopPlay_4PCM(const u16 channel)
Stop playing the specified channel (4 channels PCM player driver). No effect if no sample was curren...
Definition sound.c:305
void SND_startPlay_2ADPCM(const u8 *sample, const u32 len, const u16 channel, const u8 loop)
Start playing a sample on specified channel (2 channels ADPCM player driver). If a sample was curren...
Definition sound.c:136
u8 SND_getVolume_4PCM(const u16 channel)
Return envelop / volume level of specified channel (4 channels PCM player driver).
Definition sound.c:352
void SND_startPlay_PCM(const u8 *sample, const u32 len, const u8 rate, const u8 pan, const u8 loop)
Start playing a sample (Single channel PCM player driver). If a sample was currently playing then it...
Definition sound.c:41
u8 SND_isPlaying_2ADPCM(const u16 channel_mask)
Return play status of specified channel (2 channels ADPCM player driver).
Definition sound.c:116
u8 SND_isPlaying_PCM(void)
Return play status (Single channel PCM player driver).
Definition sound.c:21
unsigned long u32
Definition types.h:105
unsigned short u16
Definition types.h:100
unsigned char u8
Definition types.h:95