18#define HEPHAUDIO_PLAYLIST_EVENT_USER_ARG_KEY "audio_playlist"
45 std::vector<std::filesystem::path> files;
47 bool applyFadeInOrDelay;
48 TransitionEffect transitionEffect;
49 double transitionDuration_s;
126 AudioPlaylist& operator=(
const std::vector<std::filesystem::path>& rhs);
189 void Add(
const std::filesystem::path& filePath);
196 void Add(
const std::vector<std::filesystem::path>& files);
204 void Insert(
const std::filesystem::path& filePath,
size_t index);
212 void Insert(
const std::vector<std::filesystem::path>& files,
size_t index);
233 void Remove(
const std::filesystem::path& filePath);
#define HEPH_API
Definition HephShared.h:132
class for creating playlists. Uses AudioStream internally to play the files.
Definition AudioPlaylist.h:28
void Remove(size_t index, size_t count)
void SetTransitionEffect(TransitionEffect transitionEffect)
void Insert(const std::vector< std::filesystem::path > &files, size_t index)
void Remove(const std::filesystem::path &filePath)
AudioPlaylist(Native::NativeAudio *pNativeAudio)
AudioPlaylist(Audio &audio)
Native::NativeAudio * GetNativeAudio() const
void Add(const std::filesystem::path &filePath)
AudioPlaylist(Audio &audio, TransitionEffect transitionEffect, double transitionDuration_s, const std::vector< std::filesystem::path > &files)
AudioPlaylist(Native::NativeAudio *pNativeAudio, TransitionEffect transitionEffect, double transitionDuration_s)
void Remove(size_t index)
void SetTransitionDuration(double transitionDuration_s)
TransitionEffect GetTransitionEffect() const
AudioPlaylist(Audio &audio, TransitionEffect transitionEffect, double transitionDuration_s)
AudioPlaylist(Native::NativeAudio *pNativeAudio, const std::vector< std::filesystem::path > &files)
AudioPlaylist(Native::NativeAudio *pNativeAudio, TransitionEffect transitionEffect, double transitionDuration_s, const std::vector< std::filesystem::path > &files)
void Add(const std::vector< std::filesystem::path > &files)
TransitionEffect
Definition AudioPlaylist.h:35
AudioPlaylist(AudioPlaylist &&rhs) noexcept
AudioPlaylist(Audio &audio, const std::vector< std::filesystem::path > &files)
void Insert(const std::filesystem::path &filePath, size_t index)
double GetTransitionDuration() const
Class for playing audio files without loading them into memory. Reads the portion of audio data from ...
Definition AudioStream.h:23
manages the native audio classes.
Definition Audio.h:39
base class for the classes that interact with the native audio APIs.
Definition NativeAudio.h:28
struct for storing the arguments for the audio render events.
Definition AudioRenderEventArgs.h:16
struct for storing the results of the audio render events.
Definition AudioRenderEventResult.h:15
stores the information required to handle an event.
Definition EventParams.h:16