coastline 0.0.4
Loading...
Searching...
No Matches
soundsample.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
10#define SOUND_CHANNEL_COUNT 15
12#define SOUND_SAMPLE_COUNT 26
13
14struct SoundBufferNode;
15
17typedef union {
18 uint32_t initialValue;
21
27
35
42#define g_SfxWaveVariantTable (g_aSoundChannelBuffers[24].channelBuffers)
43
50#define g_LoopingSoundTable (g_aSoundChannelBuffers[25].channelBuffers)
51
52#ifdef __cplusplus
53}
54#endif
SoundSample g_aSoundChannelBuffers[SOUND_SAMPLE_COUNT]
Initial channel words become buffer pointers when samples load.
#define SOUND_SAMPLE_COUNT
The number of sound sample rows, including variant rows.
Definition soundsample.h:12
#define SOUND_CHANNEL_COUNT
The number of sound channels.
Definition soundsample.h:10
A sound buffer of a sample, in a list.
Definition soundbuffer.h:67
The loaded buffers and frequency multiplier of one sound sample.
Definition soundsample.h:23
double dFrequencyScale
Definition soundsample.h:25
SoundChannelSlot channelBuffers[SOUND_CHANNEL_COUNT]
Definition soundsample.h:24
A channel word before and after sound buffers load.
Definition soundsample.h:17
uint32_t initialValue
Definition soundsample.h:18
struct SoundBufferNode * buffer
Definition soundsample.h:19