Defined in carb/audio/AudioUtils.h

inline SoundData *carb::audio::createSoundFromRawPcmBlob(const IAudioData *iface, const void *dataBlob, size_t dataLength, size_t frames, const SoundFormat *format)

Creates a sound data object from a blob of memory.

  • iface[in] The audio data interface to use.

  • dataBlob[in] The buffer of data to use to create a sound data object.

  • dataLength[in] The length of buffer in bytes.

  • frames[in] The number of frames of data in buffer.

  • format[in] The data format to use to interpret the data in buffer.


A new sound data object containing the data in buffer if successfully created.


nullptr if a new sound data object could not be created.