From 9dec54d4c7a7f8a2bc9c4d18fe8921e7aebb3560 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Fri, 5 Jun 2015 22:00:17 +0200 Subject: [PATCH] [DEV] start rework Alsa API to support poll event and MMAP system --- audio/orchestra/Api.h | 1 - audio/orchestra/api/Alsa.cpp | 510 +++++++++++++++++++++++++++++++++-- audio/orchestra/api/Alsa.h | 6 +- 3 files changed, 495 insertions(+), 22 deletions(-) diff --git a/audio/orchestra/Api.h b/audio/orchestra/Api.h index 71e3f61..06f44b2 100644 --- a/audio/orchestra/Api.h +++ b/audio/orchestra/Api.h @@ -19,7 +19,6 @@ namespace audio { namespace orchestra { const std::vector& genericSampleRate(); - /** * @brief airtaudio callback function prototype. * @param _inputBuffer For input (or duplex) streams, this buffer will hold _nbChunk of input audio chunk (nullptr if no data). diff --git a/audio/orchestra/api/Alsa.cpp b/audio/orchestra/api/Alsa.cpp index 4345dc0..e2911b7 100644 --- a/audio/orchestra/api/Alsa.cpp +++ b/audio/orchestra/api/Alsa.cpp @@ -16,7 +16,17 @@ #include #include #include