#pragma once #include #include "IAudioStream.h" /// @brief Interface for playback of audio streams. class IAudioStreamPlayer { public: virtual ~IAudioStreamPlayer() = 0; /// @brief Starts playback of the given audio stream. /// @param audioStream The stream to play. /// @return True if playback was successfully started, or false otherwise. virtual bool StartPlayback(std::unique_ptr audioStream) = 0; /// @brief Stops playback of the currently playing audio stream. virtual void StopPlayback() = 0; }; inline IAudioStreamPlayer::~IAudioStreamPlayer() { }