Source of audio data to be played by an AudioOutput.
More...
#include <Source.hxx>
Source of audio data to be played by an AudioOutput.
It receives MusicChunk instances from a MusicPipe (via SharedPipeConsumer). It applies configured filters, ReplayGain and returns plain PCM data.
Definition at line 49 of file Source.hxx.
◆ Cancel()
void AudioOutputSource::Cancel |
( |
| ) |
|
|
noexcept |
◆ ClearTailChunk()
void AudioOutputSource::ClearTailChunk |
( |
const MusicChunk & |
chunk | ) |
|
|
inlinenoexcept |
◆ Close()
void AudioOutputSource::Close |
( |
| ) |
|
|
noexcept |
◆ ConsumeData()
void AudioOutputSource::ConsumeData |
( |
size_t |
nbytes | ) |
|
|
noexcept |
Mark portions of the PeekData() return value as "consumed".
◆ Fill()
bool AudioOutputSource::Fill |
( |
Mutex & |
mutex | ) |
|
Ensure that ReadTag() or PeekData() return any input.
Throws std::runtime_error on error
- Parameters
-
mutex | the Mutex which protects the SharedPipeConsumer; it is locked by the caller, and may be unlocked temporarily by this method |
- Returns
- true if any input is available, false if the source has (temporarily?) run empty
◆ GetInputAudioFormat()
const AudioFormat& AudioOutputSource::GetInputAudioFormat |
( |
| ) |
const |
|
inline |
◆ IsChunkConsumed()
bool AudioOutputSource::IsChunkConsumed |
( |
const MusicChunk & |
chunk | ) |
const |
|
inlinenoexcept |
◆ IsOpen()
bool AudioOutputSource::IsOpen |
( |
| ) |
const |
|
inline |
◆ Open()
◆ PeekData()
ConstBuffer<void> AudioOutputSource::PeekData |
( |
| ) |
const |
|
inlinenoexcept |
Returns the remaining filtered PCM data be played.
The caller shall use ConsumeData() to mark portions of the return value as "consumed".
Be sure to call Fill() successfully before calling this metohd.
Definition at line 175 of file Source.hxx.
◆ ReadTag()
const Tag* AudioOutputSource::ReadTag |
( |
| ) |
|
|
inlinenoexcept |
Reads the Tag to be processed.
Be sure to call Fill() successfully before calling this metohd.
Definition at line 161 of file Source.hxx.
◆ SetReplayGainMode()
The documentation for this class was generated from the following file: