#pragma once


#include "SDL.h"
#include "SDL_audio.h"
#include "SoundBuffer.h"



class cAudioManager
{
public:
	cAudioManager();
	~cAudioManager();
	
	//Although this returns a pointer, the cAudiomanager
	//class is actually going to be responsible for cleanup
	//Think of the return value as a weak reference
	cSoundBuffer* CreateSoundBuffer(char *filename);

private:
	SDL_AudioSpec m_fmt;

	//Hey student, maybe you might want to make this AudioManager more
	//flexible by holding a container of sounds, eh?
	cSoundBuffer* m_pTheOneSound;

	static void MixAudioCallback(void *userdata, Uint8 *stream, int len);
};