diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2010-07-01 03:57:37 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2010-07-01 03:57:37 +0000 |
| commit | ceab0b04ebb52da8fd632ed051cf833d35bbdd22 (patch) | |
| tree | 810b17e7b1931ce0ac13a8105196bf958e8a94e8 /apps/plugins/pacbox/arcade.c | |
| parent | f09370058ff170bcf99481dd8115871ba20ee816 (diff) | |
| download | rockbox-ceab0b04ebb52da8fd632ed051cf833d35bbdd22.zip rockbox-ceab0b04ebb52da8fd632ed051cf833d35bbdd22.tar.gz rockbox-ceab0b04ebb52da8fd632ed051cf833d35bbdd22.tar.bz2 rockbox-ceab0b04ebb52da8fd632ed051cf833d35bbdd22.tar.xz | |
PacBox: Premultiply sound prom data on load rather than during emulation. Use 16-bit data for 'raw' output instead of int.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27208 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pacbox/arcade.c')
| -rw-r--r-- | apps/plugins/pacbox/arcade.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/pacbox/arcade.c b/apps/plugins/pacbox/arcade.c index ecf6d10..bd108c7 100644 --- a/apps/plugins/pacbox/arcade.c +++ b/apps/plugins/pacbox/arcade.c @@ -640,10 +640,10 @@ void renderSprites( unsigned char * buffer ) } } -void playSound( int * buf, int len ) +void playSound( int16_t * buf, int len ) { /* Clear the buffer */ - memset( buf, 0, sizeof (int)*len); + memset( buf, 0, sizeof (int16_t)*len); /* Exit now if sound is disabled */ if( (output_devices_ & SoundEnabled) == 0 ) |