AndrewLi200504 / groove_music

2 stars 0 forks source link

Playing a composition while it is already playing results in overlapping sounds #20

Closed GaryHilares closed 3 months ago

GaryHilares commented 3 months ago

Description

Expected behaviour

After clicking the play button, either 1. the play button should get disabled (and perhaps replaced by a stop/pause button), or 2. the song should restart from the beginning if the user clicks the play button again.

Actual behaviour

After clicking the play button for the second time, a second instance of the song starts playing on top of the first one.

Steps to reproduce the bug

  1. Create 1 or more notes in the composition.
  2. Click the play button.
  3. Before the composition ends, click the play button a second time.
  4. Listen: A second instance of the composition starts playing on top of the first one.
GaryHilares commented 3 months ago

Bugfix implemented in 5b8dea25f07df4a86e5347153cedfa8a351ab92a. Will soon be merged into the default branch.