coastline 0.0.4
Loading...
Searching...
No Matches
channel.h
Go to the documentation of this file.
1#ifndef COASTLINE_EAR_CHANNEL_H
2#define COASTLINE_EAR_CHANNEL_H
3
4#include <stdint.h>
5
6#ifdef __cplusplus
7#include "ear/mfc.h"
8#include "ear/registry.h"
9
11
13class EarChannel {
14public:
20 EarChannel();
25 ~EarChannel();
26
35 void SetChannelSmoothingStep(uint16_t control);
36
46 int EnsureChannelPlaybackCapacity(uint16_t priority, uint16_t attenuation);
47
48 int32_t flag01;
49 int32_t sequential;
50 int32_t paused;
51 int32_t muted;
52 int32_t targetGainChanged;
53 int32_t shutdownRequested;
54 double gain;
55 double targetGain;
56 double gainStep;
57 uint16_t maximumEvents;
58 uint16_t maximumStartedEvents;
59 uint16_t startedEventCount;
60 uint16_t priorityLevel;
61 CWordList recentEvents;
62 EarWordPointerRegistry<ScheduledEarEvent> events;
63};
64
70extern uint32_t g_dwCdAudioChannelId;
75extern uint32_t g_dwMidiChannelId;
81extern uint32_t g_earChannelControlResultFlags;
83
84extern "C" {
85#endif
86
96int __stdcall EarRegisterChannelExportWrapper(uint32_t channel,
97 uint32_t flags,
98 uint32_t gainPercent,
99 uint32_t playbackLimits);
100
114int __stdcall EAR_DLL_RegisterChannel(uint32_t channel,
115 uint32_t flags,
116 uint32_t gainPercent,
117 uint32_t playbackLimits);
118
124int __stdcall EarShutDownChannelExportWrapper(uint32_t channel);
125
134int __stdcall EAR_DLL_ShutDownChannel(uint32_t channel);
135
142int __stdcall EarClearChannelExportWrapper(uint32_t channel, int keepActive);
143
152int __stdcall EAR_DLL_ClearChannel(uint32_t channel, int keepActive);
153
160uint32_t __stdcall EarChangeChannelControlExportWrapper(uint32_t channel, uint32_t control);
161
173uint32_t __stdcall EAR_DLL_ChangeChannelControl(uint32_t channel, uint32_t control);
174
182void __stdcall EarSetAttenuationLevelExportWrapper(uint32_t channel, uint32_t level);
183
191void __stdcall EAR_DLL_SetAttenuationLevel(uint32_t channel, uint32_t level);
192
193#ifdef __cplusplus
194}
195#endif
196
197#endif /* COASTLINE_EAR_CHANNEL_H */
int __stdcall EAR_DLL_RegisterChannel(uint32_t channel, uint32_t flags, uint32_t gainPercent, uint32_t playbackLimits)
Register a channel.
int __stdcall EarRegisterChannelExportWrapper(uint32_t channel, uint32_t flags, uint32_t gainPercent, uint32_t playbackLimits)
int __stdcall EarClearChannelExportWrapper(uint32_t channel, int keepActive)
void __stdcall EAR_DLL_SetAttenuationLevel(uint32_t channel, uint32_t level)
Set the gain a channel moves towards, or the master attenuation of every channel.
uint32_t __stdcall EAR_DLL_ChangeChannelControl(uint32_t channel, uint32_t control)
Change or query a channel.
uint32_t __stdcall EarChangeChannelControlExportWrapper(uint32_t channel, uint32_t control)
int __stdcall EAR_DLL_ClearChannel(uint32_t channel, int keepActive)
Delete the events of a channel, or stop the active ones.
int __stdcall EarShutDownChannelExportWrapper(uint32_t channel)
int __stdcall EAR_DLL_ShutDownChannel(uint32_t channel)
Shut down a channel and its events.
void __stdcall EarSetAttenuationLevelExportWrapper(uint32_t channel, uint32_t level)
Forward channel or master gain adjustment to EAR_DLL_SetAttenuationLevel().
Schedule playback with delayed starts, attenuation, spatial updates, and completion timers.
Definition scheduledevent.h:33