aboutsummaryrefslogtreecommitdiff
path: root/backends/midi/coremidi.cpp
diff options
context:
space:
mode:
authorJamieson Christian2006-02-27 01:59:07 +0000
committerJamieson Christian2006-02-27 01:59:07 +0000
commit2469e00248423b7d0a8595d0870818c6ebfb40cf (patch)
tree3400500ba27325ba74215e27fc11a92f3b6b334c /backends/midi/coremidi.cpp
parent2d2258f5965e0987f61b7667ab248965e770ac93 (diff)
downloadscummvm-rg350-2469e00248423b7d0a8595d0870818c6ebfb40cf.tar.gz
scummvm-rg350-2469e00248423b7d0a8595d0870818c6ebfb40cf.tar.bz2
scummvm-rg350-2469e00248423b7d0a8595d0870818c6ebfb40cf.zip
SysEx data now passed around with const pointers. Permits simplification of some SysEx client code.
Testing on Windows. Developers on other platforms, please verify integrity of music handling in your respective MidiDrivers. svn-id: r20952
Diffstat (limited to 'backends/midi/coremidi.cpp')
-rw-r--r--backends/midi/coremidi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/coremidi.cpp b/backends/midi/coremidi.cpp
index 598aaaba3f..d92f775a2d 100644
--- a/backends/midi/coremidi.cpp
+++ b/backends/midi/coremidi.cpp
@@ -50,7 +50,7 @@ public:
int open();
void close();
void send(uint32 b);
- void sysEx(byte *msg, uint16 length);
+ void sysEx(const byte *msg, uint16 length);
private:
MIDIClientRef mClient;
@@ -149,7 +149,7 @@ void MidiDriver_CoreMIDI::send(uint32 b) {
MIDISend(mOutPort, mDest, &packetList);
}
-void MidiDriver_CoreMIDI::sysEx(byte *msg, uint16 length) {
+void MidiDriver_CoreMIDI::sysEx(const byte *msg, uint16 length) {
assert(mOutPort != NULL);
assert(mDest != NULL);