Giter Club home page Giter Club logo

jnajack's People

Contributors

christo avatar danielhams avatar markjfisher avatar neilcsmith-net avatar sudosci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jnajack's Issues

Callback objects garbage collected

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.

JackPort.getBuffer() vs JackPort.getFloatBuffer()

I have a few questions concerning the JackPort.getBuffer() documentation:

  • What data does it contain?
  • If it contains audio data, how is the data encoded?
  • Why is getFloatBuffer() faster/"more efficient"?
  • By how much? Is it still better than raw bytes even if I have to convert the floats back to bytes?

Control logging

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?

JackMidi.eventWrite question

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.

How do I access jack_is_realtime?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.