SGDK
A free and open development kit for the Sega Mega Drive
Loading...
Searching...
No Matches
snd_pcm4.h
Go to the documentation of this file.
1
18
19#ifndef _SND_PCM4_H_
20#define _SND_PCM4_H_
21
22#define SND_isPlaying_4PCM_ENV _Pragma("GCC error \"This method is deprecated, use SND_PCM4_isPlaying instead.\"")
23#define SND_startPlay_4PCM_ENV _Pragma("GCC error \"This method is deprecated, use SND_PCM4_startPlay instead.\"")
24#define SND_stopPlay_4PCM_ENV _Pragma("GCC error \"This method is deprecated, use SND_PCM4_stopPlay instead.\"")
25#define SND_getVolume_4PCM_ENV _Pragma("GCC error \"This method is deprecated, use SND_PCM4_getVolume instead.\"")
26#define SND_setVolume_4PCM_ENV _Pragma("GCC error \"This method is deprecated, use SND_PCM4_setVolume instead.\"")
27
28#define SND_isPlaying_4PCM _Pragma("GCC error \"This method is deprecated, use SND_PCM4_isPlaying instead.\"")
29#define SND_startPlay_4PCM _Pragma("GCC error \"This method is deprecated, use SND_PCM4_startPlay instead.\"")
30#define SND_stopPlay_4PCM _Pragma("GCC error \"This method is deprecated, use SND_PCM4_stopPlay instead.\"")
31#define SND_getVolume_4PCM _Pragma("GCC error \"This method is deprecated, use SND_PCM4_getVolume instead.\"")
32#define SND_setVolume_4PCM _Pragma("GCC error \"This method is deprecated, use SND_PCM4_setVolume instead.\"")
33
40void SND_PCM4_loadDriver(const bool waitReady);
47void SND_PCM4_unloadDriver(void);
48
67bool SND_PCM4_isPlaying(const u16 channel_mask);
90void SND_PCM4_startPlay(const u8 *sample, const u32 len, const SoundPCMChannel channel, const bool loop);
103void SND_PCM4_stopPlay(const SoundPCMChannel channel);
117void SND_PCM4_setVolume(const SoundPCMChannel channel, const u8 volume);
133
134#endif // _SND_PCM4_H_
void SND_PCM4_setVolume(const SoundPCMChannel channel, const u8 volume)
Change envelop / volume of specified channel (4 channels PCM player driver).
Definition snd_pcm4.c:171
void SND_PCM4_loadDriver(const bool waitReady)
Load the Z80_DRIVER_PCM4 sound driver.
Definition snd_pcm4.c:24
void SND_PCM4_unloadDriver(void)
Unload the Z80_DRIVER_PCM4 sound driver.
Definition snd_pcm4.c:58
bool SND_PCM4_isPlaying(const u16 channel_mask)
Return play status of specified channel (4 channels PCM player driver).
Definition snd_pcm4.c:64
void SND_PCM4_startPlay(const u8 *sample, const u32 len, const SoundPCMChannel channel, const bool loop)
Start playing a sample on specified channel (4 channels PCM player driver). If a sample was currentl...
Definition snd_pcm4.c:84
u8 SND_PCM4_getVolume(const SoundPCMChannel channel)
Return envelop / volume level of specified channel (4 channels PCM player driver).
Definition snd_pcm4.c:188
void SND_PCM4_stopPlay(const SoundPCMChannel channel)
Stop playing the specified channel (4 channels PCM player driver). No effect if no sample was curren...
Definition snd_pcm4.c:141
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