Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

void TagLib::Mpeg::File::ReadAudioPacket ( ref long  position ) [inline, private]

Reads an audio packet, assigning the audio header and advancing the position to the next packet position.

Parameters:
positionA long value reference specifying the position at which to start reading the packet. This value is updated to the position of the next packet.

Definition at line 569 of file File.cs.

References TagLib::Mpeg::AudioHeader::Find(), TagLib::File::ReadBlock(), TagLib::File::Seek(), and TagLib::ByteVector::ToUShort().

            {
                  Seek (position + 4);
                  int length = ReadBlock (2).ToUShort ();
                  
                  if (!audio_found)
                        audio_found = AudioHeader.Find (
                              out audio_header, this, position + 15,
                              length - 9);
                  position += length;
            }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index