| 372 | } |
| 373 | |
| 374 | void 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 | //-------- |
no test coverage detected