Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <GameClientStreamAudio.h>
Public Member Functions | |
CGameClientStreamAudio (double sampleRate) | |
~CGameClientStreamAudio () override | |
bool | OpenStream (RETRO::IRetroPlayerStream *stream, const game_stream_properties &properties) override |
Open the stream. | |
void | CloseStream () override |
Release the RetroPlayer stream resource. | |
void | AddData (const game_stream_packet &packet) override |
Add a data packet to a stream. | |
Public Member Functions inherited from KODI::GAME::IGameClientStream | |
virtual | ~IGameClientStream ()=default |
virtual bool | GetBuffer (unsigned int width, unsigned int height, game_stream_buffer &buffer) |
Get a buffer for zero-copy stream data. | |
virtual void | ReleaseBuffer (game_stream_buffer &buffer) |
Free an allocated buffer. | |
CGameClientStreamAudio::CGameClientStreamAudio | ( | double | sampleRate | ) |
|
inlineoverride |
|
overridevirtual |
Add a data packet to a stream.
packet | The data packet |
Implements KODI::GAME::IGameClientStream.
|
overridevirtual |
Release the RetroPlayer stream resource.
Implements KODI::GAME::IGameClientStream.
|
overridevirtual |
Open the stream.
stream | The RetroPlayer resource to take ownership of |
Implements KODI::GAME::IGameClientStream.