summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Groman <tgroman@nuegia.net>2019-12-06 23:22:17 -0800
committerThomas Groman <tgroman@nuegia.net>2019-12-06 23:22:17 -0800
commit8d810413cd6a126dde0353555c21ac210e6cc7a2 (patch)
treeb9756d32ee8bfd2a82c88c2819d31fb5c01232e7 /src
parentaebd0a50d1981c92e4918923ac77c0ad95d167b7 (diff)
downloadtwinkle-8d810413cd6a126dde0353555c21ac210e6cc7a2.tar
twinkle-8d810413cd6a126dde0353555c21ac210e6cc7a2.tar.gz
twinkle-8d810413cd6a126dde0353555c21ac210e6cc7a2.tar.lz
twinkle-8d810413cd6a126dde0353555c21ac210e6cc7a2.tar.xz
twinkle-8d810413cd6a126dde0353555c21ac210e6cc7a2.zip
placeholder
Diffstat (limited to 'src')
-rw-r--r--src/audio/audio_device.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/audio/audio_device.cpp b/src/audio/audio_device.cpp
index 84aa2db..df43c45 100644
--- a/src/audio/audio_device.cpp
+++ b/src/audio/audio_device.cpp
@@ -359,6 +359,41 @@ int t_oss_io::write(const unsigned char* buf, int len) {
return ::write(fd, buf, len);
}
+#ifdef HAVE_JACK
+// Constructor
+t_jack_io::t_jack_io() : client(nullptr) {
+}
+
+// Opener
+bool t_jack_io::open(
+ const string& device,
+ bool playback,
+ bool capture,
+ bool blocking,
+ int channels, t_audio_sampleformat format,
+ int sample_rate,
+ bool short_latency
+ ) {
+ t_audio_io::open(
+ device,
+ playback,
+ capture,
+ blocking,
+ channels,
+ format,
+ sample_rate,
+ short_latency
+ );
+ int mode = 0;
+ string msg = "";
+
+
+// Destructor
+t_jack_io::~t_jack_io() {
+ jack_client_close(client);
+}
+#endif
+
#ifdef HAVE_LIBASOUND
t_alsa_io::t_alsa_io() : pcm_play_ptr(0), pcm_rec_ptr(0), play_framesize(1), rec_framesize(1),