AuConvertDataToShort(3)

✨ AuConvertDataToShort(3) ✨

okay bestie, welcome to the manual page for AuConvertDataToShort(3). it's giving audio-data glow-up, no cap. πŸ’–


πŸŽ€ Name πŸŽ€

AuConvertDataToShort β€” convert audio data from the specified format to signed short integer. periodt. πŸ’…

πŸ“¦ Synopsis πŸ“¦

#include <audio/audiolib.h>

int AuConvertDataToShort(format, num_bytes, data)
    int format;
    int num_bytes;
    AuPointer data;

🫢 Arguments 🫢

  • format β€” tells you the format of the data. rn the following data formats are defined: AuFormatULAW8, AuFormatLinearUnsigned8, AuFormatLinearSigned8, AuFormatLinearSigned16MSB, AuFormatLinearUnsigned16MSB, AuFormatSignedLinear16LSB, and AuFormatLinearUnsigned16LSB. so many formats, we love options. ✨
  • num_bytes β€” the number of bytes of data. literally the byte count. πŸ’–
  • data β€” the data to convert. hand it over, bestie. 🫢

🌈 Description 🌈

AuConvertDataToShort converts num_bytes of data from format to signed short integer. it returns 0 if successful, or -1 if format isn't valid. that's the whole vibe. if it works, 0; if the format is not valid, -1. no cap. 😭

πŸ‘‘ See Also πŸ‘‘

  • AuConvertShortToData.
  • audiolib - Network Audio System C Language Interface.

and that's the page, babe. the footer is serving source audioutil, version 1.9.4, manual AuConvertDataToShort(3) β€” no date on this one, so the date slot is just empty. slay. πŸ’–βœ¨

πŸ“¦ where this page comes from