OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_WavAudioFormat.h>
Static Public Member Functions | |
static StringPairArray | createBWAVMetadata (const String &description, const String &originator, const String &originatorRef, Time dateAndTime, int64 timeReferenceSamples, const String &codingHistory) |
Additional Inherited Members | |
![]() | |
AudioFormat (String formatName, StringArray fileExtensions) | |
AudioFormat (StringRef formatName, StringRef fileExtensions) | |
Reads and Writes WAV format audio files.
Definition at line 38 of file juce_WavAudioFormat.h.
juce::WavAudioFormat::WavAudioFormat | ( | ) |
Creates a format object.
Definition at line 1650 of file juce_WavAudioFormat.cpp.
|
override |
Destructor.
Definition at line 1651 of file juce_WavAudioFormat.cpp.
|
overridevirtual |
Returns true if the format can do 1-channel audio.
Implements juce::AudioFormat.
Definition at line 1665 of file juce_WavAudioFormat.cpp.
|
overridevirtual |
Returns true if the format can do 2-channel audio.
Implements juce::AudioFormat.
Definition at line 1664 of file juce_WavAudioFormat.cpp.
|
static |
Utility function to fill out the appropriate metadata for a BWAV file.
This just makes it easier than using the property names directly, and it fills out the time and date in the right format.
Definition at line 41 of file juce_WavAudioFormat.cpp.
|
overridevirtual |
Attempts to create a MemoryMappedAudioFormatReader, if possible for this format. If the format does not support this, the method will return nullptr;
Reimplemented from juce::AudioFormat.
Definition at line 1704 of file juce_WavAudioFormat.cpp.
Referenced by createMemoryMappedReader().
|
overridevirtual |
Reimplemented from juce::AudioFormat.
Definition at line 1709 of file juce_WavAudioFormat.cpp.
|
overridevirtual |
Tries to create an object that can read from a stream containing audio data in this format.
The reader object that is returned can be used to read from the stream, and should then be deleted by the caller.
sourceStream | the stream to read from - the AudioFormatReader object that is returned will delete this stream when it no longer needs it. |
deleteStreamIfOpeningFails | if no reader can be created, this determines whether this method should delete the stream object that was passed-in. (If a valid reader is returned, it will always be in charge of deleting the stream, so this parameter is ignored) |
Implements juce::AudioFormat.
Definition at line 1683 of file juce_WavAudioFormat.cpp.
Referenced by replaceMetadataInFile().
|
virtual |
Tries to create an object that can write to a stream with this audio format.
The writer object that is returned can be used to write to the stream, and should then be deleted by the caller.
If the stream can't be created for some reason (e.g. the parameters passed in here aren't suitable), this will return nullptr.
streamToWriteTo | the stream that the data will go to - this will be deleted by the AudioFormatWriter object when it's no longer needed. If no AudioFormatWriter can be created by this method, the stream will NOT be deleted, so that the caller can re-use it to try to open a different format, etc |
sampleRateToUse | the sample rate for the file, which must be one of the ones returned by getPossibleSampleRates() |
channelLayout | the channel layout for the file. Use isChannelLayoutSupported to check if the writer supports this layout. |
bitsPerSample | the bits per sample to use - this must be one of the values returned by getPossibleBitDepths() |
metadataValues | 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 |
qualityOptionIndex | the index of one of compression qualities returned by the getQualityOptions() method. If there aren't any quality options for this format, just pass 0 in this parameter, as it'll be ignored |
Reimplemented from juce::AudioFormat.
Definition at line 188 of file juce_AudioFormat.cpp.
|
overridevirtual |
Tries to create an object that can write to a stream with this audio format.
The writer object that is returned can be used to write to the stream, and should then be deleted by the caller.
If the stream can't be created for some reason (e.g. the parameters passed in here aren't suitable), this will return nullptr.
streamToWriteTo | the stream that the data will go to - this will be deleted by the AudioFormatWriter object when it's no longer needed. If no AudioFormatWriter can be created by this method, the stream will NOT be deleted, so that the caller can re-use it to try to open a different format, etc |
sampleRateToUse | the sample rate for the file, which must be one of the ones returned by getPossibleSampleRates() |
channelLayout | the channel layout for the file. Use isChannelLayoutSupported to check if the writer supports this layout. |
bitsPerSample | the bits per sample to use - this must be one of the values returned by getPossibleBitDepths() |
metadataValues | 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 |
qualityOptionIndex | the index of one of compression qualities returned by the getQualityOptions() method. If there aren't any quality options for this format, just pass 0 in this parameter, as it'll be ignored |
Reimplemented from juce::AudioFormat.
Definition at line 1730 of file juce_WavAudioFormat.cpp.
|
overridevirtual |
Tries to create an object that can write to a stream with this audio format.
The writer object that is returned can be used to write to the stream, and should then be deleted by the caller.
If the stream can't be created for some reason (e.g. the parameters passed in here aren't suitable), this will return nullptr.
streamToWriteTo | the stream that the data will go to - this will be deleted by the AudioFormatWriter object when it's no longer needed. If no AudioFormatWriter can be created by this method, the stream will NOT be deleted, so that the caller can re-use it to try to open a different format, etc |
sampleRateToUse | the sample rate for the file, which must be one of the ones returned by getPossibleSampleRates() |
numberOfChannels | the number of channels |
bitsPerSample | the bits per sample to use - this must be one of the values returned by getPossibleBitDepths() |
metadataValues | 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 |
qualityOptionIndex | the index of one of compression qualities returned by the getQualityOptions() method. If there aren't any quality options for this format, just pass 0 in this parameter, as it'll be ignored |
Implements juce::AudioFormat.
Definition at line 1722 of file juce_WavAudioFormat.cpp.
Referenced by createWriterFor().
|
virtual |
Tries to create an object that can write to a stream with this audio format.
The writer object that is returned can be used to write to the stream, and should then be deleted by the caller.
If the stream can't be created for some reason (e.g. the parameters passed in here aren't suitable), this will return nullptr.
streamToWriteTo | the stream that the data will go to - this will be deleted by the AudioFormatWriter object when it's no longer needed. If no AudioFormatWriter can be created by this method, the stream will NOT be deleted, so that the caller can re-use it to try to open a different format, etc |
sampleRateToUse | the sample rate for the file, which must be one of the ones returned by getPossibleSampleRates() |
numberOfChannels | the number of channels |
bitsPerSample | the bits per sample to use - this must be one of the values returned by getPossibleBitDepths() |
metadataValues | 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 |
qualityOptionIndex | the index of one of compression qualities returned by the getQualityOptions() method. If there aren't any quality options for this format, just pass 0 in this parameter, as it'll be ignored |
Implements juce::AudioFormat.
Returns a set of bit depths that the format can read and write.
Implements juce::AudioFormat.
Definition at line 1659 of file juce_WavAudioFormat.cpp.
Referenced by createWriterFor().
Returns a set of sample rates that the format can read and write.
Implements juce::AudioFormat.
Definition at line 1653 of file juce_WavAudioFormat.cpp.
|
overridevirtual |
Returns true if the channel layout is supported by this format.
Reimplemented from juce::AudioFormat.
Definition at line 1667 of file juce_WavAudioFormat.cpp.
Referenced by createWriterFor().
bool juce::WavAudioFormat::replaceMetadataInFile | ( | const File & | wavFile, |
const StringPairArray & | newMetadata | ||
) |
Utility function to replace the metadata in a wav file with a new set of values.
If possible, this cheats by overwriting just the metadata region of the file, rather than by copying the whole file again.
Definition at line 1780 of file juce_WavAudioFormat.cpp.
Metadata property name used in acid chunks.
Definition at line 89 of file juce_WavAudioFormat.h.
|
static |
Metadata property name used in acid chunks.
Definition at line 90 of file juce_WavAudioFormat.h.
Metadata property name used in acid chunks.
Definition at line 86 of file juce_WavAudioFormat.h.
Metadata property name used in acid chunks.
Definition at line 87 of file juce_WavAudioFormat.h.
|
static |
Metadata property name used in acid chunks.
Definition at line 91 of file juce_WavAudioFormat.h.
Metadata property name used in acid chunks.
Definition at line 83 of file juce_WavAudioFormat.h.
Metadata property name used in acid chunks.
Definition at line 88 of file juce_WavAudioFormat.h.
Metadata property name used in acid chunks.
Definition at line 84 of file juce_WavAudioFormat.h.
Metadata property name used in acid chunks.
Definition at line 85 of file juce_WavAudioFormat.h.
Metadata property name used in acid chunks.
Definition at line 92 of file juce_WavAudioFormat.h.
Metadata property name used in BWAV chunks.
Definition at line 56 of file juce_WavAudioFormat.h.
Referenced by createBWAVMetadata().
|
static |
Metadata property name used in BWAV chunks.
Definition at line 51 of file juce_WavAudioFormat.h.
Referenced by createBWAVMetadata().
|
static |
Metadata property name used in BWAV chunks. The format should be: yyyy-mm-dd
Definition at line 54 of file juce_WavAudioFormat.h.
Referenced by createBWAVMetadata().
|
static |
Metadata property name used in BWAV chunks. The format should be: format is: hh-mm-ss
Definition at line 55 of file juce_WavAudioFormat.h.
Referenced by createBWAVMetadata().
|
static |
Metadata property name used in BWAV chunks.
Definition at line 52 of file juce_WavAudioFormat.h.
Referenced by createBWAVMetadata().
Metadata property name used in BWAV chunks.
Definition at line 53 of file juce_WavAudioFormat.h.
Referenced by createBWAVMetadata().
|
static |
Metadata property name used in BWAV chunks. This is the number of samples from the start of an edit that the file is supposed to begin at. Seems like an obvious mistake to only allow a file to occur in an edit once, but that's the way it is..
Definition at line 66 of file juce_WavAudioFormat.h.
Referenced by createBWAVMetadata().
Metadata property name used when reading an ISRC code from an AXML chunk.
Definition at line 181 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 97 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 98 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 99 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 100 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 101 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 102 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 103 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 104 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 105 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 106 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 107 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 108 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 109 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 110 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 111 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 112 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 113 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 114 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 115 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 116 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 117 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 118 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 119 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 120 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 121 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 122 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 123 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 124 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 125 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 126 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 127 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 128 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 129 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 130 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 131 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 132 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 133 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 134 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 135 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 136 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 137 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 138 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 139 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 140 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 141 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 142 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 144 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 145 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 143 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 146 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 147 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 148 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 149 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 150 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 151 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 152 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 153 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 154 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 155 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 156 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 157 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 158 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 159 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 160 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 161 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 162 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 163 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 164 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 165 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 166 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 167 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 168 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 169 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 170 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 171 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 172 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 173 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 174 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 175 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 176 of file juce_WavAudioFormat.h.
Metadata property name used in INFO chunks.
Definition at line 177 of file juce_WavAudioFormat.h.
Metadata property name used when reading a WAV file with a Tracktion chunk.
Definition at line 184 of file juce_WavAudioFormat.h.