Utility blocks when MIDI device is in use by another process
- Dominant language
- C
- Stars
- 22
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
The utility blocks for no apparent reason when the MIDI device is in use by another process. The culprit seems to be line 30 in `midi.c`:
```r = snd_rawmidi_open(&handle_in, &handle_out, device, 0);```
If `SND_RAWMIDI_NONBLOCK` is set as the flags, then the utility properly exits with a human readable error:
```r = snd_rawmidi_open(&handle_in, &handle_out, device, SND_RAWMIDI_NONBLOCK );```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in midi.c at line 30, where snd_rawmidi_open is called, and reproduce the utility with the MIDI device occupied by another process. Confirm that the utility exits with a human-readable error instead of blocking when the nonblocking flag is used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100