aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorOystein Eftevaag2006-03-14 12:18:04 +0000
committerOystein Eftevaag2006-03-14 12:18:04 +0000
commitc3d8674a26b55ca656f1d7922b799d5907c4beda (patch)
tree17392c6d617254419d58d72e02f29e2251763b43 /backends
parentc822f496762f083e6d31b3f902af31019887ea26 (diff)
downloadscummvm-rg350-c3d8674a26b55ca656f1d7922b799d5907c4beda.tar.gz
scummvm-rg350-c3d8674a26b55ca656f1d7922b799d5907c4beda.tar.bz2
scummvm-rg350-c3d8674a26b55ca656f1d7922b799d5907c4beda.zip
Adds support for building on Intel Macs, using a modified
version of patch 1448395 by Aubin and some of my own changes. Notably: * Two elements of a struct in backends/midi/quicktime.cpp needed to be forced to BE. * NASM set to build Mach-O binaries * configure now checks for Altivec support on Darwin hosts, instead of assuming it. Altivec support can also be disabled (not 100% sure if t his is actually needed, but might be handy for crosscompiling). * The aliasing of the symbols contained in the .asm files done on Windows were also needed on MacOS. Note that while the asm code is properly compiled and linked in, HQ2/3x support will still not work properly on Intel macs if NASM is enabled. svn-id: r21280
Diffstat (limited to 'backends')
-rw-r--r--backends/midi/quicktime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/quicktime.cpp b/backends/midi/quicktime.cpp
index 07d184331e..afd6eeb539 100644
--- a/backends/midi/quicktime.cpp
+++ b/backends/midi/quicktime.cpp
@@ -84,8 +84,8 @@ int MidiDriver_QT::open() {
goto bail;
simpleNoteRequest.info.flags = 0;
- simpleNoteRequest.info.polyphony = 11; // simultaneous tones
- simpleNoteRequest.info.typicalPolyphony = 0x00010000;
+ WRITE_BE_UINT16(& simpleNoteRequest.info.polyphony, 11); // simultaneous tones
+ WRITE_BE_UINT16(& simpleNoteRequest.info.typicalPolyphony, 0x00010000);
qtErr = NAStuffToneDescription(qtNoteAllocator, 1, &simpleNoteRequest.tone);
if (qtErr != noErr)