delete_audio(3)
π delete_audio(3) β Arcan Lua API π
πΈ NAME πΈ
okay so picture the cleanup era: delete_audio is the one whose whole job is remove the audio source. Thatβs it. Thatβs the assignment. π
β¨ SYNOPSIS β¨
Returns nil, and bestie you call it with aid:
nil
delete_audio( aid )
π¦ NOTES π¦
- Undefined alert: this is undefined for frameserver audio sources, because frameserver lifecycle management is tied to the video id. So likeβ¦ donβt try it there, fr fr. π
π EXAMPLE π
hereβs the demo, copied exactly as the manual gives it:
function delete_audio0()
a = load_asample("test.wav");
play_audio(a);
audio_gain(a, 0.0);
audio_gain(a, 1.0, 20);
end
π MISUSE π
this is the do-not-do example β it calls delete_audio(stat.source_audio) inside a frameserver callback for load_movie, and the manual files it under MISUSE for a reason. π
function delete_audio0()
a = load_movie("test.avi", FRAMESERVER_NOLOOP, function(source, stat)
if (stat.kind == "resized") then
delete_audio(stat.source_audio);
end
end);
end
π«Ά SEE ALSO π«Ά
play_audio(3)pause_audio(3)audio_gain(3)
π later, bestie β this page is from the audio source, dated October 2026, and itβs the delete_audio(3) manual page. periodt. π
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms