Implements audio mixing and resampling.
More...
#include <AUI/Audio/ASoundResampler.h>
|
|
| ASoundResampler (_< ISoundInputStream > sourceStream) noexcept |
| |
| 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.
|
| |
|
void | setVolume (aui::audio::VolumeLevel volume) noexcept |
| |
| size_t | read (std::span< std::byte > destination) |
| | Reads up to destination.size() bytes from stream. Blocking (waiting for new data) is allowed.
|
| |
| size_t | read (std::span< std::byte > destination) |
| | Reads up to destination.size() bytes from stream. Blocking (waiting for new data) is allowed.
|
| |
| void | readExact (char *dst, size_t size) |
| | Reads exact size bytes from stream. Blocking (waiting for new data) is allowed.
|
| |
| template<typename T> |
| T | deserialize () |
| |
| template<typename T> |
| IInputStream & | operator>> (T &dst) |
| |
| template<typename T> |
| IInputStream & | operator>> (T &&dst) |
| |
- Warning
- This API is experimental. Experimental APIs are likely to contain bugs, might be changed or removed in the future.
◆ info()#
| AAudioFormat ASoundResampler::info |
( |
| ) |
|
|
overridevirtual |
◆ read() [1/2]#
| size_t ASoundResampler::read |
( |
char * | dst, |
|
|
size_t | size ) |
|
overridevirtual |
- Sneaky exceptions
- An implementation can throw any exception that subclasses AIOException.
- Parameters
-
| dst | destination buffer |
| size | destination buffer's size. > 0 |
- Returns
- number of read bytes (including 0)
Implements IInputStream.
◆ read() [2/2]#
| size_t IInputStream::read |
( |
std::span< std::byte > | destination | ) |
|
|
inline |
- Sneaky exceptions
- An implementation can throw any exception that subclasses AIOException.
- Parameters
-
| destination | destination buffer |
- Returns
- number of read bytes (including 0)