Quote:
Originally Posted by geekmaster
|
unsure which version I sent.
I call the current incarnation like
./Balsamic plughw 8k8bmono.wav 8000
but I think I added the argv[3] for alternate speed playback - extra testing options.
I removed all error handling more or less - aside from the obvious alsa bits that were already hanging around.
It may segfault when it gets to the end of the file. My current one does because I don't check for %WaveSize correctly (I'm monitoring the wave stream as video info)
I've abandoned all attempts to sync vid pending your next revelation.
My code is not hardy nor well programmed. But I've got the seggies down to expected ones my end. let me know approx where it segges and ill have a think - the strace of it should be utterly straightforward.
: ) It's possibly the polling failing but I dont think so.
as an aside I got a huge performance increase by simply
Code:
void gmplay4(void) {
while (1)
{
if (frameCount %2==0)
{
BLAH
}
else
{
usleep(5); // or 10
}
as opposed to the sync waiting. the minuscule difference in frame rate (seemingly like 5 or 6 solid ones rather than 6 or 7 sketchy ones) was not that worse. perhaps a tiny sleep could be worked in if we are using threads - they seem to like it