Skip to content

AudioSnapshot

1 min read

Import: import system.audio;

Read the audio guide for usage, limits, and current platform restrictions.

AudioSnapshot

A copied view of a player's recent output PCM.

public class AudioSnapshot

samples

Interleaved PCM after the player's volume and mute settings.

public samples: float[]

sample_rate

Samples per second per channel.

public sample_rate: int

channels

One for mono or two for stereo.

public channels: int

frame_position

Rendered frame index since capture was enabled, at the beginning of this snapshot.

public frame_position: long

overrun

Whether output frames were lost to queue overflow or a concurrent capture update.

public overrun: bool