15#define HEPHAUDIO_INFINITE_LOOP (0)
18#define HEPHAUDIO_RENDER_HANDLER_DEFAULT &HephAudio::AudioObject::DefaultRenderHandler
21#define HEPHAUDIO_RENDER_HANDLER_MATCH_FORMAT &HephAudio::AudioObject::MatchFormatRenderHandler
24#define HEPHAUDIO_FINISHED_PLAYING_HANDLER_DEFAULT &HephAudio::AudioObject::DefaultFinishedPlayingHandler
#define HEPH_API
Definition HephShared.h:124
class for storing the audio samples in internal format.
Definition AudioBuffer.h:16
class for managing callback functions.
Definition Event.h:25
stores information that's necessary to play audio.
Definition AudioObject.h:33
bool isPaused
Definition AudioObject.h:57
double GetPosition() const
static void DefaultFinishedPlayingHandler(const Heph::EventParams &eventParams)
AudioBuffer buffer
Definition AudioObject.h:77
AudioObject(AudioObject &&rhs) noexcept
static void MatchFormatRenderHandler(const Heph::EventParams &eventParams)
Heph::Guid id
Definition AudioObject.h:38
Heph::Event OnRender
Definition AudioObject.h:89
std::string name
Definition AudioObject.h:50
static void DefaultRenderHandler(const Heph::EventParams &eventParams)
std::filesystem::path filePath
Definition AudioObject.h:44
Heph::Event OnFinishedPlaying
Definition AudioObject.h:95
size_t frameIndex
Definition AudioObject.h:83
uint32_t playCount
Definition AudioObject.h:64
double volume
Definition AudioObject.h:71
void SetPosition(double position)
stores the information required to handle an event.
Definition EventParams.h:16
struct for storing globally unique identifiers.
Definition Guid.h:14