MusicBrainz-libdiscid-0.4.1.1: Binding to libdiscid by MusicBrainz

Safe HaskellNone

Sound.MusicBrainz.DiscId

Description

 

Synopsis

Documentation

getVersionStringSource

Arguments

:: String

a string containing the version of libdiscid.

Return the full version string of this library, including the name.

getDefaultDeviceSource

Arguments

:: String

a string containing an operating system dependent device identifier

Return the name of the default disc drive for this operating system.

readFromDefaultCd :: IO (Either String DiscId)Source

Read the disc in the default CD-ROM/DVD-ROM drive.

readFromCd :: String -> IO (Either String DiscId)Source

Read the disc in the given CD-ROM/DVD-ROM drive.

hasFeature :: DiscIdFeature -> BoolSource

Check if a certain feature is implemented on the current platform

getFeatureList :: [DiscIdFeature]Source

A list of features supported by the current platform

data DiscIdFeature Source

Features procided by libdiscid

Constructors

Read

Read disc TOC and calculate IDs

MCN

Get Media Catalogue Number

ISRC

Get ISRC

Unknown

Unknown feature

Instances

data DiscId Source

The information for a disc

Constructors

DiscId 

Fields

mbId :: String

MusicBrainz DiscID

freedbId :: String

FreeDB DiscID

submissionUrl :: String

URL for submitting the DiscID to MusicBrainz

webserviceUrl :: String

URL for retrieving CD information from MusicBrainz' web service

sectors :: Int

The length of the disc in sectors

toc :: TOC

The TOC of the disc

mcn :: String

The Media Catalogue Number for the disc

Instances

data TOC Source

The TOC of a disc

Constructors

TOC 

Fields

firstTrackNum :: Int

The number of the first track on this disc

lastTrackNum :: Int

The number of the last track on this disc

tracks :: Map Int Track

The tracks on the disc

Instances

data Track Source

The information for a track

Constructors

Track 

Fields

num :: Int

The track number

offset :: Int

The sector offset of a track

length :: Int

The length of a track in sectors

isrc :: String

The ISRC for a track

Instances