Comments (3)
Can someone propose a pull request?
from rtmidi.
I'm working on it. I think the destructor has to wait (with a timeout) on jackProcessOut() to completely read the ringbuffer, but I haven't verified a solution yet.
from rtmidi.
I tested this pretty thoroughly on my local machine ee4643b
to make sure all messages got through. Without this patch the last message from midiout is dropped. I used a pair of POSIX semaphores to solve the problem, one with which jackProcessOut uses sem_trywait to indicate that it needs to sem_post to the other semaphore, and closePort sem_posts to the first semaphore and then waits on the second with a 1-second timeout. I hope this is a good approach.. I am not sure it is conventional, but it seems to work and is non-blocking. Any comments welcome.
from rtmidi.
Related Issues (20)
- Question: is it possible to use a custom driver? HOT 3
- JACK support broken on macOS
- SysEx notification or Peaking at input stream
- Mapping to inconsistent device names upon each boot HOT 2
- CMake: inconsistency of include interface between pkg-config and CMake config file
- rtmidi-5.0.0.tar.gz file changed after release HOT 1
- In/Out devices swapped around for Novation Launchpad Mini MK3 HOT 4
- Warning Implicit conversion loses integer precision:
- Does not compile on Windows HOT 3
- Correct way of specifying channel? HOT 2
- Building as a static library for Windows with Visual Studio HOT 1
- Is RtMidiOut::sendMessage thread-safe?
- Need help on the RtMidi library implementation in Visual Studio Code HOT 1
- Question: how do I add WEB_MIDI_API to my cmake subfolder file?
- RtMidi cannot create ports past a certain limit HOT 10
- iOS status and how-to HOT 4
- Central List of Wrapper Libraries / Projects Using RtMidi?
- Does rtmidi support midi 2.0? HOT 16
- How to detect, that a MIDI-IN is already used by another app? HOT 4
- Compilation error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtmidi.