Sound(3)
π Sound(3) β bestie's guide to the Sound thingy π
library functions manual Β· audio file description Β· ok so sit down, grab a boba, we're learning Sound(3) π§β¨
πΈ Name πΈ
Sound β it's an audio file description. That's the whole vibe. π
π Structures π
First thing first, you gotta pull in the headers, no cap:
#include <audio/audiolib.h>
#include <audio/sound.h>
typedef struct
{
. . .
}SoundRec, *Sound;
So like, SoundRec is the struct and Sound is a pointer to it. Iconic duo honestly π«Ά
β¨ Members β¨
π¨ GIRLIE STOP. Do not dereference the members of the SoundRec structure directly. That's not the move. Use the access macros instead. Trust. π
And btw, sound is a Sound, which is a pointer to a SoundRec structure. That's the lore. π
SoundFileFormat(sound)β gives you theintvalue that's the format of the sound file. π₯SoundFileFormatString(sound)β gives you the string description of the format of the sound file. Like the format but make it β¨wordsβ¨SoundDataFormat(sound)β gives you theintvalue that's the data format of the sound file.SoundDataFormatString(sound)β gives you the string description of the data format of the sound file. π¦SoundNumTracks(sound)β gives you theintvalue that's the number of tracks in the audio data in the sound file. (how many tracks bestie?? the people wanna know)SoundSampleRate(sound)β gives you theintvalue that's the samples rate of the audio data in the sound file. π§SoundNumSamples(sound)β gives you theintvalue that's the total number of samples. all of them. every single one. πSoundComment(sound)β gives you the string comment. πSoundBytesPerSample(sound)β returns the bytes per sample of audio data. πSoundNumBytes(sound)β returns the total number of bytes of audio data in the sound file. big number energy.SoundValidateDataFormat(sound)β returns true if the sound file format is a valid format. a vibe check, but for formats. β
π Description π
The SoundRec structure describes an audio file. That's it, that's the whole thing, that's the moment. πβ
π See Also π
Go read these next, bestie, they're all part of the same friend group:
SoundCloseFileSoundCreateSoundFlushFileSoundOpenFileForReadingSoundOpenFileWritingSoundReadFileSoundRewindFileSoundSeekFileSoundTellFileSoundWriteFile
And of course the main character: audiolib β Network Audio System C Language Interface π
ok that's the whole page, mwah π this was the sound package, version 1.9.4, and the page itself is Sound(3) β go slay some audio files bestie, ily, bye πβ¨π¦
π¦ where this page comes from
- debian bookworm: libaudio-dev 1.9.4-7
- debian trixie: libaudio-dev 1.9.4-9
- ubuntu jammy: libaudio-dev 1.9.4-7build1
- ubuntu noble: libaudio-dev 1.9.4-8
- ubuntu questing: libaudio-dev 1.9.4-9
- ubuntu resolute: libaudio-dev 1.9.4-9.2
- ubuntu stonking: libaudio-dev 1.9.4-9.2
- copyright 1994 Steven King
- Copyright 1993 Network Computing Devices, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms