crash fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2758 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
ff9fcce383
commit
f4a1f1c7e1
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue