kodi
Public Member Functions | List of all members
KODI::RETRO::CRetroPlayerAudio Class Reference
Inheritance diagram for KODI::RETRO::CRetroPlayerAudio:
Inheritance graph
[legend]
Collaboration diagram for KODI::RETRO::CRetroPlayerAudio:
Collaboration graph
[legend]

Public Member Functions

 CRetroPlayerAudio (CRPProcessInfo &processInfo)
 
void Enable (bool bEnabled)
 
bool OpenStream (const StreamProperties &properties) override
 Open a stream. More...
 
bool GetStreamBuffer (unsigned int width, unsigned int height, StreamBuffer &buffer) override
 Get a buffer for zero-copy stream data. More...
 
void AddStreamData (const StreamPacket &packet) override
 Add a data packet to a stream. More...
 
void CloseStream () override
 Close the stream.
 

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.

◆ 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: