LispWorks CAPI Reference Manual > 1 CAPI Reference Entries

NextPrevUpTopContentsIndex

load-sound

Function
Summary

Converts data to a loaded sound object.

Package

capi

Signature

load-sound source &key owner => sound

Arguments

source

A pathname designator or an array returned by read-sound-file.

owner

A CAPI interface, or nil .

Values

sound

An array of element type (unsigned-byte 8) .

Description

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 .

See also

free-sound
play-sound
read-sound-file


LispWorks CAPI Reference Manual - 21 Dec 2009

NextPrevUpTopContentsIndex