|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Public Member Functions | |
| AiffAudioFormatWriter (OutputStream *out, double rate, unsigned int numChans, unsigned int bits, const StringPairArray &metadataValues) | |
| bool | write (const int **data, int numSamples) override |
| Writes a set of samples to the audio stream. | |
Public Member Functions inherited from juce::AudioFormatWriter | |
| virtual | ~AudioFormatWriter () |
| Destructor. | |
| const String & | getFormatName () const noexcept |
| Returns a description of what type of format this is. | |
| virtual bool | flush () |
| Some formats may support a flush operation that makes sure the file is in a valid state before carrying on. | |
| bool | writeFromAudioReader (AudioFormatReader &reader, int64 startSample, int64 numSamplesToRead) |
| Reads a section of samples from an AudioFormatReader, and writes these to the output. | |
| bool | writeFromAudioSource (AudioSource &source, int numSamplesToRead, int samplesPerBlock=2048) |
| Reads some samples from an AudioSource, and writes these to the output. | |
| bool | writeFromAudioSampleBuffer (const AudioBuffer< float > &source, int startSample, int numSamples) |
| Writes some samples from an AudioBuffer. | |
| bool | writeFromFloatArrays (const float *const *channels, int numChannels, int numSamples) |
| Writes some samples from a set of float data channels. | |
| double | getSampleRate () const noexcept |
| Returns the sample rate being used. | |
| int | getNumChannels () const noexcept |
| Returns the number of channels being written. | |
| int | getBitsPerSample () const noexcept |
| Returns the bit-depth of the data being written. | |
| bool | isFloatingPoint () const noexcept |
| Returns true if it's a floating-point format, false if it's fixed-point. | |
Additional Inherited Members | |
Protected Member Functions inherited from juce::AudioFormatWriter | |
| AudioFormatWriter (OutputStream *destStream, const String &formatName, double sampleRate, unsigned int numberOfChannels, unsigned int bitsPerSample) | |
| Creates an AudioFormatWriter object. | |
| AudioFormatWriter (OutputStream *destStream, const String &formatName, double sampleRate, const AudioChannelSet &audioChannelLayout, unsigned int bitsPerSample) | |
| Creates an AudioFormatWriter object. | |
Protected Attributes inherited from juce::AudioFormatWriter | |
| double | sampleRate |
| The sample rate of the stream. | |
| unsigned int | numChannels |
| The number of channels being written to the stream. | |
| unsigned int | bitsPerSample |
| The bit depth of the file. | |
| bool | usesFloatingPointData |
| True if it's a floating-point format, false if it's fixed-point. | |
| AudioChannelSet | channelLayout |
| The audio channel layout that the writer should use. | |
| OutputStream * | output |
| The output stream for use by subclasses. | |
Definition at line 643 of file juce_AiffAudioFormat.cpp.
| juce::AiffAudioFormatWriter::AiffAudioFormatWriter | ( | OutputStream * | out, |
| double | rate, | ||
| unsigned int | numChans, | ||
| unsigned int | bits, | ||
| const StringPairArray & | metadataValues | ||
| ) |
Definition at line 646 of file juce_AiffAudioFormat.cpp.
|
override |
Definition at line 669 of file juce_AiffAudioFormat.cpp.
|
overridevirtual |
Writes a set of samples to the audio stream.
Note that if you're trying to write the contents of an AudioBuffer, you can use writeFromAudioSampleBuffer().
| samplesToWrite | an array of arrays containing the sample data for each channel to write. This is a zero-terminated array of arrays, and can contain a different number of channels than the actual stream uses, and the writer should do its best to cope with this. If the format is fixed-point, each channel will be formatted as an array of signed integers using the full 32-bit range -0x80000000 to 0x7fffffff, regardless of the source's bit-depth. If it is a floating-point format, you should treat the arrays as arrays of floats, and just cast it to an (int**) to pass it into the method. |
| numSamples | the number of samples to write |
Implements juce::AudioFormatWriter.
Definition at line 678 of file juce_AiffAudioFormat.cpp.