Previous 199869 Revisions Next

r19011 Saturday 17th November, 2012 at 22:14:25 UTC by hap
quick fix for ppp1mp static sound
[src/emu/sound]ymz280b.c

trunk/src/emu/sound/ymz280b.c
r19010r19011
482482      while (samples)
483483      {
484484         /* fetch the current value */
485         val = (INT16)((ymz280b_read_memory(base, size, position / 2 + 0) << 8) + ymz280b_read_memory(base, size, position / 2 + 1));
485         val = (INT16)((ymz280b_read_memory(base, size, position / 2 + 1) << 8) + ymz280b_read_memory(base, size, position / 2 + 0));
486486
487487         /* output to the buffer, scaling by the volume */
488488         *buffer++ = val;
r19010r19011
507507      while (samples)
508508      {
509509         /* fetch the current value */
510         val = (INT16)((ymz280b_read_memory(base, size, position / 2 + 0) << 8) + ymz280b_read_memory(base, size, position / 2 + 1));
510         val = (INT16)((ymz280b_read_memory(base, size, position / 2 + 1) << 8) + ymz280b_read_memory(base, size, position / 2 + 0));
511511
512512         /* output to the buffer, scaling by the volume */
513513         *buffer++ = val;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team