* what is trigger time?
@ 2004-10-08 1:07 Hanbiao Wang
2004-10-08 4:08 ` Lee Revell
0 siblings, 1 reply; 3+ messages in thread
From: Hanbiao Wang @ 2004-10-08 1:07 UTC (permalink / raw)
To: alsa-devel
Hi, All
According to the ALSA documentation, the following two functions
snd_pcm_status_get_trigger_tstamp()
snd_pcm_status_get_trigger_htstamp()
are suppose to get the "trigger time". However, I can not find any
documents that explains or define the meaning of the "trigger time".
Is that the time when a whole period of samples in the buffer is ready to
be read in? Could somebody please give me a hint? Thanks a lot.
Hanbiao
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: what is trigger time?
2004-10-08 1:07 what is trigger time? Hanbiao Wang
@ 2004-10-08 4:08 ` Lee Revell
2004-10-08 17:16 ` Hanbiao Wang
0 siblings, 1 reply; 3+ messages in thread
From: Lee Revell @ 2004-10-08 4:08 UTC (permalink / raw)
To: Hanbiao Wang; +Cc: alsa-devel
On Thu, 2004-10-07 at 21:07, Hanbiao Wang wrote:
> Hi, All
> According to the ALSA documentation, the following two functions
> snd_pcm_status_get_trigger_tstamp()
> snd_pcm_status_get_trigger_htstamp()
> are suppose to get the "trigger time". However, I can not find any
> documents that explains or define the meaning of the "trigger time".
> Is that the time when a whole period of samples in the buffer is ready to
> be read in? Could somebody please give me a hint? Thanks a lot.
>
I don't have the source in front of me but I would expect this to be the
time when the ALSA middle layer executed the trigger callback. This
happens when a PCM is stopped, started, or paused.
Lee
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: what is trigger time?
2004-10-08 4:08 ` Lee Revell
@ 2004-10-08 17:16 ` Hanbiao Wang
0 siblings, 0 replies; 3+ messages in thread
From: Hanbiao Wang @ 2004-10-08 17:16 UTC (permalink / raw)
To: Lee Revell; +Cc: alsa-devel
On Fri, 8 Oct 2004, Lee Revell wrote:
> On Thu, 2004-10-07 at 21:07, Hanbiao Wang wrote:
> > Hi, All
> > According to the ALSA documentation, the following two functions
> > snd_pcm_status_get_trigger_tstamp()
> > snd_pcm_status_get_trigger_htstamp()
> > are suppose to get the "trigger time". However, I can not find any
> > documents that explains or define the meaning of the "trigger time".
> > Is that the time when a whole period of samples in the buffer is ready to
> > be read in? Could somebody please give me a hint? Thanks a lot.
> >
>
> I don't have the source in front of me but I would expect this to be the
> time when the ALSA middle layer executed the trigger callback. This
> happens when a PCM is stopped, started, or paused.
>
> Lee
Thanks for Lee's answer. Other than start, stop, pause of PCM, are
there any other events that could be regarded as triggered?
After I started a PCM for capture, I immediately examined the trigger time
by calling snd_pcm_status_get_trigger_tstamp(). Then I read data by
calling snd_pcm_readi(). After that I examine the trigger time again by
calling the same snd_pcm_status_get_trigger_tstamp(). However, these two
trigger time has a difference of 1108542 us. The first trigger time could
be the start of PCM, I really have no clue of what the second trigger time
corresponds to. Please enlighten me on this issue. Thanks a lot in
advance.
Hanbiao
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
>
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-08 17:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-08 1:07 what is trigger time? Hanbiao Wang
2004-10-08 4:08 ` Lee Revell
2004-10-08 17:16 ` Hanbiao Wang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.