18#define HEPHAUDIO_PLAYLIST_EVENT_USER_ARG_KEY "audio_playlist"
31 std::vector<std::filesystem::path> files;
56 AudioPlaylist(std::shared_ptr<Native::NativeAudio> pNativeAudio,
const std::vector<std::filesystem::path>& files);
74 AudioPlaylist& operator=(
const std::vector<std::filesystem::path>& rhs);
112 void Add(
const std::filesystem::path& filePath);
119 void Add(
const std::vector<std::filesystem::path>& files);
127 void Insert(
const std::filesystem::path& filePath,
size_t index);
135 void Insert(
const std::vector<std::filesystem::path>& files,
size_t index);
156 void Remove(
const std::filesystem::path& filePath);
#define HEPH_API
Definition HephShared.h:124
class for creating playlists. Uses AudioStream internally to play the files.
Definition AudioPlaylist.h:28
void Remove(size_t index, size_t count)
void Insert(const std::vector< std::filesystem::path > &files, size_t index)
void Remove(const std::filesystem::path &filePath)
AudioPlaylist(Audio &audio)
AudioPlaylist(std::shared_ptr< Native::NativeAudio > pNativeAudio, const std::vector< std::filesystem::path > &files)
void Add(const std::filesystem::path &filePath)
void Remove(size_t index)
AudioPlaylist(std::shared_ptr< Native::NativeAudio > pNativeAudio)
std::shared_ptr< Native::NativeAudio > GetNativeAudio() const
void Add(const std::vector< std::filesystem::path > &files)
AudioObject * GetAudioObject() const
AudioPlaylist(AudioPlaylist &&rhs) noexcept
AudioPlaylist(Audio &audio, const std::vector< std::filesystem::path > &files)
void Insert(const std::filesystem::path &filePath, size_t index)
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: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