Click or drag to resize
Mp3ReadWriterWriteID3v1Tag Method
Writes ID3 tag version 1

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public void WriteID3v1Tag(
	ID3v1 tag
)

Parameters

tag
Type: Alvas.AudioID3v1

[Missing <param name="tag"/> documentation for "M:Alvas.Audio.Mp3ReadWriter.WriteID3v1Tag(Alvas.Audio.ID3v1)"]

Examples
This example shows simple using of WriteID3v1Tag method.
 //removes ID3v1 tags from audio stream 
Mp3ReadWriter mrw1 = new Mp3ReadWriter(File.Open("in1.mp3", FileMode.Open, FileAccess.ReadWrite));
mrw1.WriteID3v1Tag(null);
mrw1.Close();

 //writes ID3v1 tags into audio stream 
Mp3ReadWriter mrw2 = new Mp3ReadWriter(File.Open("in2.mp3", FileMode.Open, FileAccess.ReadWrite));
ID3v1 tag = new ID3v1();
tag.Comment = "Comment...";
mrw2.WriteID3v1Tag(tag);
mrw2.Close();
See Also