| 265 | } |
| 266 | |
| 267 | VorbisInfo Vorbis::parseVorbisInfo(fl::span<const fl::u8> data, fl::string* errorMessage) { |
| 268 | StbVorbisDecoder decoder; |
| 269 | if (!decoder.openMemory(data)) { |
| 270 | if (errorMessage) *errorMessage = "Failed to parse Vorbis header"; |
| 271 | return VorbisInfo(); |
| 272 | } |
| 273 | return decoder.getInfo(); |
| 274 | } |
| 275 | |
| 276 | fl::vector<audio::Sample> Vorbis::decodeAll(fl::span<const fl::u8> data, fl::string* errorMessage) { |
| 277 | fl::vector<audio::Sample> samples; |
nothing calls this directly
no test coverage detected