blob: ba1085f436bbfefcd8cba8018f207991cbd34ef9 (
plain) (
blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
/***************************************************************************
none.cpp
Dummy sound interface.
*******************************************************************c********/
#include "sound_module.h"
#include "modules/osdmodule.h"
namespace osd {
namespace {
class sound_none : public osd_module, public sound_module
{
public:
sound_none() : osd_module(OSD_SOUND_PROVIDER, "none")
{
}
virtual ~sound_none() { }
virtual int init(osd_interface &osd, const osd_options &options) override { return 0; }
virtual void exit() override { }
// sound_module
virtual void update_audio_stream(bool is_throttled, const int16_t *buffer, int samples_this_frame) override { }
virtual void set_mastervolume(int attenuation) override { }
};
} // anonymous namespace
} // namespace osd
MODULE_DEFINITION(SOUND_NONE, osd::sound_none)
|