bgr / mingus

Automatically exported from code.google.com/p/mingus
GNU General Public License v3.0
1 stars 1 forks source link

Audio driver not listed, fails assertion #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Find a FluidSynth implementation using audio driver name "dsound".
2. Try to initialize mingus.midi.fluidsynth.

I'm using a precompiled FluidSynth implementation found on:
http://fluidsynth.flyx.org/

It lists 'dsound' and 'file' as valid audio driver names.

fluidsynth.init("soundfont.sf2", "Direct Sound")
fails with:
fluidsynth: error: Couldn't find the requested audio driver Direct Sound. Valid 
drivers are: dsound, file.

fluidsynth.init("soundfont.sf2", "dsound")
causes:
  File "C:\Python27\lib\site-packages\mingus\midi\pyFluidSynth.py", line 217, in start
    assert (driver in ['alsa', 'oss', 'jack', 'portaudio', 'sndmgr', 'coreaudio', 'Direct Sound'])
AssertionError

v mingus-0.4.2.3-py2.7

Original issue reported on code.google.com by aibo...@gmail.com on 12 Mar 2012 at 7:22

GoogleCodeExporter commented 9 years ago
I also had this issue. I just replaced 'Direct Sound' in that line 
(pyFluidSynth.py, line 217) with 'dsound' to get playback to work.   

Original comment by logan.wi...@gmail.com on 23 Jan 2013 at 11:54