summaryrefslogtreecommitdiffstats
path: root/arts/midi
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
commitb1057f437bf65300831a0ccb45b920787c6b318d (patch)
treef8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /arts/midi
parent4ddfca384ced9ad654213aef9dc2c3973720b980 (diff)
downloadtdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz
tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/midi')
-rw-r--r--arts/midi/Makefile.am4
-rw-r--r--arts/midi/artsmidi.idl2
-rw-r--r--arts/midi/audiosync_impl.cc2
-rw-r--r--arts/midi/audiosync_impl.h2
-rw-r--r--arts/midi/midisyncgroup_impl.cc4
5 files changed, 7 insertions, 7 deletions
diff --git a/arts/midi/Makefile.am b/arts/midi/Makefile.am
index b5719649..b7d655a1 100644
--- a/arts/midi/Makefile.am
+++ b/arts/midi/Makefile.am
@@ -9,12 +9,12 @@ bin_PROGRAMS = midisend
noinst_PROGRAMS = midisynctest
midisend_SOURCES = midisend.cc midimsg.c
-midisend_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIBPTHREAD)
+midisend_LDFLAGS = $(all_libraries) $(LIB_QT) $(KDE_RPATH) $(LIBPTHREAD)
midisend_LDADD = libartsmidi_idl.la
midisend_COMPILE_FIRST = artsmidi.h
midisynctest_SOURCES = midisynctest.cc
-midisynctest_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIBPTHREAD)
+midisynctest_LDFLAGS = $(all_libraries) $(LIB_QT) $(KDE_RPATH) $(LIBPTHREAD)
midisynctest_LDADD = libartsmidi.la -lsoundserver_idl
midisynctest_COMPILE_FIRST = artsmidi.h
diff --git a/arts/midi/artsmidi.idl b/arts/midi/artsmidi.idl
index 70157d95..82e6e9e4 100644
--- a/arts/midi/artsmidi.idl
+++ b/arts/midi/artsmidi.idl
@@ -54,7 +54,7 @@ struct TimeStamp {
/**
* different status of a midi command
*/
-enum MidiCommandStatus {
+enum MidiCommandtqStatus {
// Masks:
mcsCommandMask = 0xf0,
mcsChannelMask = 0x0f,
diff --git a/arts/midi/audiosync_impl.cc b/arts/midi/audiosync_impl.cc
index 20f089df..a75992c6 100644
--- a/arts/midi/audiosync_impl.cc
+++ b/arts/midi/audiosync_impl.cc
@@ -188,7 +188,7 @@ void AudioSync_impl::synchronizeTo(const TimeStamp& time)
#endif
}
-AudioSync_impl *AudioSync_impl::find(AudioSync audioSync)
+AudioSync_impl *AudioSync_impl::tqfind(AudioSync audioSync)
{
list<AudioSync_impl *>::iterator i;
diff --git a/arts/midi/audiosync_impl.h b/arts/midi/audiosync_impl.h
index 302c93cb..dde1aed0 100644
--- a/arts/midi/audiosync_impl.h
+++ b/arts/midi/audiosync_impl.h
@@ -67,7 +67,7 @@ public:
void updateTime();
// interface to MidiSyncGroup
- static AudioSync_impl *find(AudioSync audioSync);
+ static AudioSync_impl *tqfind(AudioSync audioSync);
void synchronizeTo(const TimeStamp& time);
void setSyncGroup(MidiSyncGroup_impl *syncGroup);
diff --git a/arts/midi/midisyncgroup_impl.cc b/arts/midi/midisyncgroup_impl.cc
index 5d5305dd..f446899f 100644
--- a/arts/midi/midisyncgroup_impl.cc
+++ b/arts/midi/midisyncgroup_impl.cc
@@ -68,7 +68,7 @@ void MidiSyncGroup_impl::removeClient(MidiClient client)
void MidiSyncGroup_impl::addAudioSync(AudioSync audioSync)
{
- AudioSync_impl *impl = AudioSync_impl::find(audioSync);
+ AudioSync_impl *impl = AudioSync_impl::tqfind(audioSync);
impl->setSyncGroup(this);
audioSyncs.push_back(impl);
@@ -77,7 +77,7 @@ void MidiSyncGroup_impl::addAudioSync(AudioSync audioSync)
void MidiSyncGroup_impl::removeAudioSync(AudioSync audioSync)
{
- AudioSync_impl *impl = AudioSync_impl::find(audioSync);
+ AudioSync_impl *impl = AudioSync_impl::tqfind(audioSync);
impl->setSyncGroup(0);
audioSyncs.remove(impl);
}