MCPcopy Create free account
hub / github.com/defold/defold / NewSoundData

Function NewSoundData

engine/sound/src/sound.cpp:813–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811 }
812
813 Result NewSoundData(const void* sound_buffer, uint32_t sound_buffer_size, SoundDataType type, HSoundData* sound_data, dmhash_t name)
814 {
815 assert(sound_buffer);
816 return NewSoundDataInternal(sound_buffer, sound_buffer_size, 0, 0, type, sound_data, name);
817 }
818
819 Result NewSoundDataStreaming(FSoundDataGetData cbk, void* cbk_ctx, SoundDataType type, HSoundData* sound_data, dmhash_t name)
820 {

Callers 6

TEST_PFunction · 0.50
PlaySoundFunction · 0.50
TESTFunction · 0.50
DecodeAndTimeMethod · 0.50
ResSoundDataCreateFunction · 0.50
ResSoundDataRecreateFunction · 0.50

Calls 2

NewSoundDataInternalFunction · 0.70
assertFunction · 0.50

Tested by 4

TEST_PFunction · 0.40
PlaySoundFunction · 0.40
TESTFunction · 0.40
DecodeAndTimeMethod · 0.40