47 lines
1.6 KiB
C++
47 lines
1.6 KiB
C++
/////////////////////////////////////////////////////////////////////////
|
|
// $Id$
|
|
/////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2012 The Bochs Project
|
|
//
|
|
// This library 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 2 of the License, or (at your option) any later version.
|
|
//
|
|
// This library 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 this library; if not, write to the Free Software
|
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
// Lowlevel sound output support for SDL written by Volker Ruppert
|
|
|
|
|
|
#if BX_WITH_SDL
|
|
|
|
#include "bochs.h"
|
|
|
|
class bx_sound_sdl_c : public bx_sound_lowlevel_c {
|
|
public:
|
|
bx_sound_sdl_c(logfunctions *dev);
|
|
virtual ~bx_sound_sdl_c();
|
|
|
|
virtual int get_type() {return BX_SOUNDLOW_SDL;}
|
|
|
|
virtual int waveready();
|
|
|
|
virtual int openwaveoutput(const char *wavedev);
|
|
virtual int startwaveplayback(int frequency, int bits, bx_bool stereo, int format);
|
|
virtual int sendwavepacket(int length, Bit8u data[]);
|
|
virtual int stopwaveplayback();
|
|
virtual int closewaveoutput();
|
|
private:
|
|
bx_bool WaveOpen;
|
|
};
|
|
|
|
#endif // BX_WITH_SDL
|