pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/lmms lmms: Force unbuffered I/O when reading fro...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9a2b407cb58f
branches: trunk
changeset: 371786:9a2b407cb58f
user: nia <nia%pkgsrc.org@localhost>
date: Fri Jan 14 10:59:32 2022 +0000
description:
lmms: Force unbuffered I/O when reading from a raw OSS MIDI device.
Fixes MIDI input on NetBSD.
diffstat:
audio/lmms/distinfo | 4 ++--
audio/lmms/patches/patch-src_core_midi_MidiOss.cpp | 13 ++++++++++++-
2 files changed, 14 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 0e378c7b89c7 -r 9a2b407cb58f audio/lmms/distinfo
--- a/audio/lmms/distinfo Fri Jan 14 10:36:27 2022 +0000
+++ b/audio/lmms/distinfo Fri Jan 14 10:59:32 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2021/10/26 09:59:11 nia Exp $
+$NetBSD: distinfo,v 1.16 2022/01/14 10:59:32 nia Exp $
BLAKE2s (lmms_1.2.2.tar.xz) = 332b1a6f78341a5766ccb4cddc9968ab97ba04150741421c89169a367f190acb
SHA512 (lmms_1.2.2.tar.xz) = df74d9e938f1c3807e9941b11db4ccfe9450e23b723c82774de15b7666ac39f1bfdd8519231e28849f994628190ecc92fa05d55bbc0b50a4421f2d183e729028
@@ -6,4 +6,4 @@
SHA1 (patch-CMakeLists.txt) = e30599b486c83b734fd8f9afa4cf2bd488eab338
SHA1 (patch-src_CMakeLists.txt) = 92acfc9bc236c1b211bbe9686de818641c01b257
SHA1 (patch-src_core_audio_AudioOss.cpp) = 6bc591b929f26cbfb5f160c3d9b49316bf165e58
-SHA1 (patch-src_core_midi_MidiOss.cpp) = d1bf1a7bf9aaec549f3ac97d300c7bee4d81ff29
+SHA1 (patch-src_core_midi_MidiOss.cpp) = 5baf2619765f8a7372cd47ac0f3fb6a2fb3af618
diff -r 0e378c7b89c7 -r 9a2b407cb58f audio/lmms/patches/patch-src_core_midi_MidiOss.cpp
--- a/audio/lmms/patches/patch-src_core_midi_MidiOss.cpp Fri Jan 14 10:36:27 2022 +0000
+++ b/audio/lmms/patches/patch-src_core_midi_MidiOss.cpp Fri Jan 14 10:59:32 2022 +0000
@@ -1,9 +1,20 @@
-$NetBSD: patch-src_core_midi_MidiOss.cpp,v 1.1 2019/10/24 16:36:56 nia Exp $
+$NetBSD: patch-src_core_midi_MidiOss.cpp,v 1.2 2022/01/14 10:59:32 nia Exp $
Support NetBSD's OSS emulation.
--- src/core/midi/MidiOss.cpp.orig 2018-11-03 01:43:42.000000000 +0000
+++ src/core/midi/MidiOss.cpp
+@@ -39,8 +39,8 @@ MidiOss::MidiOss() :
+ {
+ // only start thread, if opening of MIDI-device is successful,
+ // otherwise isRunning()==false indicates error
+- if( m_midiDev.open( QIODevice::ReadWrite ) ||
+- m_midiDev.open( QIODevice::ReadOnly ) )
++ if( m_midiDev.open( QIODevice::ReadWrite | QIODevice::Unbuffered | QIODevice::ExistingOnly ) ||
++ m_midiDev.open( QIODevice::ReadOnly | QIODevice::Unbuffered | QIODevice::ExistingOnly) )
+ {
+ start( QThread::LowPriority );
+ }
@@ -71,7 +71,11 @@ QString MidiOss::probeDevice()
{
return getenv( "MIDIDEV" );
Home |
Main Index |
Thread Index |
Old Index