1#ifndef COASTLINE_EAR_SCHEDULEDEVENT_H
2#define COASTLINE_EAR_SCHEDULEDEVENT_H
6#if TGR_PLATFORM == TGR_PLATFORM_WIN
190 int InitializeScheduledEarEventPlayback();
192 void UpdateScheduledEventDopplerScale();
194 long double CalculateScheduledEventDopplerScale();
196 void DeactivateScheduledEarEvent();
198 void ReleaseScheduledEventPlayback();
205 char *allocatedSource;
207 int playbackInitialized;
211 int frequencyScaleOverrideEnabled;
214 int lifetimeCountdownSuppressed;
215 int activeDurationLimitEnabled;
216 int attenuationRequired;
217 int distanceLimitEnabled;
218 int trackElapsedTime;
233 double previousRadialSpeed;
234 DWORD previousDistanceTime;
239 double crossingInitialSpeed;
240 double crossingSpeedStep;
245 double frequencyScale;
246 double baseFrequencyScale;
247 double startPosition;
248 double backendParameter;
Common event playback state with overridable media, device, and stream operations.
Definition earplayback.h:17
friend std::uint32_t __stdcall EAR_DLL_MoveEvent(const EarEventParams *params)
Update an event of a channel from its parameters: its matrix, its pause and mute, its pitch,...
int CanStartScheduledEarEvent()
void UnmuteScheduledEventPlayback()
Clear backend mute without changing event timers.
friend class EarChannel
Definition scheduledevent.h:182
~ScheduledEarEvent()
Release playback resources and source storage copied by this event.
void UpdateScheduledEventPlayback(double gain)
Advance fade attenuation and apply directional gain, frequency, and backend parameters.
ScheduledEarEvent(std::uint16_t flags, const void *source)
Allocate playback for the source type and initialise scheduling defaults.
void AdvanceScheduledEventTimers(std::uint32_t elapsedMilliseconds)
Advance pending timers or the active duration limit and mark expired playback complete.
friend void __stdcall UpdateEarPlaybackEngine(void)
Advance the gain of each channel towards its target, and the timers of each event of each channel tha...
ScheduledEarEvent(const ScheduledEarEvent &other)
Create a twin with separate playback and borrowed source storage.
int ResumeScheduledEventPlayback()
Clear paused status and attempt to restart an active paused backend.
void MuteScheduledEventPlayback()
Set backend mute without pausing event timers.
std::uint32_t GetScheduledEventMediaLength()
friend std::uint32_t __stdcall EAR_DLL_MixEvent(const EarEventParams *params)
Make an event from its parameters and add it to its channel, by its distance, direction,...
int GetScheduledEventPlaybackStatus()
int IsScheduledEventPlaybackStreaming()
void RequestScheduledEventStop()
Disable backend looping and mark playback complete for subsequent event retirement.
int HasScheduledEventFrequencyOverride()
int StartScheduledEarEvent()
Initialise playback if necessary, apply smoothing and frequency, and start the backend.
void PauseScheduledEventPlayback()
Pause backend playback and discard the backend stop result.
int IsScheduledEventPlaybackMuted()
int IsScheduledEventPendingExpiryDisabled()
int IsScheduledEventStopping()
int IsScheduledEventPlaybackActive()
int IsScheduledEventPlaybackComplete()
void ApplyScheduledEventStopControl(std::uint16_t control)
Select a stop fade, or disable looping and attempt a start when bit zero is set.
The parameters of an event, as the game passes them to MixEvent and MoveEvent.
Definition eventparameters.h:52
The integer and floating-point types of the console, for headers shared with Windows.
Source representation selected by the low byte of the scheduled event flags.
Definition scheduledevent.h:21
std::uint16_t presetHandle
Registered wave-sample handle when the source type is 3.
Definition scheduledevent.h:25
const void * address
Borrowed filename or media pointer for the selected playback implementation.
Definition scheduledevent.h:23