1
0
Fork 0
forked from len0rd/rockbox

Enable game sounds in PacBox. Sound is OFF by default but can be enabled from the menu. Enable a function for SWCODEC in the middle of the plugin API, so plugins must be made incompatible (full update).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27202 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2010-07-01 00:26:01 +00:00
parent 10b8e327d8
commit cf73340f1e
10 changed files with 473 additions and 24 deletions

View file

@ -26,6 +26,7 @@
#include "plugin.h"
#include "hardware.h"
#include "wsg3.h"
/* The main data for Pacman */
@ -140,7 +141,7 @@ void writeByte( unsigned addr, unsigned char b )
default:
if( addr >= 0x5040 && addr < 0x5060 ) {
// Sound registers
//SOUND sound_chip_.setRegister( addr-0x5040, b );
wsg3_set_register( addr-0x5040, b );
}
else if( addr >= 0x5060 && addr < 0x5070 ) {
// Sprite coordinates, x/y pairs for 8 sprites