Displaying 1 result from an estimated 1 matches for "m_packets_real_length".
Did you mean:
m_packets_real_lengths
2006 Jan 19
0
re: want to know, how much data will be extracted from every single packet; solved but some issues
...it holds (it can be found via vorbis_packet_blocksize) size of pcm data, that the next one holds. In general every packet holds part of size of pcm data in next packet, i.e.:
? ? ? cur = vorbis_packet_blocksize(&m_vorb_info, &m_packets[cur_packet_num]);
? ? ? if ( cur <= 0 ) ?
? ? ? ?m_packets_real_lengths[cur_packet_num] = 0;
? ? ? else
? ? ? {
? ? ? ?if (prev == 0 )
? ? ? ? prev = cur;
? ? ? if (cur_packet_num > 3 && cur_packet_num < m_packets_number - 1)
? ? ? {
? ? ? ? m_packets_real_lengths[cur_packet_num] = cur + prev;
? ? ? ? m_data_size += m_packets_real_lengths[cur_pac...