mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
Make MidiParser::sendToDriver protected.
The client code should never try to pass commands to the output via the MidiParser API. SCI currently does that though... Actually that shows that either our MidiParser API becomes more and more an MidiPlayer than just a parser or that the SCI design has its flaws here. svn-id: r49996
This commit is contained in:
parent
773f3bf145
commit
a451ffe268
@ -302,6 +302,11 @@ protected:
|
||||
void hangingNote(byte channel, byte note, uint32 ticks_left, bool recycle = true);
|
||||
void hangAllActiveNotes();
|
||||
|
||||
virtual void sendToDriver(uint32 b);
|
||||
void sendToDriver(byte status, byte firstOp, byte secondOp) {
|
||||
sendToDriver(status | ((uint32)firstOp << 8) | ((uint32)secondOp << 16));
|
||||
}
|
||||
|
||||
/**
|
||||
* Platform independent BE uint32 read-and-advance.
|
||||
* This helper function reads Big Endian 32-bit numbers
|
||||
@ -374,11 +379,6 @@ public:
|
||||
void setTempo(uint32 tempo);
|
||||
void onTimer();
|
||||
|
||||
virtual void sendToDriver(uint32 b);
|
||||
void sendToDriver(byte status, byte firstOp, byte secondOp) {
|
||||
sendToDriver(status | ((uint32)firstOp << 8) | ((uint32)secondOp << 16));
|
||||
}
|
||||
|
||||
bool isPlaying() const { return (_position._play_pos != 0); }
|
||||
void stopPlaying();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user