AuConvertShortToData(3)

πŸ“¦ version 1.9.5, in fedora 43, fedora 44

πŸ’– 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, and AuFormatLinearUnsigned16LSB. 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?

  • 0 if it was successful β€” slay, we ate πŸ’…
  • -1 if format isn'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