DSF

Read and write DSF audio stream information and tags.

class mutagen.dsf.DSF(filething)

Bases: mutagen.FileType

An DSF audio file.

Parameters:filething (filething) –
info

DSFInfo

tags

mutagen.id3.ID3Tags or None

add_tags()

Add a DSF tag block to the file.

delete(filething=None)

Remove tags from a file.

In cases where the tagging format is independent of the file type (for example mutagen.id3.ID3) all traces of the tagging format will be removed. In cases where the tag is part of the file type, all tags and padding will be removed.

The tags attribute will be cleared as well if there is one.

Does nothing if the file has no tags.

Raises:MutagenError – if deleting wasn’t possible
class mutagen.dsf.DSFInfo

DSF audio stream information.

Information is parsed from the fmt chunk of the DSF file.

length

float – audio length, in seconds.

channels

int – The number of audio channels.

sample_rate

int – Sampling frequency, in Hz. (2822400, 5644800, 11289600, or 22579200)

bits_per_sample

int – The audio sample size.

bitrate

int – The audio bitrate.

pprint()

Returns: text: Print stream information