{ } Raw JSON

bundles / scipy 1.17.1 / scipy / io / wavfile / _read_fmt_chunk

function

scipy.io.wavfile:_read_fmt_chunk

source: /scipy/io/wavfile.py :368

Signature

def   _read_fmt_chunk ( fid is_big_endian )

Returns

size : int

size of format subchunk in bytes (minus 8 for "fmt " and itself)

format_tag : int

PCM, float, or compressed format

channels : int

number of channels

fs : int

sampling frequency in samples per second

bytes_per_second : int

overall byte rate for the file

block_align : int

bytes per sample, including all channels

bit_depth : int

bits per sample

Notes

Assumes file pointer is immediately after the 'fmt ' id

Aliases

  • scipy.io.wavfile._read_fmt_chunk