FastLED 3.9.15
Loading...
Searching...
No Matches

◆ getSamplesShortInterleaved()

fl::i32 fl::StbVorbisDecoder::getSamplesShortInterleaved ( fl::i32 channels,
fl::i16 * buffer,
fl::i32 numShorts )

Definition at line 69 of file vorbis.cpp.hpp.

69 {
70 if (!mVorbis) return 0;
71 // Cast to short* for AVR compatibility where fl::i16 is int but stb_vorbis expects short
72 return static_cast<fl::i32>(vb::stb_vorbis_get_samples_short_interleaved(
73 static_cast<vb::stb_vorbis*>(mVorbis),
74 static_cast<fl::i32>(channels),
75 buffer,
76 static_cast<fl::i32>(numShorts)
77 ));
78}

References mVorbis.

Referenced by fl::Vorbis::decodeAll().

+ Here is the caller graph for this function: