/*********************************************************************//**
*	Hardware sounds reservaion.
*	Zde se definuji rezervace hardwarovych zdroju. Zatim pouze
*	pro hracovy zbrane a telo, protoze se tam vzdy prehrava pouze jeden
*	zvuk a navic je vzdy slyset.
*
*	author: Michal Jirous
*	date: 09.04..2009
*	file: sys_snd_reserv.h
**********************************************************************/

#include "sys_snd_reserv.h"
#include "soundslib.h"
#include "error_handler.h"
void sys_reserveSounds()
{
	CONSOLE_PRINT("Reserving sound sources...");
	for( int i = 0; i < NUM_RESERVED_SOUNDS; i++ )
		soundLibrary.reserveSource( i );
	CONSOLE_PRINT_LN("done");
}

void sys_freeSounds()
{
	for( int i = 0; i < NUM_RESERVED_SOUNDS; i++ )
		soundLibrary.freeSource( i );
}
