BabylonianTeam / Babylonians

A great app we are making for CS506
1 stars 0 forks source link

Multiple audio files playing at the same time #54

Open cpvandehey opened 8 years ago

cpvandehey commented 8 years ago

Description

Audio listings in a course can be played at the same time. The user may be confused when they can listen to multiple audio clips at the same time.

Severity

Trivial.

Suggestion

Setup a Boolean variable that can be used as a lock/semaphore... This can be used to prevent the use of multiple audio files at the same time.

wandonye commented 8 years ago

There are two problems to solve here:

  1. multiple audio files are played at the same time: this is easier to solve because we know if there is anything playing in the queue of STKAudioPlayer. A natural solution is to stop the current audio and play the pressed one.
  2. multiple play buttons shows as "playing" status: this is hard to solve because buttons belong to ATItemCell, not the table. Ideally the cell should not refer to the table after initiation. I'm planing to use NSNotification to solve this issue.
wandonye commented 8 years ago

Also related to https://github.com/BabylonianTeam/Babylonians/issues/14 They should be fixed together