coastline 0.0.4
Loading...
Searching...
No Matches
soundchannel.h
Go to the documentation of this file.
1#ifndef COASTLINE_SOUNDCHANNEL_H
2#define COASTLINE_SOUNDCHANNEL_H
3
8
9#if TGR_BOSS_RALLY
10#include <stdbool.h>
11#endif
12
13#include "common/types.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#if TGR_BOSS_RALLY
31bool InitSoundChannel(s16 channel, s32 sample, u32 length, u32 loopLength);
32
45bool StartSoundChannelMuted(s16 channel, s32 sample, u32 length, u32 loopLength);
46#else
59void InitSoundChannel(s16 channel, s8 *sample, u32 length, u32 loopLength);
60
74void StartSoundChannelMuted(s16 channel, s8 *sample, u32 length, u32 loopLength);
75#endif /* TGR_BOSS_RALLY */
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* COASTLINE_SOUNDCHANNEL_H */
void InitSoundChannel(s16 channel, s8 *sample, u32 length, u32 loopLength)
Play a sample on a sound effect channel at its own rate and the middle levels.
void StartSoundChannelMuted(s16 channel, s8 *sample, u32 length, u32 loopLength)
Play a sample on a sound effect channel at its own rate and no level, for SetSoundChannelVolume() to ...
The integer and floating-point types of the console, for headers shared with Windows.
unsigned int u32
Definition ultratypes.h:20
signed char s8
Definition ultratypes.h:23
short s16
Definition ultratypes.h:24
int s32
Definition ultratypes.h:25