Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync point across channels #23

Open
parente opened this issue Jun 8, 2010 · 0 comments
Open

Sync point across channels #23

parente opened this issue Jun 8, 2010 · 0 comments

Comments

@parente
Copy link
Member

parente commented Jun 8, 2010

There are often times where:

  1. Speech and sound play simultaneously on separate channels.
  2. The app queues up another utterance and sound on those channels to be played together.

Today, as soon as one channel finishes its output, it moves on to the next queued command. If the sound is short, for instance, the next queued sound will begin playing while the first utterance is still being spoken. The second utterance will possibly play much later.

It's possible to sync output across channels by listening for the end of output deferreds for all audio in a group and only queueing the next commands when they occur. But this approach gets really ugly for app writers.

JSonic needs a barrier command that accepts an array of channels as parameters. The command prevents any channel from continuing to process its command queue until all of the channels have reached the barrier. A channel stop should trigger all queued barriers as if the channel reached them normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant