mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 09:35:35 +00:00
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…
x
Reference in New Issue
Block a user