[synthclone] push by surfacep...@gmail.com - Fix compiler warnings. on 2012-12-21 05:08 GMT

0 views
Skip to first unread message

synth...@googlecode.com

unread,
Dec 21, 2012, 12:08:33 AM12/21/12
to synthclone-...@googlegroups.com
Revision: 2385486ab16c
Author: Devin Anderson <surface...@gmail.com>
Date: Thu Dec 20 21:07:04 2012
Log: Fix compiler warnings.

http://code.google.com/p/synthclone/source/detail?r=2385486ab16c

Modified:
/src/plugins/lv2/participant.cpp
/src/plugins/portmedia/sampler.cpp

=======================================
--- /src/plugins/lv2/participant.cpp Mon Nov 19 09:20:33 2012
+++ /src/plugins/lv2/participant.cpp Thu Dec 20 21:07:04 2012
@@ -112,7 +112,7 @@

// Check if the plugin has a UI that can be rendered by our view.
QString bestTypeURI;
- const LV2UIData *bestUIData;
+ const LV2UIData *bestUIData = 0;
unsigned int quality = 0;
for (int j = plugin.getUIDataCount() - 1; j >= 0; j--) {
const LV2UIData &uiData = plugin.getUIData(j);
=======================================
--- /src/plugins/portmedia/sampler.cpp Sun Oct 7 22:12:09 2012
+++ /src/plugins/portmedia/sampler.cpp Thu Dec 20 21:07:04 2012
@@ -318,7 +318,9 @@
Sampler::copyData(const float *input, float *output, unsigned long
totalFrames,
unsigned long startFrame)
{
- for (synthclone::SampleFrameCount i = startFrame; i < totalFrames;
i++) {
+ synthclone::SampleFrameCount total =
+ static_cast<synthclone::SampleFrameCount>(totalFrames);
+ for (synthclone::SampleFrameCount i = startFrame; i < total; i++) {
synthclone::SampleFrameCount inputOffset =
audioInputDeviceChannelCount * i;
synthclone::SampleFrameCount outputOffset =
Reply all
Reply to author
Forward
0 new messages