14#include <AUI/Audio/ISoundInputStream.h>
15#include <AUI/Audio/ACompileTimeSoundResampler.h>
16#include <AUI/Audio/VolumeLevel.h>
20namespace aui::audio::impl {
24 virtual size_t resample(std::span<std::byte>, aui::audio::VolumeLevel volume) = 0;
40 size_t read(
char* dst,
size_t size)
override;
44 void setVolume(aui::audio::VolumeLevel volume)
noexcept;
48 _unique<aui::audio::impl::ResamplerBase> mResampler;
52 aui::audio::VolumeLevel mVolume = 256;
size_t read(char *dst, size_t size) override
Reads up to size bytes from stream. Blocking (waiting for new data) is allowed.
AAudioFormat info() override
Get general info about sound stream.
Interface for audio playback.
Definition IAudioPlayer.h:15
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:179
Definition ASoundResampler.h:21