diff options
author | Chris Apers | 2003-05-28 18:36:29 +0000 |
---|---|---|
committer | Chris Apers | 2003-05-28 18:36:29 +0000 |
commit | 2bb68e12784f231a838da5d8ea15ca0842c188ab (patch) | |
tree | 78ba5ee5b3a919086d0ec7f2343ac2af78400c70 /backends | |
parent | 1374e7c6b1b4a57149494f98cab2ab9d73d37e78 (diff) | |
download | scummvm-rg350-2bb68e12784f231a838da5d8ea15ca0842c188ab.tar.gz scummvm-rg350-2bb68e12784f231a838da5d8ea15ca0842c188ab.tar.bz2 scummvm-rg350-2bb68e12784f231a838da5d8ea15ca0842c188ab.zip |
Braces
svn-id: r8051
Diffstat (limited to 'backends')
-rw-r--r-- | backends/midi/ypa1.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/backends/midi/ypa1.cpp b/backends/midi/ypa1.cpp index 6766af341f..6e6a2f90de 100644 --- a/backends/midi/ypa1.cpp +++ b/backends/midi/ypa1.cpp @@ -21,30 +21,27 @@ MidiDriver_YamahaPa1::MidiDriver_YamahaPa1() { _midiHandle = 0; } -int MidiDriver_YamahaPa1::open() -{ +int MidiDriver_YamahaPa1::open() { if (!(_isOpen = Pa1Lib_midiOpen(NULL, &_midiHandle))) return MERR_DEVICE_NOT_AVAILABLE; Pa1Lib_midiControlChange(_midiHandle,0,120,0); // all sound off Pa1Lib_midiControlChange(_midiHandle,0,121,0); // reset all controller - Pa1Lib_midiControlChange(_midiHandle,0,123,0); // all not off + Pa1Lib_midiControlChange(_midiHandle,0,123,0); // all notes off return 0; } -void MidiDriver_YamahaPa1::close() -{ +void MidiDriver_YamahaPa1::close() { if (_isOpen) { Pa1Lib_midiControlChange(_midiHandle,0,120,0); // all sound off Pa1Lib_midiControlChange(_midiHandle,0,121,0); // reset all controller - Pa1Lib_midiControlChange(_midiHandle,0,123,0); // all not off + Pa1Lib_midiControlChange(_midiHandle,0,123,0); // all notes off Pa1Lib_midiClose(_midiHandle); } } -void MidiDriver_YamahaPa1::send(uint32 b) -{ +void MidiDriver_YamahaPa1::send(uint32 b) { if (!_isOpen) return; @@ -82,8 +79,7 @@ void MidiDriver_YamahaPa1::send(uint32 b) } } -MidiDriver *MidiDriver_YamahaPa1_create() -{ +MidiDriver *MidiDriver_YamahaPa1_create() { return new MidiDriver_YamahaPa1(); } |