最終更新:2021-04-26 (月) 09:54:34 (1095d)  

ALSA/用語
Top / ALSA / 用語

バッファ

  • リングバッファ全体

ピリオド

  • 一度に書込み可能な区間
  • A period is the number of frames in between each hardware interrupt.
    • ハードウェア割り込みの発生するフレーム数の単位
  • The poll() will return once a period.

フレーム

  • その時点での全チャンネル分のサンプルを含む。
    • フレームサイズ = チャンネル数 * サンプル/バイト
  • A frame is equivalent of one sample being played, irrespective of the number of channels or the number of bits.
  • 1 frame of a Stereo 48khz 16bit PCM stream is 4 bytes.
  • 1 frame of a 5.1 48khz 16bit PCM stream is 12 bytes.
  • represents 1 analog sample from all channels

avail

  • 空いたバッファ全体

delay

  • まだ再生してない音声データの長さ

  • 1 frame = (num_channels) * (1 sample in bytes) = (2 channels) * (2 bytes (16 bits) per sample) = 4 bytes (32 bits)

参考