Enum sqa_engine::sync::AudioThreadMessage [] [src]

pub enum AudioThreadMessage {
    PlayerAdded(Uuid),
    PlayerRejected(Player),
    PlayerRemoved(Player),
    PlayerInvalidOutpatch(Uuid),
    PlayerBufHalf(Uuid),
    PlayerBufEmpty(Uuid),
    Xrun,
}

A message from the audio thread.

Variants

The player with a given Uuid was successfully added.

This player was rejected due to you exceeding MAX_PLAYERS.

This player was removed on account of not being alive.

The player with a given Uuid has an invalid output patch. Playback has been stopped.

To resume playback, you MUST change the output patch to a valid channel number, and call set_active(true).

The player with a given Uuid's buffer is half full.

This is just to let you know, so that you can start refilling the buffer before it runs out.

The player with a given Uuid's buffer is empty.

This could simply mean that playback has ended, or it could mean that you didn't refill the buffer and your audio has now stopped. In the latter case, you OUGHT TO refill the buffer.

The audio thread has experienced an under- or over- run.

This REALLY SHOULD NOT happen under normal circumstances. If your sample rate and buffer size are set to reasonable values, file a bug!. You MAY WISH TO inform the user that their audio just glitched, and that they should adjust the sample rate and buffer size to remedy the problem.