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

Function GetDecoderOutputStrideBytes

engine/sound/src/sound.cpp:679–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677 }
678
679 static inline uint32_t GetDecoderOutputStrideBytes(const dmSoundCodec::Info& info)
680 {
681 if (info.m_BitsPerSample == 32 && (!info.m_IsInterleaved || info.m_Channels == 1))
682 return (uint32_t)sizeof(float);
683 return (uint32_t)(info.m_Channels * (info.m_BitsPerSample / 8));
684 }
685
686 static Result EnsureDecoderScratchBufferSize(SoundSystem* sound, const dmSoundCodec::Info& info, uint32_t required_frame_capacity)
687 {

Callers 3

GetSkipStrideBytesFunction · 0.85
MixInstanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected