use x42/weakjack as a possible solution to #1480
This commit is contained in:
parent
8fd643a792
commit
db5428474a
8 changed files with 796 additions and 8 deletions
|
|
@ -198,10 +198,19 @@ String TAAudioJACK::printStatus(jack_status_t status) {
|
|||
|
||||
bool TAAudioJACK::init(TAAudioDesc& request, TAAudioDesc& response) {
|
||||
if (initialized) return false;
|
||||
if (jack_client_open==NULL) {
|
||||
int haveJACK=have_libjack();
|
||||
if (haveJACK==-1) {
|
||||
logE("JACK library not initialized!");
|
||||
return false;
|
||||
}
|
||||
if (haveJACK==-2) {
|
||||
logE("JACK not installed!");
|
||||
return false;
|
||||
}
|
||||
if (haveJACK!=0) {
|
||||
logE("JACK symbol error!");
|
||||
return false;
|
||||
}
|
||||
desc=request;
|
||||
desc.outFormat=TA_AUDIO_FORMAT_F32;
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,7 @@
|
|||
*/
|
||||
|
||||
#include "taAudio.h"
|
||||
#include <jack/weakjack.h>
|
||||
#include <jack/jack.h>
|
||||
#include "../extern/weakjack/weak_libjack.h"
|
||||
|
||||
class TAAudioJACK: public TAAudio {
|
||||
jack_client_t* ac;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue