jkxr/Projects/Android/jni/OpenJK/shared/sdl/sdl_sound.h
Simon f894efd296 It now builds!!
but won't run obviously, long way before that happens, but it is at least compiling and linking, which is good
2022-09-21 23:34:51 +01:00

36 lines
1.1 KiB
C

/*
===========================================================================
Copyright (C) 2013 - 2018, OpenJK contributors
This file is part of the OpenJK source code.
OpenJK is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
===========================================================================
*/
#pragma once
#include "qcommon/q_shared.h"
// initializes cycling through a DMA buffer and returns information on it
int SNDDMA_Init(int sampleFrequencyInKHz);
// gets the current DMA position
int SNDDMA_GetDMAPos(void);
// shutdown the DMA xfer.
void SNDDMA_Shutdown(void);
void SNDDMA_BeginPainting (void);
void SNDDMA_Submit(void);