beetlebug▾
/

ztcl::audio unload

Frees a sound of the audio engine.

ztcl::audio unload SOUND

Description

Stops each voice of SOUND, with {status stopped} for each -command, and frees its memory.

Returns

An empty string.

Examples

% ztcl::audio configure -device offline; set s [ztcl::audio load -wave sine]; ztcl::audio unload $s; ztcl::audio info

Errors

% ztcl::audio unload sound3
sound "sound3" doesn't exist
-errorcode TCL LOOKUP AUDIO sound3

Facts

Capability
audio. A new interpreter does not have it until the host turns it on.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.6

See also