Skip to content

Commit

Permalink
PlatformPlayer: Minor adjustment on midiControl.
Browse files Browse the repository at this point in the history
One of the debug messages had the wrong method name.
  • Loading branch information
AShiningRay committed Oct 20, 2024
1 parent 545d86b commit 091dbaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/recompile/mobile/PlatformPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ public int longMidiEvent(byte[] data, int offset, int length)

if(data == null || offset < 0 || length < 0) { throw new IllegalArgumentException("MmidiControl: Invalid arguments for shortMidiEvent()"); }

/* longMidiEvent sends System Exclusive messagesm hence the SysexMessage data */
/* longMidiEvent sends System Exclusive messages hence the SysexMessage data */
Track[] tracks = player.midiSequence.getTracks();
try
{
Expand Down Expand Up @@ -721,7 +721,7 @@ public void setChannelVolume(int channel, int volume)
track[channel].add(new MidiEvent(new ShortMessage(ShortMessage.CONTROL_CHANGE, channel, 7, volume), 0));
channelVolume[channel] = volume; // Update the stored volume
}
catch (Exception e) { System.out.println("Midi setLevel failed: " + e.getMessage());}
catch (Exception e) { System.out.println("Midi setChannelVolume failed: " + e.getMessage());}
}

public void setProgram(int channel, int bank, int program)
Expand Down

0 comments on commit 091dbaf

Please sign in to comment.