|
ReXGlue SDK
|
#include <rex/apu/audio_driver.h>
Public Member Functions | |
| virtual Result< u32 > | OpenDevice (u32 channels, AudioFill fill)=0 |
| virtual void | CloseDevice ()=0 |
| virtual bool | IsDeviceLost () const =0 |
| Public Member Functions inherited from rex::IDriver | |
| virtual std::string_view | GetName () const =0 |
| virtual Result< void > | Initialize (IDriverContext &context)=0 |
| virtual void | Shutdown ()=0 |
An audio device that pulls samples through its AudioFill. The mix thread makes the calls.
|
pure virtual |
Closes the device. Returns once no call to the fill is running and none starts again.
|
nodiscardpure virtual |
Opens the default output device and starts it playing.
| channels | The channel count wanted, 6 or 2. |
| fill | Called for every buffer the device needs. It stays valid until CloseDevice returns. |