I'm trying to do some work with JTTL's Audio Plugin. However I'm having some issues. So far in SVN I have some new features and fixes for it. An option for what resampler your using (None, Linear) and a new resampler option (libsamplerate Best Quality SINC). The new resampler is causing the problems. It seems to work, but I think its writing too much data and going past the allocated buffer. I tried cutting down how much it writes in various ways but it just makes it constantly skip (I'm guessing its half audio half nothing, would that be considered a buffer underrun?) and the other method it seems to be writing out of place because as soon as it underruns for the first time SDL's state seems to be messed up (Exiting after that point causes issues.)
So anyways, Anyone lend a hand? I've never used libsamplerate before, I had some issues at first but now the only serious issue is the memory one.
Besides this issue, kind of OT I guess, The default frequency seems to be wrong. Not the value itself but the fact that it seems to be used when it shouldn't be. For example, I think "The Corporation first intro by i_savant" is meant to play at 44100, but it ends up going to the default. This is a serious problem because other things have this issue also ("Eurasia Intro by STE" and other demos) Understood that its not aimed to get demos working properly, But I think that if we find out the issues with these it will fix some outstanding audio issues. Honestly I'm not sure where the problem is (Could be in the RSP code, I guess)
Even more so, the audio can get really skippy and I think the issue is not related to the power available ("Eurasia Intro by STE" is extremely skippy after a few moments in, but graphics play fine and the CPU usage never goes close to 50%). Any pointers on this issue? I've looked, but I've failed to find any reasons why.
I guess for now I'll work on something else, but all of the above are still issues that need to be fixed. If anyone knows anything, please post.
So anyways, Anyone lend a hand? I've never used libsamplerate before, I had some issues at first but now the only serious issue is the memory one.
Besides this issue, kind of OT I guess, The default frequency seems to be wrong. Not the value itself but the fact that it seems to be used when it shouldn't be. For example, I think "The Corporation first intro by i_savant" is meant to play at 44100, but it ends up going to the default. This is a serious problem because other things have this issue also ("Eurasia Intro by STE" and other demos) Understood that its not aimed to get demos working properly, But I think that if we find out the issues with these it will fix some outstanding audio issues. Honestly I'm not sure where the problem is (Could be in the RSP code, I guess)
Even more so, the audio can get really skippy and I think the issue is not related to the power available ("Eurasia Intro by STE" is extremely skippy after a few moments in, but graphics play fine and the CPU usage never goes close to 50%). Any pointers on this issue? I've looked, but I've failed to find any reasons why.
I guess for now I'll work on something else, but all of the above are still issues that need to be fixed. If anyone knows anything, please post.