From 8fbea6e0cf35ae7ed39bfba077e9a68b70b7492e Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 24 Apr 2005 03:29:11 +0000 Subject: The problem is that SpiralSynth opens the MIDI device path before calling SetDeviceName. The call trace goes something like this: Synth.C main() ==> Synth *synth=new Synth; ==> Synth::Synth() ==> MidiDevice::Get()->SetDeviceName(SpiralInfo::MIDIFILE); SpiralSound/Midi.h MidiDevice::Get() ==> m_Singleton=new MidiDevice; ==> MidiDevice::MidiDevice() ==> MidiDevice::Open() ==> MidiDevice::SetDeviceName patches/patch-ao works around this problem by closing the prematurely opened private variable representing the MIDI device, and setting it to NULL. MidiDevice methods check for NULL and re-initialize the private variable, this time opening the MIDI device path after SetDeviceName. --- audio/spiralsynth/distinfo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'audio/spiralsynth/distinfo') diff --git a/audio/spiralsynth/distinfo b/audio/spiralsynth/distinfo index ca8584a2ee7..d2744eea126 100644 --- a/audio/spiralsynth/distinfo +++ b/audio/spiralsynth/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2005/02/23 20:39:52 agc Exp $ +$NetBSD: distinfo,v 1.9 2005/04/24 03:29:11 ben Exp $ SHA1 (SpiralSynth-2.0.0.tar.gz) = ea42c5b7710237139f5281cf0c4ca155c184c4cd RMD160 (SpiralSynth-2.0.0.tar.gz) = c05f38a9ae8b8b87f520c11854631e6dfa00c034 @@ -16,3 +16,4 @@ SHA1 (patch-ak) = 67643c5abea0498f8ea046c5abd52f2d328a5538 SHA1 (patch-al) = 7436bce933cbddcd4f869ab2cbbe27762d4273e5 SHA1 (patch-am) = 4899c78015028a6e8047e5527362646e40a10708 SHA1 (patch-an) = b99c57cd7aa4d5c95bbeffea6c992e9cd7b7c414 +SHA1 (patch-ao) = 138f58bd7fae0226690747efcb8daf472e3a5337 -- cgit v1.2.3