libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
NullAudioPlayer.h
Go to the documentation of this file.
1#pragma once
2#include "AudioPlayer.h"
3
4namespace Ship {
15class NullAudioPlayer final : public AudioPlayer {
16 public:
22 }
24
28 int Buffered() override;
29
30 protected:
32 bool DoInit() override;
33
35 void DoClose() override;
36
38 void DoPlay(const uint8_t* buf, size_t len) override;
39};
40} // namespace Ship
Abstract base class for platform-specific audio output backends.
Definition AudioPlayer.h:32
A no-op AudioPlayer used when no audio device is available or audio is disabled.
Definition NullAudioPlayer.h:15
int Buffered() override
Returns the desired buffered frame count so the game always produces audio.
void DoPlay(const uint8_t *buf, size_t len) override
Silently discards all audio data.
void DoClose() override
No-op — nothing to close.
NullAudioPlayer(AudioSettings settings)
Constructs a NullAudioPlayer with the given audio settings.
Definition NullAudioPlayer.h:21
bool DoInit() override
Always returns true — no actual device needs to be opened.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
Configuration parameters shared by all AudioPlayer backends.
Definition AudioPlayer.h:14