mm0fmf,
>> I've been scouring the web for days at end, and have found very little in
>> regard to example programs. Could you post the URL to them ?
>
> https://www.alsa-project.org/alsa-doc/alsa-lib/examples.html
:-) After my last post I found that page too (don't quite remember what the
exact search terms where though).
> Did you try these complex examples?
Nope. They use a different approach, so they are useless to compare with.
> Did they work?
There is another simple example in that list, named "pwm_min". It "works"
as long as you (again) do not look to closely:
1) It seems to be missing a "snd_pwm_drain()" call. Thats OK ? Don't
know.
2) 16*1024 (buffer size) *16 (loops) / 48000 (bitrate) equals 5.46 seconds.
Running "time ./pwm_min" shows 5.09 seconds. Thats 17824 frames missing
(more than one buffers worth)...
In other words, the same "too short" problem.
I tried putting that "snd_pwm_drain()" function before closing the handle
here too, but that didn't fix it.
> If they did then you have a working example
They dont, and thats the problem.
> and simplifying the example is just a small matter of programming and
> anyone can program.
:-) Just compare "pwm.c" and "pwn_min.c" examples with each other. I
dare you to simplify the first into something that is as concise as the
second. :-p (and no, I do not really expect you to do so)
@all:
But I /really/ would like one of the other RPi 3B(+) board owners to try to
recreate the problem and confirm its not just my combination of board, OS
and code.
Regards
Rudy Wieser
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|