30class VorbisDecoder :
public AudioDecoder {
90 packet.packet = (
unsigned char *)data;
94 packet.granulepos = 0;
123 if (
vi.channels > 0 &&
vi.rate > 0) {
177 LOGE(
"vorbis_synthesis_init failed");
190 size_t total_written = 0;
193 float **
pcm =
nullptr;
195 while (samples > 0 &&
pcm) {
208 return total_written;
219 for (
int i = 0; i < samples; ++i) {
220 for (
int ch = 0;
ch < channels; ++
ch) {
223 if (sample > 32767) sample = 32767;
224 if (sample < -32768) sample = -32768;
#define LOGE(...)
Definition AudioLoggerIDF.h:30