diff --git a/modules/juce_audio_formats/format/juce_AudioFormatReader.cpp b/modules/juce_audio_formats/format/juce_AudioFormatReader.cpp index 3d5e898294..9435e36649 100644 --- a/modules/juce_audio_formats/format/juce_AudioFormatReader.cpp +++ b/modules/juce_audio_formats/format/juce_AudioFormatReader.cpp @@ -27,14 +27,8 @@ namespace juce { -AudioFormatReader::AudioFormatReader (InputStream* const in, const String& name) - : sampleRate (0), - bitsPerSample (0), - lengthInSamples (0), - numChannels (0), - usesFloatingPointData (false), - input (in), - formatName (name) +AudioFormatReader::AudioFormatReader (InputStream* in, const String& name) + : input (in), formatName (name) { } diff --git a/modules/juce_audio_formats/format/juce_AudioFormatReader.h b/modules/juce_audio_formats/format/juce_AudioFormatReader.h index 5486892eea..7ed40c5c8e 100644 --- a/modules/juce_audio_formats/format/juce_AudioFormatReader.h +++ b/modules/juce_audio_formats/format/juce_AudioFormatReader.h @@ -196,19 +196,19 @@ public: //============================================================================== /** The sample-rate of the stream. */ - double sampleRate; + double sampleRate = 0; /** The number of bits per sample, e.g. 16, 24, 32. */ - unsigned int bitsPerSample; + unsigned int bitsPerSample = 0; /** The total number of samples in the audio stream. */ - int64 lengthInSamples; + int64 lengthInSamples = 0; /** The total number of channels in the audio stream. */ - unsigned int numChannels; + unsigned int numChannels = 0; /** Indicates whether the data is floating-point or fixed. */ - bool usesFloatingPointData; + bool usesFloatingPointData = false; /** A set of metadata values that the reader has pulled out of the stream.