crash fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2758 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-03-26 10:50:52 +00:00
parent ff9fcce383
commit f4a1f1c7e1
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@
void CMixer::Mix(short *samples, int numSamples)
{
if (! samples) {
Premix(NULL, 0);
return;
}
// silence
memset(samples, 0, numSamples * 2 * sizeof(short));