using System;

public class SoundMn
{
	public class MediaPlayer
	{
	}

	public class SoundPool
	{
	}

	public class AssetManager
	{
	}

	public static SoundMn gIz;

	public static bool isSound = true;

	public static int volume;

	private static int MAX_VOLUME = 10;

	public static MediaPlayer[] music;

	public static SoundPool[] sound;

	public static int[] soundID;

	public bool freePool;

	public int poolCount;

	public static int cout = 1;

	public static void init(AssetManager ac)
	{
		Music.setActivity(ac);
	}

	public static SoundMn gI()
	{
		if (gIz == null)
		{
			gIz = new SoundMn();
		}
		return gIz;
	}

	public void loadSound(int mapID)
	{
		Music.init(new int[2]
		{
			Music.BATTLE,
			Music.WIND
		}, new int[19]
		{
			Music.PISTOL,
			Music.EXPLOSION,
			Music.AK,
			Music.LASER,
			Music.HAMMER,
			Music.NEXT_TURN,
			Music.GUN_LOADED,
			Music.FOOTSTEP,
			Music.SHOTGUN,
			Music.HELICOPTER,
			Music.PROPELLER,
			Music.CLICK,
			Music.POPUP,
			Music.CHICKEN,
			Music.TELEPORT,
			Music.BOOMERANG,
			Music.SPECIAL,
			Music.WIN,
			Music.LOSE
		});
	}

	public void getItem()
	{
	}

	public void update()
	{
		CRes.outz("poolCount = " + poolCount);
	}

	public void closeSound()
	{
		Music.stopAllt = true;
		stopAll();
	}

	public void openSound()
	{
		if (Music.music == null)
		{
			loadSound(0);
		}
		Music.stopAllt = false;
	}

	public void bigeExlode()
	{
	}

	public void explode_1()
	{
	}

	public void explode_2()
	{
	}

	public bool isPlayRain()
	{
		try
		{
			return Music.isPlayingSound();
		}
		catch (Exception)
		{
			return false;
		}
	}

	public void stopAll()
	{
		Music.stopAllz();
	}
}
