| 900 | } |
| 901 | |
| 902 | void NeuralPiAudioProcessorEditor::labelTextChanged(Label* labelThatHasChanged) |
| 903 | { |
| 904 | if (labelThatHasChanged == &getInPortNumberField()) |
| 905 | { |
| 906 | const int newPort = getInPortNumberField().getTextValue().toString().getIntValue(); |
| 907 | oscReceiver.changePort(newPort); |
| 908 | updateInConnectedLabel(); |
| 909 | } |
| 910 | else if (labelThatHasChanged == &getOutPortNumberField()) |
| 911 | { |
| 912 | const int newPort = getOutPortNumberField().getTextValue().toString().getIntValue(); |
| 913 | updateOutgoingPort(newPort); |
| 914 | } |
| 915 | else if (labelThatHasChanged == &getIPField()) |
| 916 | { |
| 917 | const String newIP = getIPField().getTextValue().toString(); |
| 918 | updateOutgoingIP(newIP); |
| 919 | } |
| 920 | /* |
| 921 | else if (labelThatHasChanged == getAmpNameField()) |
| 922 | { |
| 923 | ampName = getAmpNameField().getTextValue().toString(); |
| 924 | buildAddressPatterns(); |
| 925 | oscReceiver.updateAmpName(getAmpNameField().getTextValue().toString()); |
| 926 | } |
| 927 | */ |
| 928 | } |
| 929 | |
| 930 | void NeuralPiAudioProcessorEditor::updateInConnectedLabel() |
| 931 | { |
nothing calls this directly
no test coverage detected