Skip to content

Commit

Permalink
Support NetBSD's OSS audio/midi implementation (LMMS#5277)
Browse files Browse the repository at this point in the history
  • Loading branch information
alarixnia authored and Reflexe committed Apr 4, 2020
1 parent 3e55464 commit 58bb3ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/audio/AudioOss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@


#ifndef _PATH_DEV_DSP
#ifdef __OpenBSD__
#if defined(__NetBSD__) || defined(__OpenBSD__)
#define _PATH_DEV_DSP "/dev/audio"
#else
#define _PATH_DEV_DSP "/dev/dsp"
Expand Down
4 changes: 4 additions & 0 deletions src/core/midi/MidiOss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ QString MidiOss::probeDevice()
{
return getenv( "MIDIDEV" );
}
#ifdef __NetBSD__
return "/dev/rmidi0";
#else
return "/dev/midi";
#endif
}
return dev;
}
Expand Down

0 comments on commit 58bb3ba

Please sign in to comment.