xvsdk
3.2.0
|
A class to handle speaker. Adjust the sound source(PCM) volume to adjust the volume. More...
#include <xv-sdk.h>
Public Member Functions | |
virtual bool | enable ()=0 |
virtual bool | disable ()=0 |
virtual int | send (const std::uint8_t *data, int len)=0 |
Send a small time slice of sound data. | |
virtual bool | play (const std::string &path)=0 |
Async play sound file in new thread. | |
virtual bool | play (const std::uint8_t *data, int len)=0 |
Async play buffer in new thread. | |
virtual bool | isPlaying ()=0 |
If async playing. | |
virtual int | registerPlayEndCallback (std::function< void()>)=0 |
Rigster a callback for async play end. | |
virtual bool | unregisterPlayEndCallback (int callbackId)=0 |
A class to handle speaker. Adjust the sound source(PCM) volume to adjust the volume.