To read and decode Monkey's Audio you need to follow these steps (these steps are roughly the same as in the section dedicated to flac):
- Open an .ape file with element type
(unsigned-byte 8). - Pass the stream to
ape:open-apefunction which will create and returnbitreader:readerobject. - Read metadata blocks, passing the object from previous step to
ape:read-metadata. - Read frames with
ape:read-frame. This method accept the number of frame you wish to be read as the third argument. Total number of frames in the file can be accessed throughmetadata-total-framesfunction. - Decode the frame with
ape:decode-frameand repeat the previous step until all data is read and decoded.
API
Conditions.No node with name
Metadata structure.
ape-error.No node with name
Reading and decoding.
metadata.No node with name
open-ape.No node with name
read-metadata.No node with name
read-frame.No node with name
Helpers.
decode-frame.No node with name
with-open-ape.No node with name
seconds=>frame-number.