{
----------------------------------------------------------
MAS-CompMaker was used to generate this code
MAS-CompMaker, 2000-2001?Mats Asplund
----------------------------------------------------------
Component Name: Tmp3Tag
Author: Slightly improved and redone from a class made by
Andrey V. Sorokin, into a component by Mats Asplund.
Creation: 2001-11-08
Version: 1.0
Description: A component for reading and writing mp3-tags.
Credit: Andrey V.Sorokin
Saint-Petersburg, Russia
anso@mail.ru
anso@usa.net
http://anso.da.ru
http://anso.virtualave.net
E-mail: masprod@telia.com
Site: http://go.to/masdp
Legal issues: Copyright(c) 1999,2000 by Andrey V.Sorokin.
All rights reserved 2001?by Mats Asplund.
Usage:
This software is provided 'as-is', without any express or
implied warranty. In no event will the author be held liable
for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any
purpose, including commercial applications, and to alter it
and redistribute it freely, subject to the following
restrictions:
1. The origin of this software must not be misrepresented,
you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment
in the productdo
cumentation would be appreciated but is
not required.
2. Altered source versions must be plainly marked as such, and
must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
4. If you decide to use this software in any of your applications.
Send me an EMail and tell me about it.
Quick Reference:
Tmp3Tag inherits from TComponent.
Key-Properties:
TagPresent: True if loaded tag seems to be OK.
TagModified: True if anything changed.
v1Tag: True if ID3v1, false if ID3v1.1
Title: Music title
Artist: Performer
Year: Year as 4-chars string.
Album: Album title
Track: Track number (only if not v1)
Comment: Comment
GenreID: Genre ID (see fID3Genres which contains genres list as
TStrings)
Genre: Genre as string
Key-Methods:
LoadTag: Load tag from ABuf (max ABufSz)
LoadTagFromStream: Find ID3tag in AStream (max AStreamSz bytes from current
position) and Load it. If success then
returns offset to
tag, else
-1.
LoadTagFromFile: Load ID3Tag from file AFileName
SaveTag: Write tag into ABuf (max ABufSz bytes), clear Modified.
SaveTagToStream: Write tag ito current position of AStream, clear Modified.
SaveTagToFile: Add/Update tag in file AFileName, clear Modified.
DeleteTagFromFile: Delete tag from file AFileName (if it exists).
--------------------------------------------------------------------------------
}
unit mp3Tag;