You've already forked pico-launcher
mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-01-09 16:28:48 -08:00
21 lines
612 B
C++
21 lines
612 B
C++
#pragma once
|
|
#include <memory>
|
|
#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<IAudioStream> audioStream) = 0;
|
|
|
|
/// @brief Stops playback of the currently playing audio stream.
|
|
virtual void StopPlayback() = 0;
|
|
};
|
|
|
|
inline IAudioStreamPlayer::~IAudioStreamPlayer() { }
|