This is the cl-mpg123 Reference Manual, version 1.0.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:10:55 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-mpg123
Bindings to libmpg123, providing cross-platform, fast MPG1/2/3 decoding.
Yukari Hafner <shinmera@tymoon.eu>
Yukari Hafner <shinmera@tymoon.eu>
(GIT https://github.com/Shirakumo/cl-mpg123.git)
zlib
1.0.0
cffi
(system).
trivial-features
(system).
trivial-garbage
(system).
documentation-utils
(system).
package.lisp
(file).
toolkit.lisp
(file).
conditions.lisp
(file).
low-level.lisp
(file).
id3-data.lisp
(file).
metadata.lisp
(file).
wrapper.lisp
(file).
documentation.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-mpg123/cl-mpg123.asd
cl-mpg123/package.lisp
cl-mpg123/toolkit.lisp
cl-mpg123/conditions.lisp
cl-mpg123/low-level.lisp
cl-mpg123/id3-data.lisp
cl-mpg123/metadata.lisp
cl-mpg123/wrapper.lisp
cl-mpg123/documentation.lisp
cl-mpg123/toolkit.lisp
package.lisp
(file).
cl-mpg123
(system).
direct-str
(function).
mstring
(function).
split
(function).
string-nil
(function).
with-error
(macro).
with-foreign-values
(macro).
with-generic-error
(macro).
with-negative-error
(macro).
with-value-args
(macro).
with-zero-error
(macro).
cl-mpg123/conditions.lisp
toolkit.lisp
(file).
cl-mpg123
(system).
band
(reader method).
band
(reader method).
buffer
(reader method).
buffer-size
(reader method).
by
(reader method).
channel
(reader method).
channel
(reader method).
connection-failed
(condition).
decode-failed
(condition).
decoder-set-failed
(condition).
disconnection-failed
(condition).
equalizer-reset-failed
(condition).
equalizer-set-failed
(condition).
error-code
(reader method).
error-string
(method).
error-string-error
(condition).
file
(reader method).
file
(reader method).
file
(reader method).
file
(reader method).
file
(reader method).
file
(reader method).
file
(reader method).
file
(reader method).
frame-decode-failed
(condition).
generic-error
(condition).
handler-creation-failed
(condition).
id3-query-failed
(condition).
in-buffer
(reader method).
in-size
(reader method).
init-failed
(condition).
mode
(reader method).
mpg-error
(condition).
mpg-file-error
(condition).
mpg-file-string-error
(condition).
not-connected
(condition).
out-buffer
(reader method).
out-size
(reader method).
path
(reader method).
query
(reader method).
query-failed
(condition).
read-failed
(condition).
relative
(reader method).
scan-failed
(condition).
seek-failed
(condition).
seek-position
(reader method).
unknown-id3v2-frame-type
(condition).
value
(reader method).
value
(reader method).
value
(reader method).
volume-query-failed
(condition).
volume-set-failed
(condition).
define-direct-condition
(macro).
define-simple-condition
(macro).
equalizer-query-failed
(condition).
form
(reader method).
name
(reader method).
cl-mpg123/low-level.lisp
conditions.lisp
(file).
cl-mpg123
(system).
*static*
(special variable).
add-string
(function).
add-substring
(function).
chomp-string
(function).
clip
(function).
close
(function).
copy-string
(function).
current-decoder
(function).
decode
(function).
decode-frame
(function).
decoder
(function).
decoders
(function).
delete
(function).
delete-pars
(function).
enc-from-id3
(function).
encodings
(function).
encsize
(function).
eq
(function).
errcode
(function).
exit
(function).
feature
(function).
feed
(function).
feedseek
(function).
fmt
(function).
fmt
(class).
fmt-all
(function).
fmt-channels
(function).
(setf fmt-channels)
(function).
fmt-encoding
(function).
(setf fmt-encoding)
(function).
fmt-none
(function).
fmt-rate
(function).
(setf fmt-rate)
(function).
fmt-support
(function).
format
(function).
format-all
(function).
format-none
(function).
format-support
(function).
framebyframe-decode
(function).
framebyframe-next
(function).
framedata
(function).
frameinfo
(class).
frameinfo-abr-rate
(function).
(setf frameinfo-abr-rate)
(function).
frameinfo-bitrate
(function).
(setf frameinfo-bitrate)
(function).
frameinfo-emphasis
(function).
(setf frameinfo-emphasis)
(function).
frameinfo-flags
(function).
(setf frameinfo-flags)
(function).
frameinfo-framesize
(function).
(setf frameinfo-framesize)
(function).
frameinfo-layer
(function).
(setf frameinfo-layer)
(function).
frameinfo-mode
(function).
(setf frameinfo-mode)
(function).
frameinfo-mode-ext
(function).
(setf frameinfo-mode-ext)
(function).
frameinfo-rate
(function).
(setf frameinfo-rate)
(function).
frameinfo-vbr
(function).
(setf frameinfo-vbr)
(function).
frameinfo-version
(function).
(setf frameinfo-version)
(function).
framelength
(function).
framepos
(function).
free-string
(function).
geteq
(function).
getformat
(function).
getpar
(function).
getparam
(function).
getstate
(function).
getvolume
(function).
grow-string
(function).
handle
(class).
icy
(constant).
icy
(function).
icy2utf8
(function).
id3
(constant).
id3
(function).
id3v1
(class).
id3v1-album
(function).
(setf id3v1-album)
(function).
id3v1-artist
(function).
(setf id3v1-artist)
(function).
id3v1-comment
(function).
(setf id3v1-comment)
(function).
id3v1-genre
(function).
(setf id3v1-genre)
(function).
id3v1-tag
(function).
(setf id3v1-tag)
(function).
id3v1-title
(function).
(setf id3v1-title)
(function).
id3v1-year
(function).
(setf id3v1-year)
(function).
id3v2
(class).
id3v2-album
(function).
(setf id3v2-album)
(function).
id3v2-artist
(function).
(setf id3v2-artist)
(function).
id3v2-comment
(function).
(setf id3v2-comment)
(function).
id3v2-comment-list
(function).
(setf id3v2-comment-list)
(function).
id3v2-comments
(function).
(setf id3v2-comments)
(function).
id3v2-extra
(function).
(setf id3v2-extra)
(function).
id3v2-extras
(function).
(setf id3v2-extras)
(function).
id3v2-genre
(function).
(setf id3v2-genre)
(function).
id3v2-picture
(function).
(setf id3v2-picture)
(function).
id3v2-pictures
(function).
(setf id3v2-pictures)
(function).
id3v2-text
(function).
(setf id3v2-text)
(function).
id3v2-texts
(function).
(setf id3v2-texts)
(function).
id3v2-title
(function).
(setf id3v2-title)
(function).
id3v2-version
(function).
(setf id3v2-version)
(function).
id3v2-year
(function).
(setf id3v2-year)
(function).
index
(function).
info
(function).
init
(function).
init-string
(function).
length
(function).
meta-check
(function).
meta-free
(function).
mstring
(class).
mstring-fill
(function).
(setf mstring-fill)
(function).
mstring-p
(function).
(setf mstring-p)
(function).
mstring-size
(function).
(setf mstring-size)
(function).
new
(function).
new-icy
(constant).
new-id3
(constant).
new-pars
(function).
open
(function).
open-fd
(function).
open-feed
(function).
open-handle
(function).
outblock
(function).
par
(function).
param
(function).
parnew
(function).
pars
(class).
picture
(class).
picture-data
(function).
(setf picture-data)
(function).
picture-description
(function).
(setf picture-description)
(function).
picture-mime-type
(function).
(setf picture-mime-type)
(function).
picture-size
(function).
(setf picture-size)
(function).
picture-type
(function).
(setf picture-type)
(function).
plain-strerror
(function).
position
(function).
rates
(function).
read
(function).
replace-buffer
(function).
replace-reader
(function).
replace-reader-handle
(function).
reset-eq
(function).
resize-string
(function).
safe-buffer
(function).
samplesize
(function).
scan
(function).
seek
(function).
seek-frame
(function).
set-filesize
(function).
set-index
(function).
set-string
(function).
set-substring
(function).
spf
(function).
store-utf8
(function).
strerror
(function).
strlen
(function).
supported-decoders
(function).
tell
(function).
tell-stream
(function).
tellframe
(function).
text
(class).
text-description
(function).
(setf text-description)
(function).
text-id
(function).
(setf text-id)
(function).
text-lang
(function).
(setf text-lang)
(function).
text-text
(function).
(setf text-text)
(function).
timeframe
(function).
tpf
(function).
volume
(function).
volume-change
(function).
*here*
(special variable).
cl-mpg123/id3-data.lisp
low-level.lisp
(file).
cl-mpg123
(system).
*id3v1-genre-list*
(special variable).
*id3v2-type-map*
(special variable).
id3v1-genre
(function).
id3v2-genre
(function).
id3v2-type
(function).
cl-mpg123/metadata.lisp
id3-data.lisp
(file).
cl-mpg123
(system).
data
(reader method).
description
(reader method).
field
(function).
field-text
(function).
fields
(reader method).
kind
(reader method).
metadata
(class).
mime-type
(reader method).
picture
(class).
pictures
(reader method).
reinitialize-instance
(method).
shared-initialize
(method).
shared-initialize
(method).
version
(reader method).
do-text-array
(macro).
map-text-array
(function).
cl-mpg123/wrapper.lisp
metadata.lisp
(file).
cl-mpg123
(system).
accepted-format
(reader method).
auto-resample
(reader method).
buffer
(reader method).
(setf buffer)
(writer method).
buffer-size
(reader method).
(setf buffer-size)
(writer method).
channels
(reader method).
connect
(function).
connected
(reader method).
decode
(function).
decode-frame
(function).
decode-frames
(reader method).
decoder
(reader method).
(setf decoder)
(function).
decoders
(function).
describe-object
(method).
disconnect
(function).
down-sample
(reader method).
downspeed
(reader method).
encoding
(reader method).
equalizer
(function).
(setf equalizer)
(function).
exit
(function).
file
(class).
file-format
(function).
force-8bit
(reader method).
force-channels
(reader method).
force-float
(reader method).
force-rate
(reader method).
frame-count
(function).
frame-position
(function).
frame-samples
(function).
frame-seconds
(function).
fuzzy-seek
(reader method).
gapless
(reader method).
handle
(reader method).
ignore-infoframe
(reader method).
index-size
(reader method).
info
(function).
init
(function).
make-file
(function).
metadata
(function).
outscale
(reader method).
parse-pictures
(reader method).
path
(reader method).
preframes
(reader method).
print-object
(method).
process
(function).
process-into-vector
(function).
process-to-vector
(function).
rate
(reader method).
read-directly
(function).
reinitialize-instance
(method).
reset-equalizer
(function).
rva
(reader method).
sample-count
(function).
sample-position
(function).
scan
(function).
scanned
(reader method).
seek
(function).
shared-initialize
(method).
skip-id3v2
(reader method).
start-frame
(reader method).
stream-position
(function).
supported-decoders
(function).
supported-encodings
(function).
supported-rates
(function).
time-frame-index
(function).
track-length
(function).
track-position
(function).
upspeed
(reader method).
volume
(function).
(setf volume)
(function).
*init*
(special variable).
*print-object-path-limit*
(special variable).
check-connected
(function).
configure-properties
(function).
decode-directly
(function).
decode-flags
(function).
dispose-handle
(function).
encode-channels
(function).
encode-encodings
(function).
format-time
(function).
set-connected
(writer method).
set-scanned
(writer method).
cl-mpg123/documentation.lisp
wrapper.lisp
(file).
cl-mpg123
(system).
Packages are listed by definition order.
cl-mpg123-cffi
org.shirakumo.fraf.mpg123.cffi
cffi
.
common-lisp
.
*static*
(special variable).
add-string
(function).
add-substring
(function).
chomp-string
(function).
clip
(function).
close
(function).
copy-string
(function).
current-decoder
(function).
decode
(function).
decode-frame
(function).
decoder
(function).
decoders
(function).
delete
(function).
delete-pars
(function).
enc-from-id3
(function).
encodings
(function).
encsize
(function).
eq
(function).
errcode
(function).
exit
(function).
feature
(function).
feed
(function).
feedseek
(function).
fmt
(function).
fmt
(class).
fmt-all
(function).
fmt-channels
(function).
(setf fmt-channels)
(function).
fmt-encoding
(function).
(setf fmt-encoding)
(function).
fmt-none
(function).
fmt-rate
(function).
(setf fmt-rate)
(function).
fmt-support
(function).
format
(function).
format-all
(function).
format-none
(function).
format-support
(function).
framebyframe-decode
(function).
framebyframe-next
(function).
framedata
(function).
frameinfo
(class).
frameinfo-abr-rate
(function).
(setf frameinfo-abr-rate)
(function).
frameinfo-bitrate
(function).
(setf frameinfo-bitrate)
(function).
frameinfo-emphasis
(function).
(setf frameinfo-emphasis)
(function).
frameinfo-flags
(function).
(setf frameinfo-flags)
(function).
frameinfo-framesize
(function).
(setf frameinfo-framesize)
(function).
frameinfo-layer
(function).
(setf frameinfo-layer)
(function).
frameinfo-mode
(function).
(setf frameinfo-mode)
(function).
frameinfo-mode-ext
(function).
(setf frameinfo-mode-ext)
(function).
frameinfo-rate
(function).
(setf frameinfo-rate)
(function).
frameinfo-vbr
(function).
(setf frameinfo-vbr)
(function).
frameinfo-version
(function).
(setf frameinfo-version)
(function).
framelength
(function).
framepos
(function).
free-string
(function).
geteq
(function).
getformat
(function).
getpar
(function).
getparam
(function).
getstate
(function).
getvolume
(function).
grow-string
(function).
handle
(class).
icy
(constant).
icy
(function).
icy2utf8
(function).
id3
(constant).
id3
(function).
id3v1
(class).
id3v1-album
(function).
(setf id3v1-album)
(function).
id3v1-artist
(function).
(setf id3v1-artist)
(function).
id3v1-comment
(function).
(setf id3v1-comment)
(function).
id3v1-genre
(function).
(setf id3v1-genre)
(function).
id3v1-tag
(function).
(setf id3v1-tag)
(function).
id3v1-title
(function).
(setf id3v1-title)
(function).
id3v1-year
(function).
(setf id3v1-year)
(function).
id3v2
(class).
id3v2-album
(function).
(setf id3v2-album)
(function).
id3v2-artist
(function).
(setf id3v2-artist)
(function).
id3v2-comment
(function).
(setf id3v2-comment)
(function).
id3v2-comment-list
(function).
(setf id3v2-comment-list)
(function).
id3v2-comments
(function).
(setf id3v2-comments)
(function).
id3v2-extra
(function).
(setf id3v2-extra)
(function).
id3v2-extras
(function).
(setf id3v2-extras)
(function).
id3v2-genre
(function).
(setf id3v2-genre)
(function).
id3v2-picture
(function).
(setf id3v2-picture)
(function).
id3v2-pictures
(function).
(setf id3v2-pictures)
(function).
id3v2-text
(function).
(setf id3v2-text)
(function).
id3v2-texts
(function).
(setf id3v2-texts)
(function).
id3v2-title
(function).
(setf id3v2-title)
(function).
id3v2-version
(function).
(setf id3v2-version)
(function).
id3v2-year
(function).
(setf id3v2-year)
(function).
index
(function).
info
(function).
init
(function).
init-string
(function).
length
(function).
meta-check
(function).
meta-free
(function).
mstring
(class).
mstring-fill
(function).
(setf mstring-fill)
(function).
mstring-p
(function).
(setf mstring-p)
(function).
mstring-size
(function).
(setf mstring-size)
(function).
new
(function).
new-icy
(constant).
new-id3
(constant).
new-pars
(function).
open
(function).
open-fd
(function).
open-feed
(function).
open-handle
(function).
outblock
(function).
par
(function).
param
(function).
parnew
(function).
pars
(class).
picture
(class).
picture-data
(function).
(setf picture-data)
(function).
picture-description
(function).
(setf picture-description)
(function).
picture-mime-type
(function).
(setf picture-mime-type)
(function).
picture-size
(function).
(setf picture-size)
(function).
picture-type
(function).
(setf picture-type)
(function).
plain-strerror
(function).
position
(function).
rates
(function).
read
(function).
replace-buffer
(function).
replace-reader
(function).
replace-reader-handle
(function).
reset-eq
(function).
resize-string
(function).
safe-buffer
(function).
samplesize
(function).
scan
(function).
seek
(function).
seek-frame
(function).
set-filesize
(function).
set-index
(function).
set-string
(function).
set-substring
(function).
spf
(function).
store-utf8
(function).
strerror
(function).
strlen
(function).
supported-decoders
(function).
tell
(function).
tell-stream
(function).
tellframe
(function).
text
(class).
text-description
(function).
(setf text-description)
(function).
text-id
(function).
(setf text-id)
(function).
text-lang
(function).
(setf text-lang)
(function).
text-text
(function).
(setf text-text)
(function).
timeframe
(function).
tpf
(function).
volume
(function).
volume-change
(function).
*here*
(special variable).
cl-mpg123
org.shirakumo.fraf.mpg123
cffi
.
common-lisp
.
*id3v1-genre-list*
(special variable).
*id3v2-type-map*
(special variable).
accepted-format
(generic reader).
auto-resample
(generic reader).
band
(generic reader).
buffer
(generic reader).
(setf buffer)
(generic writer).
buffer-size
(generic reader).
(setf buffer-size)
(generic writer).
by
(generic reader).
channel
(generic reader).
channels
(generic reader).
connect
(function).
connected
(generic reader).
connection-failed
(condition).
data
(generic reader).
decode
(function).
decode-failed
(condition).
decode-frame
(function).
decode-frames
(generic reader).
decoder
(generic reader).
(setf decoder)
(function).
decoder-set-failed
(condition).
decoders
(function).
description
(generic reader).
disconnect
(function).
disconnection-failed
(condition).
down-sample
(generic reader).
downspeed
(generic reader).
encoding
(generic reader).
equalizer
(function).
(setf equalizer)
(function).
equalizer-reset-failed
(condition).
equalizer-set-failed
(condition).
error-code
(generic reader).
error-string
(generic function).
error-string-error
(condition).
exit
(function).
field
(function).
field-text
(function).
fields
(generic reader).
file
(generic reader).
file
(class).
file-format
(function).
force-8bit
(generic reader).
force-channels
(generic reader).
force-float
(generic reader).
force-rate
(generic reader).
frame-count
(function).
frame-decode-failed
(condition).
frame-position
(function).
frame-samples
(function).
frame-seconds
(function).
fuzzy-seek
(generic reader).
gapless
(generic reader).
generic-error
(condition).
handle
(generic reader).
handler-creation-failed
(condition).
id3-query-failed
(condition).
id3v1-genre
(function).
id3v2-genre
(function).
id3v2-type
(function).
ignore-infoframe
(generic reader).
in-buffer
(generic reader).
in-size
(generic reader).
index-size
(generic reader).
info
(function).
init
(function).
init-failed
(condition).
kind
(generic reader).
make-file
(function).
metadata
(function).
metadata
(class).
mime-type
(generic reader).
mode
(generic reader).
mpg-error
(condition).
mpg-file-error
(condition).
mpg-file-string-error
(condition).
not-connected
(condition).
out-buffer
(generic reader).
out-size
(generic reader).
outscale
(generic reader).
parse-pictures
(generic reader).
path
(generic reader).
picture
(class).
pictures
(generic reader).
preframes
(generic reader).
process
(function).
process-into-vector
(function).
process-to-vector
(function).
query
(generic reader).
query-failed
(condition).
rate
(generic reader).
read-directly
(function).
read-failed
(condition).
relative
(generic reader).
reset-equalizer
(function).
rva
(generic reader).
sample-count
(function).
sample-position
(function).
scan
(function).
scan-failed
(condition).
scanned
(generic reader).
seek
(function).
seek-failed
(condition).
seek-position
(generic reader).
skip-id3v2
(generic reader).
start-frame
(generic reader).
stream-position
(function).
supported-decoders
(function).
supported-encodings
(function).
supported-rates
(function).
time-frame-index
(function).
track-length
(function).
track-position
(function).
unknown-id3v2-frame-type
(condition).
upspeed
(generic reader).
value
(generic reader).
version
(generic reader).
volume
(function).
(setf volume)
(function).
volume-query-failed
(condition).
volume-set-failed
(condition).
*init*
(special variable).
*print-object-path-limit*
(special variable).
check-connected
(function).
configure-properties
(function).
decode-directly
(function).
decode-flags
(function).
define-direct-condition
(macro).
define-simple-condition
(macro).
direct-str
(function).
dispose-handle
(function).
do-text-array
(macro).
encode-channels
(function).
encode-encodings
(function).
equalizer-query-failed
(condition).
form
(generic reader).
format-time
(function).
map-text-array
(function).
mstring
(function).
name
(generic reader).
set-connected
(generic writer).
set-scanned
(generic writer).
split
(function).
string-nil
(function).
with-error
(macro).
with-foreign-values
(macro).
with-generic-error
(macro).
with-negative-error
(macro).
with-value-args
(macro).
with-zero-error
(macro).
Definitions are sorted by export status, category, package, and then by lexicographic order.
A list of genres that the ID3V1 genre index references. Includes WinAmp extensions. See https://de.wikipedia.org/wiki/Liste_der_ID3v1-Genres
A map of id3v2 frame type name to human-readable names. See http://id3.org/d3v2.3.0
Connects the file to the underlying file on the filesystem.
This will trigger parsing of several pieces of information within
the file and open the path to querying the file for properties.
Naturally it will also allow actually decoding the file.
See FILE
See CONNECTED
See CONNECTION-FAILED
Decodes data from the given input vector to the given output vector.
Returns the number of bytes decoded.
See DECODE-DIRECTLY
Decodes the next frame into the library’s internal buffer.
This does not store it into the file buffer! BUFFER will not have
changed!
See FILE
See FRAME-DECODE-FAILED
Returns a list of all decoder backends the library knows about.
See SUPPORTED-DECODERS
Disconnects the file from the underlying file on the filesystem.
This will free up the file descriptor. And prevent you from decoding
any more data until the file is connected again.
See FILE
See CONNECTED
See DISCONNECTION-FAILED
Accesses the equalizer value for the given channel and band.
Channel must be within [0,31].
This is SETFable.
See EQUALIZER-QUERY-FAILED
See EQUALIZER-SET-FAILED
See FILE
Cleans up the underlying library if not already done so.
Gathers all fields matching the requested type into a list.
The field type is excluded, so each match is a list of three values:
language, description, and text.
On an unknown ID3V2 frame type name, an error is signalled.
See METADATA
See FIELDS
See ID3V2-TYPE
Returns all text values of the matching fields as multiple values.
This is mostly for convenience when you only care about one or more text
values of a field.
See FIELD
Returns information about the file’s actual format.
Returned are three values, the rate in Hertz, the channels, and
the encoding used.
See RATE
See CHANNELS
See ENCODING
See FILE
Returns the number of frames in the file.
Performs a SCAN if necessary.
See FILE
See SCAN
Returns the current position as a frame index.
See FILE
Returns the number of samples per frame.
Performs a SCAN if necessary.
See FILE
See SCAN
Returns the number of seconds a frame encompasses.
Performs a SCAN if necessary.
See FILE
See SCAN
Returns the name of the corresponding genre of the integer as defined by id3v1.
Parses the ID3V2 genre string into a list of genres.
More specifically, it handles ID3V1 references, of which there can be multiple.
Returns the id3v2 frame type keyword for the passed equivalent human-readable name.
Returns various information about the current frame.
Returned is a plist with the following fields:
:VERSION The MPEG version, 1.0/2.0/2.5
:LAYER The MPEG layer, 1/2/3
:RATE The sample rate in Hertz
:MODE The channel mode
:MODE-EXT The mode extension bit flag
:FLAGS A list of frame flags
:EMPHASIS The emphasis type
:BITRATE The bitrate in kbps
:ABR-RATE The target average bitrate
:VBR The VBR mode
See FILE
Prepares the underlying library if not already done so.
Create a new file object pointing to the given path.
See FILE
Returns a fresh metadata object created from the scanned ID3 tags.
Performs a SCAN if necessary.
The :ID3V1-ENCODING argument specifies which encoding to use for the
strings in ID3V1 tags, as that is not formally specified and might
vary by file.
See FILE
See SCAN
See METADATA
Decodes data from the file into the internal buffer.
Note that this will fail grossly if the file’s buffer-size / buffer is NIL.
Returns the number of bytes read. See BUFFER for the pointer to the C buffer
where the actual data is stored.
See READ-DIRECTLY
See BUFFER
See BUFFER-SIZE
Decodes data from the file into the given octet-vector.
Returns the number of bytes read.
At most (min (length vector) (buffer-size file)) bytes are read.
See PROCESS
Decodes data from the file into a new (unsigned-byte 8) vector.
The returned vector will have the exact length fitting to the amount of
data decoded.
See PROCESS
Decodes data from the file and stores it in BUFFER, reading at most BUFFER-SIZE bytes.
Returns the number of bytes that were stored in the buffer.
See FILE
See PROCESS
See READ-FAILED
Resets the equalizer to its initial values. Which is to say it disables it.
See EQUALIZER-RESET-FAILED
See FILE
Returns the number of samples in the file.
Performs a SCAN if necessary.
See FILE
See SCAN
Returns the current position as a sample index.
See FILE
Scans the file for information.
This is only done if a scan has not already been performed.
See SCANNED
See FILE
See SCAN-FAILED
Seek in the frame.
MODE can be one of :ABSOLUTE :RELATIVE :FROM-END which decides
whether the given position should be absolute, relative to the
current position, or from the end, respectively.
BY can be one of :SAMPLE :FRAME :SECOND which decides whether seeking should be by the sample, frame, or track seconds index.
Returns the new position as sample, frame, or track seconds index
respectively.
See FILE
See SEEK-FAILED
Returns the current position in stream as a byte index.
See FILE
Returns a list of all supported decoder backends.
See DECODERS
See DECODER
Returns a list of all supported encoding types.
Returns the frame index of a given track seconds index.
See FILE
Returns the length of the track in seconds.
See FRAME-SECONDS
See FRAME-COUNT
Returns the current track seconds position.
See FRAME-SECONDS
See FRAME-POSITION
Accesses the volume of the file.
Returned are three values: the base volume, the actual volume including
potential changes by RVA, and the RVA adjustment made. The volumes are
linear factors, and the RVA adjustment is in decibel.
This is SETFable. On SETF, an additional keyword argument :relative
is supported, which says whether to adjust volume relatively to the
current value, or absolutely.
See VOLUME-QUERY-FAILED
See VOLUME-SET-FAILED
See FILE
Returns the accepted format for the decoder.
This can be NIL for none, T for all, or a list of three values:
(RATE CHANNELS ENCODINGS) where RATE is the accepted rate in Hertz,
CHANNELS is one of :left :right :left-right, and ENCODINGS is a list of
allowed data encodings, each value being one of:
:int8 :uint8 :int16 :uint16 :int24 :uint24
:int32 :uint32 :ulaw-8 :alaw-8 :float :double
This can be set via the :accepted-format initarg.
See FILE
See CL-MPG123-CFFI:ENC
Returns whether to automatic internal resampling of any kind.
This can be set via the :auto-resample initarg.
See FILE
Returns the band that was attempted to be accessed.
equalizer-set-failed
)) ¶band
.
equalizer-query-failed
)) ¶band
.
Returns a pointer to the C char buffer that is used to store decoded data.
This might be NIL if the buffer-size is NIL.
See FILE
See BUFFER-SIZE
read-failed
)) ¶Returns the size of the internal buffer used to store decoded data.
This can be NIL for no buffer, T for automatic size, or an integer specifying
the number of bytes to use. The automatic size is picked by
CL-MPG123-CFFI:OUTBLOCK.
This can be set via the :buffer-size initarg.
See FILE
See BUFFER
read-failed
)) ¶Returns the way by which the seek was performed.
Must be one of :SAMPLE :FRAME :SECOND
See SEEK-FAILED
seek-failed
)) ¶by
.
Returns the channel that was attempted to be accessed.
equalizer-set-failed
)) ¶equalizer-query-failed
)) ¶Returns the number of channels the decoded file has.
This is NIL until the file is connected.
See FILE
See CONNECT
See FILE-FORMAT
Returns whether the file has been connected to the file or not.
Before being connected most queries or actions against the file will
fail.
See FILE
See CONNECT
Returns the actual picture data as an octet-vector.
You are responsible for converting or interpreting the data as needed.
See PICTURE.
Returns the number of frames that are decoded or T for all.
This can be set via the :decode-frames initarg.
See FILE
The decoder driver to use as backend.
See SUPPORTED-DECODERS for a list of decoders that can be used as a backend.
This is SETFable.
See FILE
See DECODER-SET-FAILED
Returns the picture description string.
See PICTURE
Returns the downsampling approach being used.
Can be one of NIL :NATIVE :HALF-RATE :QUARTER-RATE.
This can be set via the :down-sample initarg.
See FILE
Returns the number of times a frame will be played.
This can be set via the :downspeed initarg.
See FILE
Returns the encoding the file is in.
This is NIL until the file is connected.
See FILE
See CONNECT
See FILE-FORMAT
Returns the CL-MPG123-CFFI:ERRORS error-code associated with the condition.
See ERROR-STRING-ERROR
See ERROR-STRING
error-string-error
)) ¶Returns the string describing the error code associated with the condition.
See ERROR-STRING-ERROR
error-string-error
)) ¶Returns the list of fields stored in the metadata.
Each entry in the list is of the following form:
ENTRY ::= (TYPE LANG DESCRIPTION TEXT)
TYPE — A keyword corresponding to the id3v2 frame type name.
LANG — A three-letter language string or NIL if no language was given.
DESCRIPTION — A string describing the field or NIL if no description was given.
TEXT — The actual text content. Can also be an integer in cases where
the data type was known (year, track number).
Note that fields that can potentially contain multiple values of the same type
will be split into multiple instances of the same field. For example, a TPE1
frame with text "FOO/BAR" gets split into two TPE1 entries, one with FOO as
text and one with BAR.
See METADATA
See FIELD
See FIELD-TEXT
Returns the file associated with the condition.
See FILE
See MPG-FILE-ERROR
volume-set-failed
)) ¶file
.
equalizer-set-failed
)) ¶file
.
equalizer-query-failed
)) ¶file
.
seek-failed
)) ¶file
.
query-failed
)) ¶file
.
decoder-set-failed
)) ¶file
.
connection-failed
)) ¶file
.
mpg-file-error
)) ¶file
.
Returns whether to force 8bit formats.
This can be set via the :force-8bit initarg.
See FILE
Returns, if at all, which channels are forced.
Can be one of NIL :mono-right :mono-left :mono-mix :stereo.
This can be set via the :force-channels initarg.
See FILE
Returns whether to force floating-point output.
This can be set via the :force-float initarg.
See FILE
Returns, if forced, the rate at which output is produced.
This can be set via the :force-rate initarg.
See FILE
Returns whether to allow approximate seeking by guessing.
This can be set via the :fuzzy-seek initarg.
See FILE
Returns whether to use gapless decoding.
This can be set via the :gapless initarg.
See FILE
Returns the CL-MPG123-CFFI:HANDLE pointer of the file.
See FILE
Returns whether to ignore LAME/Xing info frames and treat them as normal MPEG data.
This can be set via the :ignore-infoframe initarg.
See FILE
Returns the pointer to the C char buffer used for input on decoding.
decode-failed
)) ¶Returns the size of the input buffer in bytes.
decode-failed
)) ¶Returns the frame index size.
Can be NIL for default, T for dynamic growth, or an integer for
specific size (positive) or growth rate (negative).
This can be set via the :index-size initarg.
See FILE
Returns the picture type.
Can be one of:
:OTHER :ICON :OTHER-ICON :FRONT-COVER :BACK-COVER :LEAFLET :MEDIA :LEAD
:ARTIST :CONDUCTOR :ORCHESTRA :COMPOSER :LYRICIST :LOCATION :RECORDING
:PERFORMANCE :VIDEO :FISH :ILLUSTRATION :ARTIST-LOGO :PUBLISHER-LOGO
See PICTURE
Returns the picture data’s mime-type as a string.
See PICTURE
Returns the mode by which the seek was performed.
Must be one of :ABSOLUTE :RELATIVE :FROM-END
See SEEK-FAILED
seek-failed
)) ¶mode
.
Returns the pointer to the C char buffer used for output on decoding.
decode-failed
)) ¶Returns the size of the output buffer in bytes.
decode-failed
)) ¶Returns the output sample amplitude scale.
This can be set via the :outscale initarg.
See FILE
Returns whether ID3V2 APIC tags should be parsed.
This can be set via the :parse-pictures initarg.
See FILE
Returns the pathname of the file being accessed.
See FILE
See CONNECT
Returns the list of pictures stored in the metadata.
See PICTURE
See METADATA
Returns how many frames to decode or ignore in advance for layer 3.
This can be set via the :preframes initarg.
See FILE
The function that performed the query that failed.
query-failed
)) ¶Returns the rate in Hertz that the decoded file is in.
This is NIL until the file is connected.
See FILE
See CONNECT
See FILE-FORMAT
Returns whether the volume was attempted to be adjusted relatively or absolutely.
volume-set-failed
)) ¶Returns the RVA mode being used.
Can be one of NIL :OFF :MIX :ALBUM.
This can be set via the :down-sample initarg.
See FILE
Returns whether the file has been scanned for metadata.
Before being scanned, some queries will return inaccurate results
or might not be able to return any data at all, in which case they will
initiate a scan themselves automatically.
See FILE
See SCAN
Returns the position to which the seek was performed.
See SEEK-FAILED
seek-failed
)) ¶Returns whether to skip the ID3V2 tag information.
This can be set via the :skip-id3v2 initarg.
See FILE
Returns the index of the starting frame. Frames before this are not played.
This can be set via the :start-frame initarg.
See FILE
Returns the number of frames between two played frames.
This can be set via the :upspeed initarg.
See FILE
Returns the value the function tried to set before the condition was signalled.
volume-set-failed
)) ¶equalizer-set-failed
)) ¶decoder-set-failed
)) ¶The version of the ID3 metadata.
Can be either "1.0" "1.1" "2.3" or "2.4".
See METADATA
Condition signalled when connecting to/opening the underlying file fails.
See CONNECT
See MPG-FILE-STRING-ERROR
See PATH
:out-buffer
This slot is read-only.
Condition signalled when changing the decoder of a file fails.
See VALUE
See (SETF DECODER)
See MPG-FILE-STRING-ERROR
Condition signalled when disconnecting from/closing the underlying file fails.
See DISCONNECT
See MPG-FILE-STRING-ERROR
Condition signalled when resetting the equalizer failed.
See MPG-FILE-STRING_ERROR
See RESET-EQUALIZER
Condition signalled when setting an equalizer band value failed.
See BAND
See CHANNEL
See MPG-FILE-STRING-ERROR
See (SETF EQUALIZER)
(quote nil)
:channel
This slot is read-only.
Condition superclass for all errors that include an error string from the underlying library.
See MPG-ERROR
See ERROR-CODE
See ERROR-STRING
common-lisp
.
(quote nil)
:error
This slot is read-only.
Condition signalled when mpg123 fails to decode a frame.
See MPG-FILE-STRING-ERROR
See DECODE-FRAME
A generic error class to be used in situations where no more specific class applies.
See FORM
See ERROR-STRING-ERROR
form
.
Condition signalled when creating a new mpg handler object fails.
See MPG-FILE-STRING-ERROR
Condition signalled when retrieving the ID3 metadata failed.
See MPG-FILE-STRING-ERROR
See METADATA
Condition signalled in the case that the initialisation of the library fails.
See INIT
See ERROR-STRING-ERROR
Condition superclass for all errors related to this library.
error
.
Condition superclass for all errors that relate to a FILE object.
See FILE
See MPG-ERROR
file
.
Combination of MPG-FILE-ERROR and ERROR-STRING-ERROR.
See MPG-FILE-ERROR
See ERROR-STRING-ERROR
Condition signalled when an attempt is made to use a function that requires the file object to be connected, but it isn’t.
See MPG-FILE-ERROR
Generic condition signalled when the querying for a value failed.
See QUERY
See MPG-FILE-ERROR
See GENERIC-ERROR
Condition signalled when mpg123 fails to read into a buffer.
See BUFFER
See BUFFER-SIZE
See MPG-FILE-STRING-ERROR
See DIRECT-READ
:buffer-size
This slot is read-only.
Condition signalled when scanning the file for metadata failed.
See MPG-FILE-STRING-ERROR
See SCAN
Condition signalled when a seek to a different position in the file failed.
See BY
See MODE
See SEEK-POSITION
See MPG-FILE-ERROR
See SEEK
by
.
file
.
mode
.
seek-position
.
(quote nil)
:seek-position
This slot is read-only.
Condition signalled when an unknown id3v2 frame type name is requested from a metadata object.
See NAME
See METADATA
See MPG-ERROR
Condition signalled when querying for the current volume failed.
See MPG-FILE-STRING-ERROR
See VOLUME
Condition signalled when setting the current volume failed.
See MPG-FILE-STRING-ERROR
See (SETF VOLUME)
See RELATIVE
See VALUE
(quote nil)
:relative
This slot is read-only.
Container class for a file.
Manages all the decoding information so that it is easily accessible.
Also takes care of managing the underlying C values so that you don’t
have to worry about garbage collection or buffer allocation and so forth.
It also takes care of setting up the desired decoding parameters and flags.
The slots of the file are not settable, however you can reconfigure the
file at any point using REINITIALIZE-INSTANCE. Note that this will have
to DISCONNECT the file and delete its handle first. It will reCONNECT
if it was previously connected, but you cannot do this if you are in the
middle of processing data or need to otherwise preserve state.
You can find more information about most of the properties that can be set
via initargs in the mpg123.h mpg123_params and mpg123_param_flags enums.
See https://www.mpg123.de/api/group__mpg123__init.shtml#ga73a8ff3363028b89afc72b3ea032b9cb
See HANDLE
See CONNECTED
See SCANNED
See BUFFER
See RATE
See CHANNELS
See ENCODING
See PATH
See DECODER
See ACCEPTED-FORMAT
See BUFFER-SIZE
See FORCE-RATE
See DOWN-SAMPLE
See RVA
See DOWNSPEED
See UPSPEED
See START-FRAME
See DECODE-FRAMES
See OUTSCALE
See INDEX-SIZE
See PREFRAMES
See FORCE-CHANNELS
See FORCE-8BIT
See GAPLESS
See FUZZY-SEEK
See FORCE-FLOAT
See SKIP-ID3V2
See IGNORE-INFOFRAME
See AUTO-RESAMPLE
See PICTURES
See CONNECT
See DISCONNECT
See READ-DIRECTLY
See PROCESS
See PROCESS-TO-VECTOR
See PROCESS-INTO-VECTOR
See DECODE
See DECODE-FRAME
See SAMPLE-POSITION
See FRAME-POSITION
See STREAM-POSITION
See SEEK
See TIME-FRAME-INDEX
See EQUALIZER
See RESET-EQUALIZER
See VOLUME
See INFO
See FILE-FORMAT
See SCAN
See FRAME-COUNT
See SAMPLE-COUNT
See FRAME-SECONDS
See FRAME-SAMPLES
See TRACK-LENGTH
See METADATA
accepted-format
.
auto-resample
.
(setf buffer)
.
buffer
.
(setf buffer-size)
.
buffer-size
.
channels
.
connected
.
decode-frames
.
decoder
.
describe-object
.
down-sample
.
downspeed
.
encoding
.
force-8bit
.
force-channels
.
force-float
.
force-rate
.
fuzzy-seek
.
gapless
.
handle
.
ignore-infoframe
.
index-size
.
outscale
.
parse-pictures
.
path
.
preframes
.
print-object
.
rate
.
reinitialize-instance
.
rva
.
scanned
.
set-connected
.
set-scanned
.
shared-initialize
.
skip-id3v2
.
start-frame
.
upspeed
.
Initarg | Value |
---|---|
:path | nil |
:decoder | nil |
:accepted-format | t |
:buffer-size | t |
:force-rate | nil |
:down-sample | nil |
:rva | off |
:downspeed | nil |
:upspeed | nil |
:start-frame | nil |
:decode-frames | t |
:outscale | t |
:index-size | nil |
:preframes | 4 |
:force-channels | nil |
:force-8bit | nil |
:gapless | t |
:fuzzy-seek | nil |
:force-float | nil |
:skip-id3v2 | nil |
:ignore-infoframe | nil |
:auto-resample | t |
:parse-pictures | t |
:accepted-format
This slot is read-only.
:buffer-size
:force-rate
This slot is read-only.
:down-sample
This slot is read-only.
:start-frame
This slot is read-only.
:decode-frames
This slot is read-only.
:index-size
This slot is read-only.
:force-channels
This slot is read-only.
:force-8bit
This slot is read-only.
:fuzzy-seek
This slot is read-only.
:force-float
This slot is read-only.
:skip-id3v2
This slot is read-only.
:ignore-infoframe
This slot is read-only.
:auto-resample
This slot is read-only.
:parse-pictures
This slot is read-only.
foreign-struct-type
.
translatable-foreign-type
.
foreign-struct-type
.
translatable-foreign-type
.
foreign-struct-type
.
translatable-foreign-type
.
foreign-struct-type
.
translatable-foreign-type
.
foreign-struct-type
.
translatable-foreign-type
.
Class container for ID3 metadata.
When re/initialising this, you should pass the ID3V1/2 struct pointers as
the respective initargs. Note that ID3V1 and ID3V2 values will coexist, but
ID3V2 values should always come before ID3V1 values in the resulting fields
list. Also note that duplicate (by EQUAL) entries are not stored.
Note that when the metadata is reinitialised, all fields and pictures are cleared out first, before potentially being repopulated by the passed args.
Note that ID3V1 text values are by default parsed by UTF-8 first and by
ISO-8859-1 if that fails. See DIRECT-STR. You can override the UTF-8 default
by specifying the :ID3V1-ENCODING initarg.
See METADATA
See VERSION
See FIELDS
See PICTURES
See FIELD
See FIELD-TEXT
foreign-struct-type
.
translatable-foreign-type
.
foreign-struct-type
.
translatable-foreign-type
.
foreign-struct-type
.
translatable-foreign-type
.
Container class for a picture encapsulated in an ID3 tag.
The data is copied over to a lisp (unsigned-byte 8) vector, so the picture
data will stay fresh even if the source file or id3 data is freed.
See KIND
See DESCRIPTION
See MIME-TYPE
See DATA
This slot is read-only.
foreign-struct-type
.
translatable-foreign-type
.
Stores whether CL-MPG123-CFFI:INIT has been called or not.
Sets the amount of characters printed of the path of the FILE during PRINT-OBJECT.
See FILE
Expands to DEFINE-SIMPLE-CONDITION except automatically constructing slots for each access to C.
See DEFINE-SIMPLE-CONDITION
Shorthand for DEFINE-CONDITION.
If the first argument in the body is a list, it is taken as the slots list.
Otherwise the arguments are the format string and arguments for the report.
In the report body, C is bound to the condition and S to the stream.
Handle a form that returns a CL-MPG123-CFFI:ERRORS enum value.
Same as CFFI:WITH-FOREIGN-OBJECTS except resolving the bindings at the end and returning them as multiple values.
Simple variant of WITH-ERROR that signals a generic variant.
Uses of this should be replaced by more explicit condition signals later.
Handle a form that errors when its result is negative.
Same as CFFI:WITH-FOREIGN-OBJECTS except that after CALL the bindings contain the resolved values.
Handle a form that errors when its result is zero.
Checks whether the file is connected or not. If not, an error is signalled.
See FILE
See CONNECTED
See NOT-CONNECTED
Decodes data from the given input array pointer to the given output array pointer.
Returns the number of bytes decoded.
See FILE
See DECODE-FAILED
Decodes the flags integer into a list of flag enum keywords.
Translate the string pointed to by POINTER into a string of max LENGTH.
If the translated string is empty, NIL is returned.
At first the string is attempted to be decoded by the specified ENCODING. If this fails, it is instead decoded by ISO-8859-1.
Cleans up the handle and deallocates it.
Encodes the list of channels as a single integer by ORing their values together.
Encodes the list of encodings as a single integer by ORing their values together.
Formats the given seconds in H:MM:SS format.
Translates an CL-MPG123-CFFI:MSTRING struct or pointer to such a struct to a string. If the translated string is empty, NIL is returned.
Splits the string on each occurrence of char, dropping empty substrings.
When the argument is NIL or an empty string, return NIL, otherwise return the argument.
Returns he form that caused the generic error.
See GENERIC-ERROR
generic-error
)) ¶form
.
Returns the name of the erroneously requested id3v2 frame type.
See UNKNOWN-ID3v2-FRAME-TYPE
unknown-id3v2-frame-type
)) ¶name
.
Condition signalled when querying for an equalizer band value failed.
See BAND
See CHANNEL
See MPG-FILE-ERROR
See EQUALIZER
Jump to: | (
A B C D E F G H I K L M N O P Q R S T U V W |
---|
Jump to: | (
A B C D E F G H I K L M N O P Q R S T U V W |
---|
Jump to: | *
A B C D E F G H I K M N O P Q R S U V |
---|
Jump to: | *
A B C D E F G H I K M N O P Q R S U V |
---|
Jump to: | C D E F G H I L M N P Q R S T U V W |
---|
Jump to: | C D E F G H I L M N P Q R S T U V W |
---|