////////////////////////////////////////////////////////////////////////// // private methods ////////////////////////////////////////////////////////////////////////// private void Read(ReadStyle propertiesStyle) { ByteVector comment_header_data = GetPacket(1); if (comment_header_data.Mid(0, 7) != vorbis_comment_header_id) { TagLibDebugger.Debug("Vorbis.File.Read() - Could not find the Vorbis comment header."); SetValid(false); return; } comment = new OggXiphComment(comment_header_data.Mid(7)); if (propertiesStyle != ReadStyle.None) { properties = new OggVorbisProperties(this, propertiesStyle); } }
////////////////////////////////////////////////////////////////////////// // private methods ////////////////////////////////////////////////////////////////////////// private void Read (ReadStyle propertiesStyle) { ByteVector comment_header_data = GetPacket (1); if (comment_header_data.Mid (0, 7) != vorbis_comment_header_id) { TagLibDebugger.Debug ("Vorbis.File.Read() - Could not find the Vorbis comment header."); SetValid (false); return; } comment = new OggXiphComment(comment_header_data.Mid(7)); if(propertiesStyle != ReadStyle.None) properties = new OggVorbisProperties(this, propertiesStyle); }