FilePartSource.
More...
#include <file_part_source.hpp>
|
| | FilePartSource (const std::string &mediaType, const std::vector< char > &data) |
| | Constructor for binary (char) input.
|
| |
| | ~FilePartSource () override=default |
| |
| std::istream & | stream () override |
| |
| const std::string & | filename () const override |
| |
FilePartSource.
A memory-based PartSource implementation for streaming binary content such as audio files (e.g. WAV). Supports both raw byte input and int16_t PCM samples.
◆ FilePartSource()
| FilePartSource::FilePartSource |
( |
const std::string & |
mediaType, |
|
|
const std::vector< char > & |
data |
|
) |
| |
|
inline |
Constructor for binary (char) input.
- Parameters
-
| mediaType | MIME type of the file (e.g. "audio/wav") |
| data | Raw binary buffer (e.g. WAV file) |
◆ ~FilePartSource()
| FilePartSource::~FilePartSource |
( |
| ) |
|
|
overridedefault |
◆ filename()
| const std::string & FilePartSource::filename |
( |
| ) |
const |
|
inlineoverride |
◆ stream()
| std::istream & FilePartSource::stream |
( |
| ) |
|
|
inlineoverride |
◆ buffer_
| std::stringbuf FilePartSource::buffer_ |
|
private |
◆ filename_
| std::string FilePartSource::filename_ |
|
private |
◆ stream_
| std::istream FilePartSource::stream_ |
|
private |
The documentation for this class was generated from the following file: