mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
DBus ALSA device reservation
This commit is contained in:
parent
742282b7e9
commit
822c460d15
2 changed files with 77 additions and 23 deletions
|
|
@ -30,8 +30,9 @@
|
|||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include "ardour/types.h"
|
||||
#include "ardour/audio_backend.h"
|
||||
#include "ardour/system_exec.h"
|
||||
#include "ardour/types.h"
|
||||
|
||||
#include "zita-alsa-pcmi.h"
|
||||
#include "alsa_rawmidi.h"
|
||||
|
|
@ -288,6 +289,14 @@ class AlsaAudioBackend : public AudioBackend {
|
|||
std::string _audio_device;
|
||||
std::string _midi_device;
|
||||
|
||||
/* audio device reservation */
|
||||
ARDOUR::SystemExec *_device_reservation;
|
||||
PBD::ScopedConnectionList _reservation_connection;
|
||||
void reservation_stdout (std::string, size_t);
|
||||
bool acquire_device(const char* device_name);
|
||||
void release_device();
|
||||
bool _reservation_succeeded;
|
||||
|
||||
float _samplerate;
|
||||
size_t _samples_per_period;
|
||||
size_t _periods_per_cycle;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue