From edasx at seznam.cz Fri Sep 15 19:06:46 2006 From: edasx at seznam.cz (edasx) Date: Fri, 15 Sep 2006 19:06:46 +0200 (CEST) Subject: [Shtoom] unable to get the sound to work (win32, python2.4) Message-ID: <766.678-10712-29916176-1158340006@seznam.cz> # Hello, # # i spent few days playing with the shtoom, but i always ended with some problems # with audio. I ended up installing MSVC2003, .NET1.1, .NET1.1SDK, MSPSDK to # compile the fastaudio module. I moved a little bit further but i am still stuck. # This is the log the shreadder.py ends with: # # [-] Log opened. # [-] C:\Python24\lib\site-packages\shtoom\audio\interfaces.py:5: # twisted.python.components.ComponentsDeprecationWarning: # twisted.python.components.Interface is deprecated in Twisted 2.3. Use # zope.interface.Interface instead. (also note that you should not use 'self' as # the first arg on function decls in z.i.Interfaces). # [-] audioPref is None # __new__: txFifo=a6d828 rxFifo=bb8f18 # [-] fastaudio.stream.__new__: calling Pa_Initialize() # [-] fastaudio.stream.__new__: back from Pa_Initialize() # [-] fastaudio.stream.__new__:seeking closest rate to 8000 # __new__: txFifo=b053f8 rxFifo=b0c0f0 # [-] fastaudio.stream.open: calling Pa_OpenStream() # [-] fastaudio.stream.open: back from Pa_OpenStream() # [-] fastaudio.stream.open: finished # [-] fastaudio.stream.__new__:rate = 8000 # [-] fastaudio.stream.open: calling Pa_OpenStream() # [-] fastaudio.stream.open: back from Pa_OpenStream() # [-] fastaudio.stream.open: finished # [audio] audio device # close # [-] Traceback (most recent call last): # [-] File "c:\Python24\Lib\site-packages\shtoom\scripts\shreadder.py", line 90, # in ? # [-] main() # [-] File "c:\Python24\Lib\site-packages\shtoom\scripts\shreadder.py", line 83, # in main # [-] dev.selectDefaultFormat([formats.PT_RAW,])w # [-] File "C:\Python24\Lib\site-packages\shtoom\audio\converters.py", line 294, # in selectDefaultFormat # [-] assert not self._d or not self._d.isOpen(), \ # [-] AssertionError: close device before calling selectDefaultFormat() # # # It looks like the dev close somehow does not work. skipping the assert line # results in crash of python24. i tried to compile the module with latest # libsndfile even the one recommended on the original pages and nothing works. any # suggestions here? possibly the module of fastsound that is actually working with # .24? i saw some cocoaaudio based thing in the svn repo, should i go that way? # there's something about the environment vars in win32 that will choose the # device... maybe wrong device is used in win32. # # # # #