This commit is contained in:
2026-08-09 19:55:28 +02:00
parent 8e6bf4e0f7
commit 1d9899c0d2
8 changed files with 29 additions and 20 deletions
+6 -6
View File
@@ -16,10 +16,10 @@ reports stream information through a callback, streams decoded PCM
buffers, and supports stopping and seeking.
The module is intended to be used through
@racketmodname[racket-sound/audio-decoder], but its procedures can also
@racketmodname[racket-audio/audio-decoder], but its procedures can also
be used directly.
@section{Validation}
@section[#:tag "mp3-decoder-validation"]{Validation}
@defproc[(mp3-valid? [mp3-file any/c]) boolean?]{
@@ -27,14 +27,14 @@ Returns #t.
The current implementation does not inspect mp3-file. This procedure
exists to satisfy the reader interface used by
@racketmodname[racket-sound/audio-decoder].
@racketmodname[racket-audio/audio-decoder].
Basic validation such as file existence and extension matching is
performed in the higher-level module. This procedure therefore acts as
an additional hook and currently accepts all inputs.
}
@section{Opening}
@section[#:tag "mp3-decoder-opening"]{Opening}
@defproc[(mp3-open [mp3-file* (or/c path? string?)]
[cb-stream-info procedure?]
@@ -68,7 +68,7 @@ where info is a mutable hash containing at least:
@item{'total-samples}]
}
@section{Reading}
@section[#:tag "mp3-decoder-reading"]{Reading}
@defproc[(mp3-read [handle struct?]) any/c]{
@@ -127,7 +127,7 @@ If the total number of samples is unavailable or equal to -1, this
procedure has no effect.
}
@section{Stopping}
@section[#:tag "mp3-decoder-stopping"]{Stopping}
@defproc[(mp3-stop [handle struct?]) void?]{