#pragma once
#include <irrKlang.h>
#include <string>

/************************************************************************/
/* This is a wrapper class to get basic sound functionality from irrKlang. */
/************************************************************************/

using namespace std;
using namespace irrklang;
using namespace System;
using namespace System::Windows::Forms;

ref class audioClass
{
public:
	// Constructor
	audioClass();
	// Destructor
	~audioClass();
	// Loads a song into currentlyPlaying
	void loadSong( string *filePath );
	// Plays the currentlyPlaying file
	void playSong();
	// Stops all music
	void stopSong();
private:
	// Reference to sound engine.
	ISoundEngine *engine;
	// Reference to currently playing song object.
	ISound *playing;
	// String of current song in queue.
	string *currentlyPlaying;
};

