MCPcopy Create free account
hub / github.com/FastLED/FastLED / getSamplesShortInterleaved

Method getSamplesShortInterleaved

src/fl/codec/vorbis.cpp.hpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69fl::i32 StbVorbisDecoder::getSamplesShortInterleaved(fl::i32 channels, fl::i16* buffer, fl::i32 numShorts) {
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}
79
80fl::i32 StbVorbisDecoder::getSamplesFloat(fl::i32 channels, float** buffer, fl::i32 numSamples) {
81 if (!mVorbis) return 0;

Callers 3

decodeNextFrameMethod · 0.80
decodeAllMethod · 0.80
vorbis.hppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected