Wii U AudioDriver: AX (sndcore2), 16 fixed AXVoice slots for one-shots plus a dedicated stereo streaming path (two AXVoices, ring-buffered) fed by a GuiSoundOggPlayer for the background stream. More...
#include <WutAudioDriver.h>
Public Member Functions | |
| void | init () override |
| Allocates the backend's audio resources. Does not start playback; see start(). | |
| void | start () override |
| Starts the audio backend running (eg. registers the DSP/AX callback). | |
| void | stop () override |
| Stops the audio backend. | |
| void | shutdown () override |
| Releases everything init() allocated. Call stop() first. | |
| int32_t | playVoice (const uint8_t *data, int32_t length, int volume) override |
| Start a one-shot/short PCM voice. | |
| void | stopVoice (int32_t voice) override |
| Stops a voice returned by playVoice() and frees its slot. | |
| void | pauseVoice (int32_t voice) override |
| Pauses a playing voice, keeping its position and slot. | |
| void | resumeVoice (int32_t voice) override |
| Resumes a voice paused with pauseVoice(). | |
| bool | isVoicePlaying (int32_t voice) override |
| void | setVoiceVolume (int32_t voice, int volume) override |
| Changes the volume of a playing voice. | |
| void | playStream (const uint8_t *data, int32_t length, bool loop, int volume) override |
| Streamed (OGG) playback. | |
| void | stopStream () override |
| Stops the stream started by playStream(). | |
| void | pauseStream () override |
| Pauses the stream, keeping its position. | |
| void | resumeStream () override |
| Resumes a stream paused with pauseStream(). | |
| bool | isStreamPlaying () override |
| void | setStreamVolume (int volume) override |
| Changes the stream volume. | |
| void | handleStreamCallback () |
| AX frame callback hook that refills the stream ring buffers. | |
Wii U AudioDriver: AX (sndcore2), 16 fixed AXVoice slots for one-shots plus a dedicated stereo streaming path (two AXVoices, ring-buffered) fed by a GuiSoundOggPlayer for the background stream.
Definition at line 18 of file WutAudioDriver.h.
| void WutAudioDriver::handleStreamCallback | ( | ) |
AX frame callback hook that refills the stream ring buffers.
Not part of the AudioDriver interface.
Definition at line 276 of file WutAudioDriver.cpp.
|
overridevirtual |
Allocates the backend's audio resources. Does not start playback; see start().
Implements AudioDriver.
Definition at line 38 of file WutAudioDriver.cpp.
|
overridevirtual |
Implements AudioDriver.
Definition at line 387 of file WutAudioDriver.cpp.
|
overridevirtual |
Implements AudioDriver.
Definition at line 178 of file WutAudioDriver.cpp.
|
overridevirtual |
Pauses the stream, keeping its position.
Implements AudioDriver.
Definition at line 375 of file WutAudioDriver.cpp.
|
overridevirtual |
Pauses a playing voice, keeping its position and slot.
Implements AudioDriver.
Definition at line 168 of file WutAudioDriver.cpp.
|
overridevirtual |
Streamed (OGG) playback.
There is no per-call stream handle, only one can play at a time.
Implements AudioDriver.
Definition at line 193 of file WutAudioDriver.cpp.
|
overridevirtual |
Start a one-shot/short PCM voice.
Returns a backend-defined voice handle (>=0) on success, or a negative value if no voice was available.
Implements AudioDriver.
Definition at line 123 of file WutAudioDriver.cpp.
|
overridevirtual |
Resumes a stream paused with pauseStream().
Implements AudioDriver.
Definition at line 381 of file WutAudioDriver.cpp.
|
overridevirtual |
Resumes a voice paused with pauseVoice().
Implements AudioDriver.
Definition at line 173 of file WutAudioDriver.cpp.
|
overridevirtual |
Changes the stream volume.
| volume | Volume, 0-100 |
Implements AudioDriver.
Definition at line 391 of file WutAudioDriver.cpp.
|
overridevirtual |
Changes the volume of a playing voice.
| voice | Voice handle returned by playVoice() |
| volume | Volume, 0-100 |
Implements AudioDriver.
Definition at line 184 of file WutAudioDriver.cpp.
|
overridevirtual |
Releases everything init() allocated. Call stop() first.
Implements AudioDriver.
Definition at line 105 of file WutAudioDriver.cpp.
|
overridevirtual |
Starts the audio backend running (eg. registers the DSP/AX callback).
Implements AudioDriver.
Definition at line 97 of file WutAudioDriver.cpp.
|
overridevirtual |
|
overridevirtual |
Stops the stream started by playStream().
Implements AudioDriver.
Definition at line 369 of file WutAudioDriver.cpp.
|
overridevirtual |
Stops a voice returned by playVoice() and frees its slot.
Implements AudioDriver.
Definition at line 161 of file WutAudioDriver.cpp.