#ifndef MIXER_HPP
#define MIXER_HPP

#include <list>
#include <vector>

#include <SDL.h>

#include "AudioBuffer.hpp"

namespace Mixer {

	using std::list;
	using std::vector;

	extern AudioBuffer< Sint16 > live; //inited by 'init' below.

	extern unsigned int mixer_max; //max absolute value in current output stream.
	extern unsigned int underruns;

	const unsigned int Rate = 44100;

	bool init();
	void deinit();
};




#endif //MIXER_HPP
