Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
faiface committed Mar 2, 2019
1 parent 037b251 commit 1422af4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/speedy-player/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,25 +111,25 @@ func (ap *audioPanel) handle(event tcell.Event) (changed, quit bool) {
speaker.Unlock()
return true, false

case 'a':
case 'a', 'A':
speaker.Lock()
ap.volume.Volume -= 0.1
speaker.Unlock()
return true, false

case 's':
case 's', 'S':
speaker.Lock()
ap.volume.Volume += 0.1
speaker.Unlock()
return true, false

case 'z':
case 'z', 'Z':
speaker.Lock()
ap.resampler.SetRatio(ap.resampler.Ratio() * 15 / 16)
speaker.Unlock()
return true, false

case 'x':
case 'x', 'X':
speaker.Lock()
ap.resampler.SetRatio(ap.resampler.Ratio() * 16 / 15)
speaker.Unlock()
Expand Down

0 comments on commit 1422af4

Please sign in to comment.