Luna::AHI::get_frame_size

constexpr usize get_frame_size(BitDepth bit_depth, u32 num_channels)

Gets the size of one audio frame in bytes.

Parameters

  • in bit_depth

    The bit depth of the audio sample.

  • in num_channels

    The number of channels in one frame, which is the number of audio samples in one frame.

Return value

Returns the size of one audio frame in bytes.