# HG changeset patch # User Giulio Moro # Date 1454973814 0 # Node ID e23c304d264faca16e5ee6d992a1f22326e62de4 # Parent 5f53b838b74268172667fa29fe41baabdfe977ce Fixed analogChannels count check (allows them to be 0). diff -r 5f53b838b742 -r e23c304d264f core/RTAudio.cpp --- 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;