Hi again, OK, a few more details and tests.
1. mplayer with the PulseAudio driver is working properly. e.g. mplayer -ao pulse fluidsynth.wav. 2. When I use the PulseAudio driver from FluidSynth, the notes are chopping off early, then restarting before stopping properly; and the interval between notes seems inconsistent, as if sleep(1) isn't giving consistent results. That can't be the case, though, since the writing to file worked fine, and it was doing that in realtime, not speeded up, so the same delay would be needed. 3. I'm getting a warning that it's unable to set the thread to high priority. Not sure how much this helps... Cheers, Nikhil. On Fri, 8 Aug 2014, Nikhil Nair wrote: > Hi, > > My main reason for using Cygwin Ports was FluidSynth: I want to use > libfluidsynth-devel in some software I'm writing, playing back in realtime. > > However, my initial experiments aren't working well at all. I took the > files example.c and example.sf2 from the examples/ directory in a much > older version of libfluidsynth-dev I have installed on a Debian Linux box, > and tried to run those under Cygwin. No problem compiling, but the audio > sounded... well, weird, for want of a better word. > > I tried changing the audio driver with fluid_settings_setstr (settings, > "audio.driver", "portaudio"); immediately before the driver was > initialised, and that changed the results, but it wasn't exactly an > improvement: now I just got noise! > > Just to verify it is actually working correctly, I changed it again to > write to a file, then played that file back with mplayer. This time, the > audio came out exactly as I'd have expected - and exactly the same as on > the Debian box. > > So, bottom line: the only audio drivers compiled in seem to be file, > PulseAudio and PortAudio, but the out-of-the-box settings for both > PulseAudio and PortAudio don't seem to result in the expected audio. > > Could anyone give me any hints here - or, if not, suggest who I should be > asking? > > Thanks, and best wishes, > > Nikhil. > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Cygwin-ports-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general > ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Cygwin-ports-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general
