bastibe / PySoundCard

PySoundCard is an audio library based on PortAudio, CFFI and NumPy
BSD 3-Clause "New" or "Revised" License
87 stars 9 forks source link

Adjusting log level #2

Closed holyhead closed 10 years ago

holyhead commented 11 years ago

If you import pysoundcard and create a simple Stream, many debug information entries will be printed to stderr. I was wondering if there is the possibility to reduce the amount of log messages (probably by setting the log level).

Version: I am currently using the windows 32bit prebuilt version (PySoundCard-0.3.win32-py2.7).

Reproduce by:

from pysoundcard import Stream
stream = Stream() 

which results in a very long log (over 500 lines)

Would be nice: Somehow disable / reduce log messages

bastibe commented 11 years ago

This is due to a compile flag in portaudio. I use the compiled portaudio from adfernandez which sadly has this flag set.

I'll try compile my own version over the weekend. However, compiling portaudio is rather complex and I don't own a Visual Studio license. But I'll do my best ;-)

holyhead commented 11 years ago

FYI: Visual Studio 2012 Express-Edition is free of charge (it comes with C/C++ and 32-/64-bit compilers). If you're not able to build it, I can build it for you. You just need to tell me which version of PortAudio you need. I'd assume that you need a .DLL for 32 bit aswell as 64 bit built without debug information.

bastibe commented 11 years ago

Thank you! If you could do that, that would be totally awesome!

I would indeed need a 32 bit and a 64 bit version of portaudio v19 stable, if possible with all the available backends (this is the tricky part). Binaries are only needed for Windows. Mac and Linux users can just use their package managers.

bastibe commented 10 years ago

Fixed in 2b077d3456