tag
8.18
top
← prev up next →

Taglib Bindings for RacketπŸ”— i

Asumu Takikawa <asumu@racket-lang.org>

This package contains a set of Racket bindings for the Taglib library for reading metadata for popular audio formats. The bindings are for the C library, which only supports the limited abstract API of Taglib.

Requires the taglibc library.

This package has been tested on Debian GNU/Linux. If you have taglibc installed and this FFI binding cannot find it, please e-mail me about your setup so that I can improve the library.

(require taglib ) package: taglib

struct

(struct tag (titleartistalbumcommentgenreyeartrack)
#:extra-constructor-namemake-tag)
title:string?
artist:string?
album:string?
comment:string?
genre:string?
Represents the Tag class in taglib. Contains common metadata.

struct

(struct audio-properties (lengthbitratesampleratechannels)
#:extra-constructor-namemake-audio-properties)
Represents the AudioProperties class in taglib. Contains audio properties.

procedure

( get-metadata path)(or/c (list/c tag? audio-properties? )#f)

Extracts the metadata and audio properties of the audio file at the given path. If unsuccessful, the function returns #f.

top
← prev up next →

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /