Skip to content

Sync point across channels #23

Open
@parente

Description

@parente

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions