AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AOpusSoundPipe Class Reference

Sound pipe for OPUS format, decodes OPUS packets. More...

#include <AUI/Audio/Formats/opus/AOpusSoundPipe.h>

Detailed Description

Note
ready packets should be passed with write() method for proper work, header must precede the packets

Member Function Documentation

> All members, including inherited

◆ info()

AAudioFormat AOpusSoundPipe::info ( )
overridevirtual
Returns
AAudioFormat containing info about sound stream

Implements ISoundInputStream.

◆ read()

size_t AOpusSoundPipe::read ( char * dst,
size_t size )
overridevirtual
Sneaky exceptions
An implementation can throw any exception that subclasses AIOException.
Parameters
dstdestination buffer
sizedestination buffer's size. > 0
Returns
number of read bytes (including 0)

Implements IInputStream.

◆ write()

void AOpusSoundPipe::write ( const char * src,
size_t size )
overridevirtual
Sneaky exceptions
An implementation can throw any exception that subclasses AIOException.
Parameters
srcsource buffer
sizesource buffer's size. > 0

Implements IOutputStream.