Testing for audio playback

Dylan Reilly dreilly at atariland.net
Mon Aug 4 20:49:19 CEST 2008


I am not sure it is all that useful. The RUNNING state is only set
when an application grabs on to alsa, not when it is pumping data into
it. As for the other numbers...they change over time even when there
is no audio playing but pulseaudio is running.

On Mon, Aug 4, 2008 at 2:35 PM, Andy Green <andy at openmoko.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Somebody in the thread at some point said:
> | Is that sort of thing in the alsa driver currently? That is relatively
> | unknown territory for me. I have poked around /proc and /sys but found
> | nothing of use.
>
> I see decent looking stuff if I look at
>
> # cat /proc/asound/neo1973gta02/pcm0p/sub0/status
>
> idle -->
>
> closed
>
> catting /dev/urandom >/dev/dsp  --->
>
> state: RUNNING
> trigger_time: 1217825794.241945000
> tstamp      : 1217825796.260579000
> delay       : 30988
> avail       : 1780
> avail_max   : 30782
> - -----
> hw_ptr      : 16167
> appl_ptr    : 48935
>
> I guess those numbers change if you are doing something.
>
> - -Andy
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkiXS+cACgkQOjLpvpq7dMpOdwCbB1Dz3O0njBugVk7DzHpGj2c/
> WdcAoICIaAcGkfSamgFPdNgTFBtyPu9Q
> =AQY8
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>



-- 
Dylan Maxwell Reilly




More information about the community mailing list