Lines Matching defs:audio

72 /** An audio packet with an XMV file. */
75 int stream_index; ///< The decoder stream index for this audio packet.
89 uint32_t data_size; ///< The size of the remaining audio data.
90 uint64_t data_offset; ///< The offset of the audio data within the file.
92 uint32_t frame_size; ///< Number of bytes to put into an audio frame.
94 uint64_t block_count; ///< Running counter of decompressed audio block.
99 uint16_t audio_track_count; ///< Number of audio track in this file.
115 XMVAudioPacket *audio; ///< The audio packets contained in each packet.
139 av_freep(&xmv->audio);
178 xmv->audio = av_calloc(xmv->audio_track_count, sizeof(*xmv->audio));
179 if (!xmv->audio)
183 XMVAudioPacket *packet = &xmv->audio[audio_track];
207 av_log(s, AV_LOG_WARNING, "Unsupported 5.1 ADPCM audio stream "
212 av_log(s, AV_LOG_ERROR, "Invalid parameters for audio track %"PRIu16".\n",
304 /* Adding the audio data sizes and the video data size keeps you 4 bytes
305 * short for every audio track. But as playing around with XMV files with
306 * ADPCM audio showed, taking the extra 4 bytes from the audio data gives
307 * you either completely distorted audio or click (when skipping the
309 * audio track from the video data works at least for the audio. Probably
321 /* Packet audio header */
324 XMVAudioPacket *packet = &xmv->audio[audio_track];
354 /* This happens when I create an XMV with several identical audio
359 packet->data_size = xmv->audio[audio_track - 1].data_size;
361 /* Carve up the audio data in frame_count slices */
374 xmv->audio[audio_track].data_offset = data_offset;
375 data_offset += xmv->audio[audio_track].data_size;
441 XMVAudioPacket *audio = &xmv->audio[stream];
448 if (avio_seek(pb, audio->data_offset, SEEK_SET) != audio->data_offset)
453 data_size = FFMIN(audio->frame_size, audio->data_size);
456 data_size = audio->data_size;
463 pkt->stream_index = audio->stream_index;
467 block_count = data_size / audio->block_align;
470 pkt->pts = audio->block_count;
473 audio->block_count += block_count;
476 audio->data_size -= data_size;
477 audio->data_offset += data_size;
560 /* Fetch an audio frame */