SGDK
A free and open development kit for the Sega Mega Drive
Loading...
Searching...
No Matches
snd_dpcm2.h
Go to the documentation of this file.
1
15
16#ifndef _SND_DPCM2_H_
17#define _SND_DPCM2_H_
18
19#define SND_isPlaying_2ADPCM _Pragma("GCC error \"This method is deprecated, use SND_DPCM2_isPlaying instead.\"")
20#define SND_startPlay_2ADPCM _Pragma("GCC error \"This method is deprecated, use SND_DPCM2_startPlay instead.\"")
21#define SND_stopPlay_2ADPCM _Pragma("GCC error \"This method is deprecated, use SND_DPCM2_stopPlay instead.\"")
22
29void SND_DPCM2_loadDriver(const bool waitReady);
36void SND_DPCM2_unloadDriver(void);
37
54bool SND_DPCM2_isPlaying(const u16 channel_mask);
75void SND_DPCM2_startPlay(const u8 *sample, const u32 len, const SoundPCMChannel channel, const bool loop);
86void SND_DPCM2_stopPlay(const SoundPCMChannel channel);
87
88#endif // _SND_DPCM2_H_
void SND_DPCM2_loadDriver(const bool waitReady)
Load the Z80_DRIVER_DPCM2 sound driver.
Definition snd_dpcm2.c:23
void SND_DPCM2_stopPlay(const SoundPCMChannel channel)
Stop playing the specified channel (2 channels ADPCM player driver). No effect if no sample was curr...
Definition snd_dpcm2.c:136
void SND_DPCM2_unloadDriver(void)
Unload the Z80_DRIVER_DPCM2 sound driver.
Definition snd_dpcm2.c:53
void SND_DPCM2_startPlay(const u8 *sample, const u32 len, const SoundPCMChannel channel, const bool loop)
Start playing a sample on specified channel (2 channels ADPCM player driver). If a sample was curren...
Definition snd_dpcm2.c:79
bool SND_DPCM2_isPlaying(const u16 channel_mask)
Return play status of specified channel (2 channels ADPCM player driver).
Definition snd_dpcm2.c:59
SoundPCMChannel
Sound PCM channel enum.
Definition sound.h:18
unsigned long u32
Definition types.h:105
unsigned short u16
Definition types.h:100
unsigned char u8
Definition types.h:95