package com.tinytimrob.jfmod5;

/** List of tag types that could be stored within a sound. These include id3 tags, metadata from netstreams and vorbis/asf data. */
public enum FmodTagType
{
	UNKNOWN,

	ID3V1,

	ID3V2,

	VORBISCOMMENT,

	SHOUTCAST,

	ICECAST,

	ASF,

	MIDI,

	PLAYLIST,

	FMOD,

	USER,

	/** Maximum number of tag types supported. */
	MAX;

	/** Converts integer to enum
	 *
	 * @param i The integer to convert
	 * @return Either the correct enum, or null if there is no such enum for that value
	 */
	static FmodTagType convert(int i)
	{
		try
		{
			return FmodTagType.values()[i];
		}
		catch (Throwable t)
		{
			return null;
		}
	}
}
