Exit with an error if channel count isn't 1 or 2.

git-svn-id: https://svn.musicpd.org/mpd/trunk@6274 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2007-05-26 17:04:54 +00:00
parent 355d18a593
commit 665ab83761

View File

@ -455,6 +455,10 @@ size_t pcm_sizeOfConvBuffer(AudioFormat * inFormat, size_t inSize,
case 2:
outSize >>= 1;
break;
default:
ERROR("only 1 or 2 channels are supported "
"for conversion!\n");
exit(EXIT_FAILURE);
}
}