SoundCreate(3)
β¨ SoundCreate β¨
okay so bestie, you found a page from the Library Functions Manual β it's SoundCreate(3), and it's literally the glow-up moment where an audio file gets its whole identity π
πΈ Name πΈ
SoundCreate β create a description of an audio file. that's it, that's the job, and she ate π
π Synopsis π
#include <audio/audiolib.h>
Sound SoundCreate(file_format, data_format, num_tracks, sample_rate,
num_samples, comment)
int file_format;
int data_format;
int num_tracks;
int sample_rate;
int num_samples;
char *comment;
π¦ Arguments π¦
file_formatβ which flavour of audio file you want, bestie. currently the supported ones are:SoundFileFormatSnd,SoundFileFormatVoc,SoundFileFormatWave,SoundFileFormatAiff, andSoundFileFormatSvx. pick your fighter β¨data_formatβ the format of the actual audio data itself. currently the defined ones are:AuFormatULAW8,AuFormatLinearUnsigned8,AuFormatLinearSigned8,AuFormatLinearSigned16MSB,AuFormatLinearUnsigned16MSB,AuFormatSignedLinear16LSB, andAuFormatLinearUnsigned16LSB. yes there are seven. no we are not skipping any πnum_tracksβ how many tracks are in the audio data. the track count. the multitrack situation π§sample_rateβ the sample rate of the audio data. iconic number, very important π₯num_samplesβ how many samples are in the audio data. not the rate, the actual count. different thing, don't mix them up πcommentβ ngl the page itself just sayscommentand then dips, like no description at all π so that's all we're working with here, bestie
π Description π
SoundCreate creates a SoundRec structure, initializes it with the values you specified, and returns a Sound β which is a pointer to that SoundRec structure π«Ά
and if something went wrong? it returns NULL. that's the vibe check failing. no cap β
π See Also π
SoundCloseFileSoundOpenFileForReadingSoundOpenFileWriting
and also:
audiolibβ Network Audio System C Language Interface π§
and that's the whole page, bestie!! this lil legend is version 1.9.5, it lives under the name SoundCreate(3), and it was born to run in the Library Functions Manual β so go forth and create some audio file descriptions, you absolute main character ππβ¨
π¦ where this page comes from
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- 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