Mercurial > hg > svcore
diff plugin/DSSIPluginInstance.cpp @ 1039:b14064bd1f97 cxx11
This code now compiles. Main problem: sample rate types
author | Chris Cannam |
---|---|
date | Tue, 03 Mar 2015 17:09:19 +0000 |
parents | cc27f35aa75c |
children | a1cd5abcb38b |
line wrap: on
line diff
--- a/plugin/DSSIPluginInstance.cpp Tue Mar 03 15:18:24 2015 +0000 +++ b/plugin/DSSIPluginInstance.cpp Tue Mar 03 17:09:19 2015 +0000 @@ -1062,7 +1062,7 @@ } } - ev->time.tick = frameOffset; + ev->time.tick = (snd_seq_tick_time_t)frameOffset; m_eventBuffer.skip(1); if (ev->type == SND_SEQ_EVENT_CONTROLLER) { @@ -1184,8 +1184,8 @@ #endif size_t index = 0; - int *counts = (int *) - alloca(m_groupLocalEventBufferCount * sizeof(int)); + unsigned long *counts = (unsigned long *) + alloca(m_groupLocalEventBufferCount * sizeof(unsigned long)); LADSPA_Handle *instances = (LADSPA_Handle *) alloca(m_groupLocalEventBufferCount * sizeof(LADSPA_Handle)); @@ -1220,7 +1220,9 @@ int frameOffset = 0; if (evTime > blockTime) { - frameOffset = Vamp::RealTime::realTime2Frame(evTime - blockTime, m_sampleRate); + frameOffset = (int) + Vamp::RealTime::realTime2Frame(evTime - blockTime, + (unsigned)m_sampleRate); } #ifdef DEBUG_DSSI_PROCESS @@ -1270,7 +1272,7 @@ void DSSIPluginInstance::midiSend(LADSPA_Handle /* instance */, snd_seq_event_t * /* events */, - unsignd long /* eventCount */) + unsigned long /* eventCount */) { // This is likely to be called from an RT context