1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

OSCSender demo app: minor refactoring to make code simpler.

This commit is contained in:
Timur Doumler 2015-11-24 10:09:15 +00:00
parent 4d3fc5a3d9
commit 669292e2fe

View file

@ -43,10 +43,8 @@ private:
{
if (slider == &rotaryKnob)
{
float valueToSend = (float) rotaryKnob.getValue();
// create and send an OSC message with an address and a float value:
if (! sender.send ("/juce/rotaryknob", valueToSend))
if (! sender.send ("/juce/rotaryknob", (float) rotaryKnob.getValue()))
showConnectionErrorMessage ("Error: could not send OSC message.");
}
}