delete_audio(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸ’– 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 πŸ¦‹

  1. 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 🫢

πŸ’œ 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