TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: R.WIESER
date: 2020-01-03 15:38:00
subject: Re: ALSA sound cut short

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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.