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:
parent
4d3fc5a3d9
commit
669292e2fe
1 changed files with 1 additions and 3 deletions
|
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue