Browse Source

Audio: properly initialize HRTF member of Audio::Context::Configuration.

pull/176/head
Vladimír Vondruš 10 years ago
parent
commit
32b757f036
  1. 17
      src/Magnum/Audio/Context.h

17
src/Magnum/Audio/Context.h

@ -315,12 +315,7 @@ class MAGNUM_AUDIO_EXPORT Context::Configuration {
}; };
/** @brief Constructor */ /** @brief Constructor */
explicit Configuration(): explicit Configuration() {}
_frequency(-1),
_monoSources(-1),
_stereoSources(-1),
_refreshRate(-1)
{}
/** @brief Sampling rate in Hz */ /** @brief Sampling rate in Hz */
Int frequency() const { return _frequency; } Int frequency() const { return _frequency; }
@ -397,13 +392,13 @@ class MAGNUM_AUDIO_EXPORT Context::Configuration {
} }
private: private:
Int _frequency; Int _frequency{-1};
Hrtf _hrtf; Hrtf _hrtf{};
Int _monoSources; Int _monoSources{-1};
Int _stereoSources; Int _stereoSources{-1};
Int _refreshRate; Int _refreshRate{-1};
}; };

Loading…
Cancel
Save