Ok, here's a new problem: Filler()(from the link above) is called, while the synthesizer is still filling the stream with data. As you can imagine, this results in a disaster. So I cannot make the stream thread-safe (because can't control the filling end) and even if i could, I would have gasps in my output because the buffer would be filled like this: (1 =data in cycle 1 2=data in cycle 2 0= no data) 11111111111111111100000000000000000 |stream is filled until here 22222222222222222220000000000000000 while it should look like this: 1111111111111111112222222222222222222 Any ideas? Edit: Ok, finally got it - i had to wrap the whole synthesizer-class to make the stream thread-safe, but finally, it works. Thanks @ all.
modified on Tuesday, June 24, 2008 2:46 PM