2011-01-26 02:29:08 +03:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
2011-02-25 01:05:47 +03:00
|
|
|
// $Id$
|
2011-01-26 02:29:08 +03:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2017-02-20 21:21:19 +03:00
|
|
|
// Copyright (C) 2011-2017 The Bochs Project
|
2011-01-26 02:29:08 +03:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2017-02-20 21:21:19 +03:00
|
|
|
// Sound driver loader code
|
2011-01-26 02:29:08 +03:00
|
|
|
|
2012-05-20 18:19:49 +04:00
|
|
|
class bx_sound_lowlevel_c;
|
2015-02-13 14:30:46 +03:00
|
|
|
class bx_soundlow_waveout_c;
|
2017-02-20 21:21:19 +03:00
|
|
|
class bx_soundlow_wavein_c;
|
|
|
|
class bx_soundlow_midiout_c;
|
2012-05-20 18:19:49 +04:00
|
|
|
|
2011-02-15 00:14:20 +03:00
|
|
|
// Pseudo device that loads the lowlevel sound module
|
2017-02-20 21:21:19 +03:00
|
|
|
class BOCHSAPI bx_soundmod_ctl_c : public logfunctions {
|
2011-02-15 00:14:20 +03:00
|
|
|
public:
|
2012-05-20 18:19:49 +04:00
|
|
|
bx_soundmod_ctl_c();
|
2017-02-20 21:21:19 +03:00
|
|
|
~bx_soundmod_ctl_c() {}
|
|
|
|
void init(void);
|
|
|
|
void exit(void);
|
|
|
|
bx_bool register_driver(bx_sound_lowlevel_c *module, int driver_id);
|
|
|
|
bx_soundlow_waveout_c* get_waveout(bx_bool using_file);
|
|
|
|
bx_soundlow_wavein_c* get_wavein();
|
|
|
|
bx_soundlow_midiout_c* get_midiout(bx_bool using_file);
|
2015-02-20 00:31:18 +03:00
|
|
|
|
2012-05-20 18:19:49 +04:00
|
|
|
private:
|
2015-02-22 23:29:58 +03:00
|
|
|
bx_sound_lowlevel_c* get_driver(int driver_id);
|
2011-02-15 00:14:20 +03:00
|
|
|
};
|
2017-02-20 21:21:19 +03:00
|
|
|
|
|
|
|
BOCHSAPI extern bx_soundmod_ctl_c bx_soundmod_ctl;
|