sortix-sound.cpp 1.27 KB
Newer Older
Jonas Termansen's avatar
Jonas Termansen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
/******************************************************************************

	COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2011.

	This file is part of LibMaxsi.

	LibMaxsi is free software: you can redistribute it and/or modify it under
	the terms of the GNU Lesser General Public License as published by the Free
	Software Foundation, either version 3 of the License, or (at your option)
	any later version.

	LibMaxsi is distributed in the hope that it will be useful, but WITHOUT ANY
	WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
	FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
	more details.

	You should have received a copy of the GNU Lesser General Public License
	along with LibMaxsi. If not, see <http://www.gnu.org/licenses/>.

	sortix-sound.cpp
	Provides access to the sound devices. This is highly unportable and is very
	likely to be removed or changed radically.

******************************************************************************/

26 27 28
#include <libmaxsi/platform.h>
#include <libmaxsi/syscall.h>
#include <libmaxsi/sortix-sound.h>
Jonas Termansen's avatar
Jonas Termansen committed
29 30 31 32 33

namespace System
{
	namespace Sound
	{
34
		DEFN_SYSCALL1_VOID(SysSetFrequency, SYSCALL_SET_FREQUENCY, unsigned);
Jonas Termansen's avatar
Jonas Termansen committed
35 36 37 38 39 40 41 42

		void SetFrequency(unsigned frequency)
		{
			SysSetFrequency(frequency);
		}
	}
}