We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55df64 commit 012f50bCopy full SHA for 012f50b
src/AudioTools/CoreAudio/AudioTypes.h
@@ -111,7 +111,7 @@ struct AudioInfo {
111
#endif
112
/// Returns true if all components are defined (no component is 0)
113
operator bool() {
114
- return sample_rate > 0 && channels > 0 && bits_per_sample > 0;
+ return sample_rate > 0 && sample_rate <= 100000 && channels > 0 && channels < 20 && bits_per_sample > 0 && bits_per_sample <= 64;
115
}
116
117
virtual void clear() {
0 commit comments