<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/sndobj/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/sndobj/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 19 Dec 2008 23:17:17 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sndobj/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>null pointer dereference when calling ProcOn</title><link>https://sourceforge.net/p/sndobj/bugs/1/</link><description>I am trying to open a 1-channel wave file, apply some gain, and play it using an SndThread in python.  This all works when all of my sndobj library calls happen from the same python function.  However, if I move the call to ProcOn to a different function, I get a bug.  The order of the library calls is exactly the same; the only difference is the caller function.

The bug is that I get no audio output, and the SndThread prints a stream of numbers very rapidly to the screen.  Usually they are all 0, but slight variations of the program will produce integers or floats instead.  When I kill the program with ctrl-C, Windows pops up an error message telling me that the program tried to reference memory at 0x00000000 .  Other slight code variations have caused the null dereference to happen before the stream of zeros, or the address be 0x00000004 instead of null.

My platform is windows xp 32 bit, python 2.5.1 .  I can't find a version number in my sndobj files, but I downloaded them on July-14-2008, which I think is the latest release.

I've attached the test case and a test wave file.  However, the problem happens identically with at least one other wave file.

Two interesting variatons on the test case:
1\) uncomment line 30 and comment line 36.  Now the program runs successfully, but there is no audio output.

2\) Do the above, and also uncomment lines 31-32 and comment line 39.  Now the program is nondeterministic.  Sometimes it runs correctly with audio output, sometimes with no audio output, and sometimes i get the stream of zeros and the null pointer dereference.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">asomers</dc:creator><pubDate>Fri, 19 Dec 2008 23:17:17 -0000</pubDate><guid>https://sourceforge.netdb241192e7d29fff016cac5511c773d1297aace7</guid></item></channel></rss>