Browse Source

A bit of modernisation in AudioFormatReader

tags/2021-05-28
jules 7 years ago
parent
commit
9e6de22e73
2 changed files with 7 additions and 13 deletions
  1. +2
    -8
      modules/juce_audio_formats/format/juce_AudioFormatReader.cpp
  2. +5
    -5
      modules/juce_audio_formats/format/juce_AudioFormatReader.h

+ 2
- 8
modules/juce_audio_formats/format/juce_AudioFormatReader.cpp View File

@@ -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)
{
}


+ 5
- 5
modules/juce_audio_formats/format/juce_AudioFormatReader.h View File

@@ -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.


Loading…
Cancel
Save