Home | History | Annotate | Download | only in tests

Lines Matching defs:toc

47 static void ParseToc(const uint8_t *toc, TocInfo *const info) {
49 const int bandwidth = opus_packet_get_bandwidth(toc);
52 info->channels = opus_packet_get_nb_channels(toc);
59 * bytes 8+ : Opus packet, including ToC
65 TocInfo toc;
68 /* Not enough data to setup the decoder (+1 for the ToC) */
73 /* Create decoder based on info from the first ToC available */
74 ParseToc(&data[SETUP_BYTE_COUNT], &toc);
76 dec = opus_decoder_create(toc.fs, toc.channels, &err);
81 pcm = (opus_int16*) malloc(sizeof(*pcm) * MAX_FRAME_SAMP * toc.channels);