AFCLOSEFILE(3)
π AFCLOSEFILE π
okay so bestie, you're in section 3 of the manual (that's the library-functions girlies, iykyk) and today's main character is afCloseFile β the one that closes an open audio file. yes. that's the whole vibe. closing. it's giving closure, literally π«Ά
β¨ NAME β¨
afCloseFile β close an open audio file πΈ
β¨ SYNOPSIS β¨
#include <audiofile.h>
int afCloseFile(AFfilehandle file);
β¨ PARAMETERS β¨
fileβ a valid file handle created byafOpenFile(3). valid is doing a lot of heavy lifting in that sentence bestie, don't come in here with a random handle and expect magic π
β¨ DESCRIPTION β¨
afCloseFile closes the audio file file. that's it. that's the job. π
and here's the cute part: if the file was opened for writing, closing it also updates the file. so like, the close is not just a goodbye, it's also the part where your changes actually get written down. no cap. the way that closing is lowkey load-bearing for writersβ¦ obsessed π
β¨ RETURN VALUE β¨
0β the file was closed properly. slay. β¨-1β an error occurred while closing the file. π
β¨ ERRORS β¨
afCloseFile can generate these possible errors:
AF_BAD_FILEHANDLEAF_BAD_LSEEKAF_BAD_WRITE
okay so these are the three little gremlins that can pop up. no further lore is provided, so we don't make any up. periodt π
β¨ SEE ALSO β¨
afOpenFile(3)β the one that started it all, the origin story π
β¨ AUTHOR β¨
Michael Pruett <michael@68k.org> β the icon, the moment, the author π
and that's the whole page bestie!! you now know how to close a file correctly, which is more than most people can say. go forth and afCloseFile responsibly. mwah π
Audio File Library 0.3.6 Β· 03/06/2013 β yeah she's vintage but she's still serving, and this manual page is AFCLOSEFILE(3) through and through. byeeee π¦
π¦ where this page comes from
- alpine 3.24: audiofile-doc 0.3.6-r3 Β· LGPL-2.1-or-later
- arch rolling: audiofile 0.3.6-12 Β· Apache-2.0 AND GPL-2.0-or-later AND LGPL-2.1-or-later
- debian bookworm: libaudiofile-dev 0.3.6-5+deb12u1 Β· LGPL-2.1-or-later
- debian trixie: libaudiofile-dev 0.3.6-7+b1 Β· LGPL-2.1-or-later
- epel 10: audiofile-devel 1:0.3.6-44.el10_2 Β· LGPL-2.1-or-later and GPL-2.0-or-later
- epel 9: audiofile-devel 1:0.3.6-36.el9 Β· LGPL-2.1-or-later and GPL-2.0-or-later
- fedora 43: audiofile-devel 1:0.3.6-42.fc43 Β· LGPL-2.1-or-later and GPL-2.0-or-later
- fedora 43: audiofile-devel 1:0.3.6-42.fc43 Β· LGPL-2.1-or-later and GPL-2.0-or-later
- fedora 44: audiofile-devel 1:0.3.6-44.fc44 Β· LGPL-2.1-or-later and GPL-2.0-or-later
- fedora 44: audiofile-devel 1:0.3.6-44.fc44 Β· LGPL-2.1-or-later and GPL-2.0-or-later
- nixpkgs unstable: audiofile 0.3.6
- opensuse-leap 16.0: audiofile-doc 0.3.6-bp160.1.13 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: audiofile-doc 0.3.6-bp160.1.13 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: audiofile-doc 0.3.6-bp160.1.13 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: audiofile-doc 0.3.6-bp160.1.13 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- ubuntu jammy: libaudiofile-dev 0.3.6-5+deb10u1build0.22.04.1 Β· LGPL-2.1-or-later
- ubuntu jammy: libaudiofile-dev 0.3.6-5build1 Β· LGPL-2.1-or-later
- ubuntu noble: libaudiofile-dev 0.3.6-6build2 Β· LGPL-2.1-or-later
- ubuntu questing: libaudiofile-dev 0.3.6-7build1
- ubuntu resolute: libaudiofile-dev 0.3.6-7build2 Β· LGPL-2.1-or-later
- ubuntu stonking: libaudiofile-dev 0.3.6-7build2 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms