Commit graph

12 commits

Author SHA1 Message Date
rillig
15080e9197 Fixed g++ 4 error message. 2007-09-29 11:40:46 +00:00
joerg
618d961c3a Fallback to O_FSYNC on DragonFly, if O_SYNC doesn't exist.
Use PTHREAD_* instead of -lpthread for linkage.
2006-01-05 15:33:00 +00:00
ben
4cda63c0a7 Fixes for SpiralSound/Midi.C
* test for failure of open() should be == -1, not == 0
	This causes Open() to behave as intended, only creating the
	m_MidiReader thread if the MIDI device is successfully opened.

* unconditionally initialize m_Mutex in Open()

* conditionally close m_MidiReader in Close(), if NULL do nothing

* make m_MidiFd and m_MidiWrFd the same file descriptor.  The MIDI
	device special file can only be opened once at a time.
2005-04-24 14:41:28 +00:00
ben
c311032905 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.
2005-04-24 03:29:11 +00:00
ben
60531e216e Update SpiralSynth to version 2.0.0. Notable changes include:
* Totally replaced audio core code with SSM plugin code,
	modified for static linking.
* Uses 32bit floating point format internally.
* New midi device handling.
* New OSS output code.
* New funky sliders.
* Updated for fltk 1.1.0
2004-11-25 17:24:27 +00:00
ben
0aeb7a6bde Make SpiralSynth build with FLTK 1.1.x as well as 1.0.x 2004-02-15 06:00:57 +00:00
ben
61f8e4a73c Make SpiralSynth run in 1.6ZF. Some code expected declared pointers to be
zeroed, and coredumped with nonsense values.  Explicitly initialize to
zero.
2004-02-15 06:00:26 +00:00
ben
9af7b585f0 Fix build error introduced by gcc3.
ftp://ftp.netbsd.org/pub/NetBSD/misc/agc/borked-current/audio/spiralsynth/.broken.sys2.html
2003-12-19 16:48:06 +00:00
jmmv
b1ea0ff723 Use ossaudio.buildlink2.mk to get the right device and library.
Patch provided by collver1@comcast.net in PR pkg/22181.
2003-07-22 20:43:04 +00:00
jlam
49360fea61 buildlink1 -> buildlink2 2002-09-21 00:46:56 +00:00
wiz
1571c83165 Fix compilation on xpkgwedge machines. Closes pkg/17079. 2002-06-12 00:07:34 +00:00
rh
b50ec5a371 Initial import of spiralsynth-0.1.7, an "analog" synthesizer with X11 gui. 2002-05-26 01:14:26 +00:00