2 Copyright (C) 2001 Paul Davis
3 Copyright (C) 2004 Grame
4 Copyright (C) 2007 Pieter Palmers
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef __JackFFADODriver__
23 #define __JackFFADODriver__
25 #include "JackAudioDriver.h"
26 #include "JackThreadedDriver.h"
29 #include "ffado_driver.h"
35 \brief The FFADO driver.
38 class JackFFADODriver
: public JackAudioDriver
43 // enable verbose messages
46 jack_driver_t
* fDriver
;
47 int ffado_driver_attach (ffado_driver_t
*driver
);
48 int ffado_driver_detach (ffado_driver_t
*driver
);
49 int ffado_driver_read (ffado_driver_t
* driver
, jack_nframes_t nframes
);
50 int ffado_driver_write (ffado_driver_t
* driver
, jack_nframes_t nframes
);
51 jack_nframes_t
ffado_driver_wait (ffado_driver_t
*driver
,
52 int extra_fd
, int *status
,
53 float *delayed_usecs
);
54 int ffado_driver_start (ffado_driver_t
*driver
);
55 int ffado_driver_stop (ffado_driver_t
*driver
);
56 int ffado_driver_restart (ffado_driver_t
*driver
);
57 ffado_driver_t
*ffado_driver_new (const char *name
, ffado_jack_settings_t
*params
);
58 void ffado_driver_delete (ffado_driver_t
*driver
);
60 void jack_driver_init (jack_driver_t
*driver
);
61 void jack_driver_nt_init (jack_driver_nt_t
* driver
);
65 JackFFADODriver(const char* name
, const char* alias
, JackLockedEngine
* engine
, JackSynchro
* table
)
66 : JackAudioDriver(name
, alias
,engine
, table
)
68 virtual ~JackFFADODriver()
71 int Open(ffado_jack_settings_t
*cmlparams
);
83 int SetBufferSize(jack_nframes_t nframes
);