diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
commit | 10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch) | |
tree | 4bc444c00a79e88105f2cfce5b6209994c413ca0 /libkmid | |
parent | 307136d8eef0ba133b78ceee8e901138d4c996a1 (diff) | |
download | tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip |
Revert automated changes
Sorry guys, they are just not ready for prime time
Work will continue as always
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkmid')
-rw-r--r-- | libkmid/deviceman.cc | 2 | ||||
-rw-r--r-- | libkmid/midistat.cc | 18 | ||||
-rw-r--r-- | libkmid/midistat.h | 10 | ||||
-rw-r--r-- | libkmid/player.cc | 6 | ||||
-rw-r--r-- | libkmid/player.h | 4 |
5 files changed, 20 insertions, 20 deletions
diff --git a/libkmid/deviceman.cc b/libkmid/deviceman.cc index 07a0af9b2..c8030f44e 100644 --- a/libkmid/deviceman.cc +++ b/libkmid/deviceman.cc @@ -119,7 +119,7 @@ DeviceManager::DeviceManager(int def) TQString mapurl(config->readPathEntry("mapFilename")); if ((config->readBoolEntry("useMidiMapper", false))&&(!mapurl.isEmpty())) { - mapper_tmp = new MidiMapper( mapurl.mid(mapurl.tqfind(":")+1 ).local8Bit() ); + mapper_tmp = new MidiMapper( mapurl.mid(mapurl.find(":")+1 ).local8Bit() ); } else mapper_tmp = 0L; diff --git a/libkmid/midistat.cc b/libkmid/midistat.cc index 9a45c2472..29d1436c8 100644 --- a/libkmid/midistat.cc +++ b/libkmid/midistat.cc @@ -1,6 +1,6 @@ /************************************************************************** - midistat.cc - class MiditqStatus, change it internally and then send it. + midistat.cc - class MidiStatus, change it internally and then send it. This file is part of LibKMid 0.9.5 Copyright (C) 1997,98,99,2000 Antonio Larrosa Jimenez LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libkmid.html @@ -33,7 +33,7 @@ extern int MT32toGM[128]; -MiditqStatus::MiditqStatus() +MidiStatus::MidiStatus() { int i; tempo=1000000; @@ -51,29 +51,29 @@ MiditqStatus::MiditqStatus() } } -MiditqStatus::~MiditqStatus() +MidiStatus::~MidiStatus() { } // void noteOn ( uchar chn, uchar note, uchar vel ); // void noteOff ( uchar chn, uchar note, uchar vel ); -void MiditqStatus::chnPatchChange ( uchar chn, uchar patch ) +void MidiStatus::chnPatchChange ( uchar chn, uchar patch ) { chn_patch[chn]=patch; } -void MiditqStatus::chnPressure ( uchar chn, uchar vel ) +void MidiStatus::chnPressure ( uchar chn, uchar vel ) { chn_pressure[chn]=vel; } -void MiditqStatus::chnPitchBender ( uchar chn, uchar lsb, uchar msb ) +void MidiStatus::chnPitchBender ( uchar chn, uchar lsb, uchar msb ) { chn_bender[chn]=((int)msb<<8|lsb); } -void MiditqStatus::chnController ( uchar chn, uchar ctl , uchar v ) +void MidiStatus::chnController ( uchar chn, uchar ctl , uchar v ) { if (ctl==7) chn_lastisvolumeev[chn]=1; else if (ctl==11) chn_lastisvolumeev[chn]=0; @@ -81,12 +81,12 @@ void MiditqStatus::chnController ( uchar chn, uchar ctl , uchar v ) chn_controller[chn][ctl]=v; } -void MiditqStatus::tmrSetTempo(int v) +void MidiStatus::tmrSetTempo(int v) { tempo=v; } -void MiditqStatus::sendData(DeviceManager *midi,int gm) +void MidiStatus::sendData(DeviceManager *midi,int gm) { for (int chn=0;chn<16;chn++) { diff --git a/libkmid/midistat.h b/libkmid/midistat.h index 27dd45d87..17dda1269 100644 --- a/libkmid/midistat.h +++ b/libkmid/midistat.h @@ -37,11 +37,11 @@ * @version 0.9.5 17/01/2000 * @author Antonio Larrosa Jimenez <larrosa@kde.org> */ -class MiditqStatus +class MidiStatus { private: - class MiditqStatusPrivate; - MiditqStatusPrivate *d; + class MidiStatusPrivate; + MidiStatusPrivate *d; ulong tempo; @@ -56,12 +56,12 @@ class MiditqStatus /** * Constructor. */ - MiditqStatus(); + MidiStatus(); /** * Destructor. */ - ~MiditqStatus(); + ~MidiStatus(); // void noteOn ( uchar chn, uchar note, uchar vel ); diff --git a/libkmid/player.cc b/libkmid/player.cc index d6ac22004..a68a9b147 100644 --- a/libkmid/player.cc +++ b/libkmid/player.cc @@ -575,7 +575,7 @@ void MidiPlayer::play(bool calloutput,void output(void)) double absTimeAtChangeTempo=0; double absTime=0; double diffTime=0; - MiditqStatus *midistat; + MidiStatus *midistat; //ulong mspass; double prevms=0; int j; @@ -592,7 +592,7 @@ void MidiPlayer::play(bool calloutput,void output(void)) midi->sync(1); midi->tmrStop(); midi->closeDev(); - midistat = new MiditqStatus(); + midistat = new MidiStatus(); setPos(ctl->gotomsec,midistat); minTime=ctl->gotomsec; prevms=(ulong)minTime; @@ -792,7 +792,7 @@ void MidiPlayer::play(bool calloutput,void output(void)) } -void MidiPlayer::setPos(ulong gotomsec,MiditqStatus *midistat) +void MidiPlayer::setPos(ulong gotomsec,MidiStatus *midistat) { int trk,minTrk; ulong tempo=(ulong)(500000 * ctl->ratioTempo); diff --git a/libkmid/player.h b/libkmid/player.h index cb21a9674..6a9210292 100644 --- a/libkmid/player.h +++ b/libkmid/player.h @@ -379,11 +379,11 @@ class KMID_EXPORT MidiPlayer * @param gotomsec the number of milliseconds to go to . A subsequent call to * play() will start playing the song from that moment, instead of the * beginning. - * @param midistat a MiditqStatus object that will contain the status in + * @param midistat a MidiStatus object that will contain the status in * which the MIDI device would be if it would have arrived to this situation by * a normal playing of the song. */ - void setPos(ulong gotomsec, class MiditqStatus *midistat); + void setPos(ulong gotomsec, class MidiStatus *midistat); /** * Changes the speed at which a song is played. The song's tempo is multiplied |