13#define HEPHAUDIO_STREAM_EVENT_USER_ARG_KEY "audio_stream"
25 std::shared_ptr<Native::NativeAudio> pNativeAudio;
26 std::shared_ptr<IAudioDecoder> pAudioDecoder;
38 AudioStream(std::shared_ptr<Native::NativeAudio> pNativeAudio);
53 AudioStream(std::shared_ptr<Native::NativeAudio> pNativeAudio,
const std::filesystem::path& filePath);
#define HEPH_API
Definition HephShared.h:124
class for storing the audio samples in internal format.
Definition AudioBuffer.h:16
Class for playing audio files without loading them into memory. Reads the portion of audio data from ...
Definition AudioStream.h:23
const AudioFormatInfo & GetAudioFormatInfo() const
AudioStream(Audio &audio, const std::filesystem::path &filePath)
AudioStream(std::shared_ptr< Native::NativeAudio > pNativeAudio)
void SetPosition(double position)
AudioObject * GetAudioObject() const
AudioStream(Audio &audio)
double GetPosition() const
AudioStream(std::shared_ptr< Native::NativeAudio > pNativeAudio, const std::filesystem::path &filePath)
std::shared_ptr< IAudioDecoder > GetAudioDecoder() const
size_t GetFrameCount() const
void SetAudioDecoder(std::shared_ptr< IAudioDecoder > pNewDecoder)
AudioStream(AudioStream &&rhs) noexcept
std::shared_ptr< Native::NativeAudio > GetNativeAudio() const
void ChangeFile(const std::filesystem::path &newFilePath)
manages the native audio classes.
Definition Audio.h:47
stores information that's necessary to play audio.
Definition AudioObject.h:33
stores the information required to handle an event.
Definition EventParams.h:16