From aeea42a1415c3c4e14ff2149a440a594c055e6d3 Mon Sep 17 00:00:00 2001 From: gecko_reverse Date: Sun, 25 Nov 2007 16:38:47 +0000 Subject: [PATCH] added sound, and did various other minor things to the cocoa port --- desmume/ChangeLog | 1 + desmume/src/cocoa/DeSmuME.cbp | 57 +++- desmume/src/cocoa/cocoa_util.m | 7 +- desmume/src/cocoa/globals.h | 7 + desmume/src/cocoa/main.m | 50 +++- desmume/src/cocoa/nds_control.h | 16 +- desmume/src/cocoa/nds_control.m | 172 +++++++++--- desmume/src/cocoa/preferences.m | 17 +- desmume/src/cocoa/screenshot.h | 2 +- desmume/src/cocoa/sndOSX.h | 39 +++ desmume/src/cocoa/sndOSX.m | 483 ++++++++++++++++++++++++++++++++ 11 files changed, 774 insertions(+), 77 deletions(-) create mode 100644 desmume/src/cocoa/sndOSX.h create mode 100644 desmume/src/cocoa/sndOSX.m diff --git a/desmume/ChangeLog b/desmume/ChangeLog index f4d9072ee..d1b78d9e8 100644 --- a/desmume/ChangeLog +++ b/desmume/ChangeLog @@ -9,6 +9,7 @@ - Added option to disable execution upon loading. [Jeff B] - Many more strings are translatable now. [Jeff B] - Default screen color now black (better represents being "off" and easier on eyes at night) [Jeff B] + - Added sound [Jeff B] general: - Fixed possible segfault in ROMReader on ia64 and amd64. [evilynux] - Fixed a crash bug with 2D background corrupting memory [shash] diff --git a/desmume/src/cocoa/DeSmuME.cbp b/desmume/src/cocoa/DeSmuME.cbp index 627eb7ac0..1a712d2d7 100644 --- a/desmume/src/cocoa/DeSmuME.cbp +++ b/desmume/src/cocoa/DeSmuME.cbp @@ -3,29 +3,75 @@ - + + + + + + - @@ -104,6 +150,11 @@