Options that affect the output data format produced by an AudioFormatWriter.
More...
Options that affect the output data format produced by an AudioFormatWriter.
Format specific writers may ignore some of these options.
- See also
- AudioFormat::createWriterFor(), AudioFormatWriter
◆ SampleFormat
Used to provide a hint to the AudioFormatWriter for the output sample format.
Use automatic for the old behaviour. The values integral and floatingPoint can be used with the WavAudioFormat when using a bit depth of 32. Other formats are not affected by this setting.
Enumerator |
---|
automatic | Lets the writer decide the format based on the other parameter values.
|
integral | Integral format, e.g. PCM in case of the WavAudioFormat.
|
floatingPoint | IEEE floating point format.
|
◆ withSampleFormat()
◆ withSampleRate()
◆ withChannelLayout()
◆ withNumChannels()
Returns a copy of these options with the specified number of channels.
This is meant as a fallback for specifying the channel layout. Setting this option will have no effect if the channel layout is specified.
- See also
- withChannelLayout()
References withMember(), and x.
◆ withBitsPerSample()
◆ withMetadataValues()
Returns a copy of these options with the specified metadata container.
As an alternative to this function, you can specify the key-value pairs one-by-one using the withMetadata function.
Subsequent calls of this function overwrites all previously added metadata.
This parameter is a set of metadata values that the writer should try to write to the stream. Exactly what these are depends on the format, and the subclass doesn't actually have to do anything with them if it doesn't want to. Have a look at the specific format implementation classes to see possible values that can be used.
References withMember(), and x.
◆ withMetadata()
Returns a copy of these options with the specified metadata added.
Subsequent calls of this function adds new metadata values, while also preserving the previously added ones.
Here you can specify metadata values that the writer should try to write to the stream. Exactly what these are depends on the format, and the subclass doesn't actually have to do anything with them if it doesn't want to. Have a look at the specific format implementation classes to see possible values that can be used.
◆ withQualityOptionIndex()
◆ getSampleRate()
auto AudioFormatWriterOptions::getSampleRate |
( |
| ) |
const |
|
nodiscard |
◆ getChannelLayout()
auto AudioFormatWriterOptions::getChannelLayout |
( |
| ) |
const |
|
nodiscard |
◆ getNumChannels()
auto AudioFormatWriterOptions::getNumChannels |
( |
| ) |
const |
|
nodiscard |
◆ getBitsPerSample()
auto AudioFormatWriterOptions::getBitsPerSample |
( |
| ) |
const |
|
nodiscard |
◆ getMetadataValues()
auto AudioFormatWriterOptions::getMetadataValues |
( |
| ) |
const |
|
nodiscard |
◆ getQualityOptionIndex()
auto AudioFormatWriterOptions::getQualityOptionIndex |
( |
| ) |
const |
|
nodiscard |
◆ getSampleFormat()
auto AudioFormatWriterOptions::getSampleFormat |
( |
| ) |
const |
|
nodiscard |