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

#include <RetroPlayerAudio.h>

Inheritance diagram for KODI::RETRO::CRetroPlayerAudio:
KODI::RETRO::IRetroPlayerStream

Public Member Functions

 CRetroPlayerAudio (CRPProcessInfo &processInfo)
 
 ~CRetroPlayerAudio () override
 
void Enable (bool bEnabled)
 
bool OpenStream (const StreamProperties &properties) override
 Open a stream.
 
bool GetStreamBuffer (unsigned int width, unsigned int height, StreamBuffer &buffer) override
 Get a buffer for zero-copy stream data.
 
void AddStreamData (const StreamPacket &packet) override
 Add a data packet to a stream.
 
void CloseStream () override
 Close the stream.
 
- Public Member Functions inherited from KODI::RETRO::IRetroPlayerStream
virtual ~IRetroPlayerStream ()=default
 

Constructor & Destructor Documentation

◆ CRetroPlayerAudio()

CRetroPlayerAudio::CRetroPlayerAudio ( CRPProcessInfo & processInfo)
explicit

◆ ~CRetroPlayerAudio()

CRetroPlayerAudio::~CRetroPlayerAudio ( )
override

Member Function Documentation

◆ AddStreamData()

void CRetroPlayerAudio::AddStreamData ( const StreamPacket & packet)
overridevirtual

Add a data packet to a stream.

Parameters
packetThe data packet

Implements KODI::RETRO::IRetroPlayerStream.

◆ CloseStream()

void CRetroPlayerAudio::CloseStream ( )
overridevirtual

Close the stream.

Implements KODI::RETRO::IRetroPlayerStream.

◆ Enable()

void KODI::RETRO::CRetroPlayerAudio::Enable ( bool bEnabled)
inline

◆ GetStreamBuffer()

bool KODI::RETRO::CRetroPlayerAudio::GetStreamBuffer ( unsigned int width,
unsigned int height,
StreamBuffer & buffer )
inlineoverridevirtual

Get a buffer for zero-copy stream data.

Parameters
widthThe framebuffer width, or 0 for no width specified
heightThe framebuffer height, or 0 for no height specified
[out]bufferThe buffer, or unmodified if false is returned
Returns
True if a buffer was returned, false otherwise

Implements KODI::RETRO::IRetroPlayerStream.

◆ OpenStream()

bool CRetroPlayerAudio::OpenStream ( const StreamProperties & properties)
overridevirtual

Open a stream.

Returns
True if the stream was opened, false otherwise

Implements KODI::RETRO::IRetroPlayerStream.


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