Converts data to a loaded sound object on Microsoft Windows and Cocoa.
capi
load-sound source &key owner => sound
source⇩ |
A pathname designator or an array returned by read-sound-file. |
owner⇩ |
A CAPI interface, or nil . |
sound⇩ |
An array of element type (unsigned-byte 8) . |
The function load-sound
converts source into a loaded sound which can be played by play-sound.
source can be a pathname designator or an array returned by read-sound-file.
owner should be a CAPI interface object, or nil
which means that the sound's owner is the current top level interface.
The loaded sound sound will be unloaded (freed) automatically when its owner is destroyed. To create a sound that is never unloaded, pass the screen as the argument owner.
(unsigned-byte 8)
array in Lisp does not constrain the output size.load-sound
is not implemented on GTK+ and Motif.
CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27