bastibe/PySoundCard

Adjusting log level

Closed this issue · 4 comments

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

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 ;-)

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.

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.

Fixed in 2b077d3