jaudiolibs / jnajack Goto Github PK
View Code? Open in Web Editor NEWJava bindings to JACK Audio Connection Kit
Java bindings to JACK Audio Connection Kit
Jack is really verbose. It doesn't stop spamming my logs with messages like
Jack: JackActivationCount::Signal value = 0 ref = 7
that don't really have a value to me. Is there a way to reduce this?
I have a question.
https://stackoverflow.com/questions/62418077/jackmidi-eventwrite-time-parameter
I'm certain I fail crucial understanding, but how can I send midiMessages created in a Java/Swing application to another MidiPort(software/hardware) via Jack ?
I can't figure out how I can process those messages on the JackProcessCallback
https://github.com/sc3sc3/MidiJnaJackTest (example to show my issue )
I'm writing to the output port with JackMidi.eventWrite but 1 of 2 things happen,
the midiMessage arrives eternally repeated in a loop or the message does not arrive at all.
Thanks for your time and your work. Regards.
I have a few questions concerning the JackPort.getBuffer()
documentation:
getFloatBuffer()
faster/"more efficient"?when I try to read midi data using audioserver-jack, by calling jack_midi_event_get , I can't read, and the method returns -115.
I thought I'd have a go at converting Catia to Kotlin, and am using your jnajack to interface.
I've just started, and have some basics working:
val jack = Jack.getInstance()
val options = EnumSet.of(JackOptions.JackNoStartServer)
val status = EnumSet.noneOf(JackStatus::class.java)
val client = jack.openClient("jacKot test", options, status)
val bs = client.bufferSize
val sr = client.sampleRate
// val rt = client. ... no method here for is_real_time
println("bs: $bs, sr: $sr")
I'm trying to get the is_realtime value from jack, but can't seem to find an exposed method that allows me to get the value.
I was hoping to find it on client.realTime
(which would invoke client.isRealTime() in java).
I can see it in JackLibraryDirect, but JackLib isn't exposed on the client, so I can't call it. I was expecting a wrapper function like JackClient.getBufferSize()
and JackClient.getSampleRate()
(which I'm using in the above code), but can't see an equivalent JackClient.isRealTime()
to use.
First, thanks for a great library!
With 1.4.0 I am occasionally getting these messages in the console:
JNA: callback object has been garbage collected
JNA: callback object has been garbage collected
JNA: callback object has been garbage collected
Sometimes within maybe 10 seconds of, sometimes 10 minutes after startup, and sometimes it works fine for ages. I have also tried to enforce GC with System.gc()
but that doesn't seem to trigger it.
The symptoms are that callbacks are no longer being called (none of them) and the message repeats apparently whenever there would have been a call to a callback..
I am running java version "1.8.0_144".
My client does not stream any audio or other data, it acts like a patchbay app that makes sure connections are the way I want them all the time, so there can be long intervals when there are no events being processed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.