Folderol,
> ALSA is quite complicated at first. It's some time since I've worked
> on it, but this is what I found out.
>
> It is a series of negotiations.
[snip]
Setting up the whole thing doesn't seem to be creating any kind of problems.
And even though the code in the link I provided doesn't do a lot of error
checking it does use the values returned by ALSA to both determine the size
of the programs buffer as well as how many times it should send it.
Its just that I have zero idea why the sound gets cut short, even though
inserting a seconds long usleep( ) just before the snd_pcm_drain( ) call
shows that the whole length of sound is there.
Regards,
Rudy Wieser
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|