Mercurial > hg > beaglert
changeset 210:e23c304d264f
Fixed analogChannels count check (allows them to be 0).
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 08 Feb 2016 23:23:34 +0000 |
parents | 5f53b838b742 |
children | ff14e145f635 |
files | core/RTAudio.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/RTAudio.cpp Mon Feb 08 22:50:39 2016 +0000 +++ b/core/RTAudio.cpp Mon Feb 08 23:23:34 2016 +0000 @@ -164,8 +164,8 @@ } // Sanity check the combination of channels and period size - if( (gContext.analogChannels <= 4 && gContext.analogFrames < 2) || - (gContext.analogChannels <= 2 && gContext.analogFrames < 4)) + if( gContext.analogChannels != 0 && ((gContext.analogChannels <= 4 && gContext.analogFrames < 2) || + (gContext.analogChannels <= 2 && gContext.analogFrames < 4)) ) { cout << "Error: " << gContext.analogChannels << " channels and period size of " << gContext.analogFrames << " not supported.\n"; return 1;