diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
commit | 9fa9eb9ac7bf1d3de825ee25a8f0ae81b7b77896 (patch) | |
tree | 9b071a8105704e992946dcd6b801e9fcb7635142 /audio/xmms-nsf/files/patch-src__nes__audiosys.c | |
parent | MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out, (diff) |
Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.
With hat: portmgr
Sponsored by: Absolight
Diffstat (limited to 'audio/xmms-nsf/files/patch-src__nes__audiosys.c')
-rw-r--r-- | audio/xmms-nsf/files/patch-src__nes__audiosys.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/audio/xmms-nsf/files/patch-src__nes__audiosys.c b/audio/xmms-nsf/files/patch-src__nes__audiosys.c deleted file mode 100644 index 17b39688c636..000000000000 --- a/audio/xmms-nsf/files/patch-src__nes__audiosys.c +++ /dev/null @@ -1,34 +0,0 @@ ---- ./src/nes/audiosys.c.orig Sun Jan 7 05:17:57 2001 -+++ ./src/nes/audiosys.c Wed Jan 10 20:10:34 2007 -@@ -8,8 +8,11 @@ - - static NES_AUDIO_HANDLER *nah = 0; - static NES_VOLUME_HANDLER *nvh = 0; --void NESAudioRender(Int16 *bufp, Uint buflen) -+Uint32 NESAudioRender(Int16 *bufp, Uint buflen) - { -+ Int16 x; -+ Uint32 count = 0; -+ - while (buflen--) - { - NES_AUDIO_HANDLER *ph; -@@ -31,9 +34,17 @@ - else - output = accum; - output >>= 8; -- *bufp++ = ((Int32)output) - 0x8000; -+ x = ((Int32)output) - 0x8000; -+ if (abs(x) < 96) -+ count++; -+ else -+ count = 0; -+ -+ *bufp++ = x; - } - } -+ -+ return count; - } - - void NESVolume(Uint volume) |