AuConvertShortToData(3)
π AuConvertShortToData(3) π
okay bestie, welcome to the Library Functions Manual corner of the audiolib universe β¨ this is the page for AuConvertShortToData, and it's literally here to help you flip signed short integers into whatever audio data format your heart desires π¦
πΈ NAME πΈ
AuConvertShortToData β convert signed short integers to the specified format. no cap, that's the whole job description π
β¨ SYNOPSIS β¨
#include <audio/audiolib.h>
int AuConvertShortToData(format, num_bytes, data)
int format;
int num_bytes;
AuPointer data;
she's giving classic C function signature realness π
π§ ARGUMENTS π§
formatβ this is the format you wanna convert to. right now, the following data formats are defined:AuFormatULAW8,AuFormatLinearUnsigned8,AuFormatLinearSigned8,AuFormatLinearSigned16MSB,AuFormatLinearUnsigned16MSB,AuFormatSignedLinear16LSB, andAuFormatLinearUnsigned16LSB. that's seven (7) iconic little constants, and yes you gotta pick one πnum_bytesβ the number of bytes of data. just the count, bestie, nothing deeper πdataβ the data to convert. the actual goods. the main character of this whole operation π
π DESCRIPTION π
so here's the tea: AuConvertShortToData converts num_bytes of data from signed short integer to format. that's it. that's the vibe π«Ά
and what does she return?
0if it was successful β slay, we ate π-1ifformatisn't valid β not slay, the format did NOT pass the vibe check π
fr fr, keep an eye on that return value. -1 means your format got rejected, periodt.
π SEE ALSO π
AuConvertDataToShortβ the reverse-direction bestie, go show her some love π₯°audiolibβ Network Audio System C Language Interface β
and that's the whole page, gorgeous π this was audioutil, version 1.9.5, serving you AuConvertShortToData(3) realness β mwah, go convert some audio, you've got this πβ¨
π¦ 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