AFINITAESCHANNELDATA(3)

✨ AFINITAESCHANNELDATA ✨

okay bestie so you know those two lil functions, afInitAESChannelDataTo and afInitAESChannelData? they're the ones that set up the AES non-audio data situash in your audio file setup πŸ’– this is the AFINITAESCHANNELDATA(3) manual page and we're gonna read it together, no skimming, no cap 🫢


🌸 NAME 🌸

afInitAESChannelDataTo, afInitAESChannelData β€” initialize AES non-audio data in an audio file setup ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <audiofile.h>

void afInitAESChannelDataTo(AFfilesetup setup, int track, int willHaveData);
void afInitAESChannelData(AFfilesetup setup, int track);

πŸ’… PARAMETERS πŸ’…

  • setup β€” a valid file setup that you got back from afNewFileSetup(3). it's giving "I was born for this" πŸ’«
  • track β€” picks a track inside the audio file setup. and literally, for every file format supported rn, track is always AF_DEFAULT_TRACK. like that's the only option bestie, no decisions to make 😭
  • willHaveData β€” a boolean-valued integer that says whether AES non-audio data will be present or not. yes/no energy πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

so you've got yourself an AFfilesetup structure, created with afNewFileSetup(3), and a track identified by track (and remember β€” AF_DEFAULT_TRACK for all currently supported file formats, periodt). afInitAESChannelDataTo initializes that track to contain AES non-audio data or not contain it, depending on what you told it. afInitAESChannelData is basically the same vibe except it always initializes the track to contain AES non-audio data. no toggle, just yes πŸ’–

πŸ‘‘ real talk: currently only AIFF and AIFF-C file formats can even store AES non-audio data. every other file format literally ignores it. so if you're working in something else, this data is getting the silent treatment πŸ™ˆ

πŸ’€ ERRORS πŸ’€

afInitAESChannelDataTo and afInitAESChannelData can throw these at you:

  • AF_BAD_FILESETUP β€” your setup is an invalid file setup. it's giving broken, bestie 🫠
  • AF_BAD_TRACKID β€” your track is an invalid track identifier. not a real track, not invited πŸ’€

🌈 SEE ALSO 🌈

afNewFileSetup(3)


🫢 AUTHOR 🫢

Michael Pruett <michael@68k.org> β€” thank you for your service king πŸ‘‘


Audio File Library version 0.3.6, dated 03/06/2013 β€” yeah she's an icon, she's a legend, and she is the moment βœ¨πŸ’…πŸŒΈ that's the whole page bestie, now go initialize some AES non-audio data, you absolute main character πŸ¦‹β­

πŸ“¦ where this page comes from