Skip to content

Commit c729793

Browse files
committed
Fixed channel allocation index
1 parent 6ca7e49 commit c729793

File tree

1 file changed

+2
-2
lines changed
  • OPNMIDI-Player/src/main/java/ru/wohlsoft/opnmidiplayer

1 file changed

+2
-2
lines changed

OPNMIDI-Player/src/main/java/ru/wohlsoft/opnmidiplayer/Player.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ public void onNothingSelected(AdapterView<?> parent) {
307307
public void onItemSelected(AdapterView<?> parent,
308308
View itemSelected, int selectedItemPosition, long selectedId)
309309
{
310-
AppSettings.setChanAllocMode(selectedItemPosition);
310+
AppSettings.setChanAllocMode(selectedItemPosition - 1);
311311
if(m_bound)
312-
m_service.setChanAllocMode(selectedItemPosition);
312+
m_service.setChanAllocMode(selectedItemPosition - 1);
313313
}
314314

315315
public void onNothingSelected(AdapterView<?> parent) {

0 commit comments

Comments
 (0)