hydrogen 1.2.6
NullDriver.cpp
Go to the documentation of this file.
1/*
2 * Hydrogen
3 * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4 * Copyright(c) 2008-2025 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
5 *
6 * http://www.hydrogen-music.org
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY, without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see https://www.gnu.org/licenses
20 *
21 */
22
23#include <core/IO/NullDriver.h>
24#include <core/Globals.h>
25
26
27namespace H2Core
28{
29
31 : AudioOutput()
32{
33 UNUSED( processCallback );
34//
35}
36
37
39{
40// INFOLOG( "DESTROY" );
41}
42
43
44int NullDriver::init( unsigned nBufferSize )
45{
46 UNUSED( nBufferSize );
47 return 0;
48}
49
50
52{
53 INFOLOG( "connect" );
54 return 0;
55}
56
57
59{
60 INFOLOG( "disconnect" );
61}
62
63
65{
66// infoLog( "[getBufferSize()] not implemented yet");
67 return 0;
68}
69
70
72{
73// infoLog("[getSampleRate()] not implemented yet");
74 return 0;
75}
76
78{
79 INFOLOG( "not implemented yet" );
80 return nullptr;
81}
82
83
85{
86 INFOLOG( "not implemented yet" );
87 return nullptr;
88}
89
90};
#define INFOLOG(x)
Definition Object.h:240
void disconnect() override
float * getOut_L() override
int init(unsigned nBufferSize) override
float * getOut_R() override
unsigned getBufferSize() override
int connect() override
NullDriver(audioProcessCallback processCallback)
unsigned getSampleRate() override
#define UNUSED(v)
Definition Globals.h:42
int(* audioProcessCallback)(uint32_t, void *)
Definition AudioOutput.h:32