carb::audio::createSoundFromRawPcmBlob
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.
- Parameters
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
bufferin bytes.frames – [in] The number of frames of data in
buffer.format – [in] The data format to use to interpret the data in
buffer.
- Returns
A new sound data object containing the data in
bufferif successfully created.- Returns
nullptr if a new sound data object could not be created.