2010-01-16 16:08:17 +00:00
|
|
|
/* ZeroSPU2
|
|
|
|
* Copyright (C) 2006-2010 zerofrog
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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, write to the Free Software
|
2010-07-04 22:49:00 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
2010-01-16 16:08:17 +00:00
|
|
|
*/
|
2010-04-25 00:31:27 +00:00
|
|
|
|
2010-04-24 21:37:39 +00:00
|
|
|
#ifndef OSS_H_INCLUDED
|
|
|
|
#define OSS_H_INCLUDED
|
2010-01-16 16:08:17 +00:00
|
|
|
|
|
|
|
#define OSS_MODE_STEREO 1
|
|
|
|
|
|
|
|
extern int OSSSetupSound();
|
|
|
|
extern void OSSRemoveSound();
|
|
|
|
extern int OSSSoundGetBytesBuffered();
|
2010-04-24 21:37:39 +00:00
|
|
|
extern void OSSSoundFeedVoiceData(unsigned char* pSound,long lBytes);
|
2010-01-16 16:08:17 +00:00
|
|
|
|
|
|
|
static SoundCallbacks OSSCmds =
|
|
|
|
{
|
|
|
|
(intFunction)OSSSetupSound,
|
|
|
|
(voidFunction)OSSRemoveSound,
|
|
|
|
(intFunction)OSSSoundGetBytesBuffered,
|
|
|
|
(soundFeedFunction)OSSSoundFeedVoiceData
|
|
|
|
};
|
2010-04-24 21:37:39 +00:00
|
|
|
|
|
|
|
#endif // OSS_H_INCLUDED
|