MCPcopy Create free account
hub / github.com/TASEmulators/fceux / win_SoundWriteData

Function win_SoundWriteData

src/drivers/win/sound.cpp:374–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374void win_SoundWriteData(int32 *buffer, int count) {
375 //mbg 8/30/07 - this used to be done here, but now its gtting called from somewhere else...
376 //FCEUI_AviSoundUpdate((void*)MBuffer, Count);
377 if(CheckTrashSound()) return;
378 void *tempbuf = alloca(2*count);
379 short *sbuf = (short *)tempbuf;
380 for(int i=0;i<count;i++)
381 sbuf[i] = buffer[i];
382 if(player)
383 player->receive(count*2,tempbuf);
384}
385
386
387//--------

Callers 1

FCEUD_UpdateFunction · 0.85

Calls 2

CheckTrashSoundFunction · 0.85
receiveMethod · 0.80

Tested by

no test coverage detected