FMOD.Sound.getTag C# (CSharp) Method

getTag() public method

public getTag ( string name, int index, TAG &tag ) : RESULT
name string
index int
tag TAG
return RESULT
        public RESULT getTag                  (string name, int index, out TAG tag)
        {
            return FMOD_Sound_GetTag(rawPtr, name, index, out tag);
        }
        public RESULT getOpenState            (out OPENSTATE openstate, out uint percentbuffered, out bool starving, out bool diskbusy)

Usage Example

示例#1
0
        //Returns the song name retrieved by the tag "Artist".
        //Some additional checks must be made here to ensure no
        //garbage data is allowed through. If there is no data in the
        //artist tag, garbage is returned. Still have to code around
        //that for the C# version
        public string getArtistName()
        {
            string title;

            audio.getTag("", 0, ref tag);

            audio.getTag("ARTIST", 0, ref tag);
            title = tag.data.ToString();

            //if (title && strcmp(title, "major_brand") != 0 && stringValid(title))
            //    return title;
            //else
            //    return "none";

            return(title);
        }
All Usage Examples Of FMOD.Sound::getTag
Sound