Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::GAME::CGameClientStreamAudio Class Reference

#include <GameClientStreamAudio.h>

Inheritance diagram for KODI::GAME::CGameClientStreamAudio:
KODI::GAME::IGameClientStream

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.
 

Constructor & Destructor Documentation

◆ CGameClientStreamAudio()

CGameClientStreamAudio::CGameClientStreamAudio ( double sampleRate)

◆ ~CGameClientStreamAudio()

KODI::GAME::CGameClientStreamAudio::~CGameClientStreamAudio ( )
inlineoverride

Member Function Documentation

◆ AddData()

void CGameClientStreamAudio::AddData ( const game_stream_packet & packet)
overridevirtual

Add a data packet to a stream.

Parameters
packetThe data packet

Implements KODI::GAME::IGameClientStream.

◆ CloseStream()

void CGameClientStreamAudio::CloseStream ( )
overridevirtual

Release the RetroPlayer stream resource.

Implements KODI::GAME::IGameClientStream.

◆ OpenStream()

bool CGameClientStreamAudio::OpenStream ( RETRO::IRetroPlayerStream * stream,
const game_stream_properties & properties )
overridevirtual

Open the stream.

Parameters
streamThe RetroPlayer resource to take ownership of
Returns
True if the stream was opened, false otherwise

Implements KODI::GAME::IGameClientStream.


The documentation for this class was generated from the following files: