syedhali / EZAudio

An iOS and macOS audio visualization framework built upon Core Audio useful for anyone doing real-time, low-latency audio processing and visualizations.
Other
4.94k stars 822 forks source link

Initialize struct values to 0 based on docs #275

Closed streeter closed 8 years ago

streeter commented 8 years ago

The docs for AudioComponentDescription say that componentFlags and componentFlagsMask must be set to 0 unless specific values are requested.

Different platforms (32 vs 64 bit) initialize data to different starting values. Ensure the AudioComponentDescription is initialized to prevent unwanted side effects.

syedhali commented 8 years ago

good catch!