From: "Daniel Schnell" Subject: Q: how to get an accurate snd_pcm_delay() for dmix devices Date: Fri, 30 Jul 2004 15:06:14 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <1acc01c47635$fea29a70$2c0aa8c0@lumpidu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_1AC9_01C47646.C1C99B60" Return-path: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org This is a multi-part message in MIME format. ------=_NextPart_000_1AC9_01C47646.C1C99B60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I want to have an accurate value for getting the delay between the appl. = buffer frames and the DAC frames. For those reasons the function = snd_pcm_delay() exists. However it doesn't return correct values if used = for a user defined dmix device. It is also irrelevant if I call before = snd_pcm_hwsync() or not. I use the following device according to the configuration in = /etc/asound.conf pcm.dmixer { type dmix ipc_key 1027 slave { pcm "hw:0,0" period_time 0 period_size 256 buffer_size 512 periods 2 } bindings { 0 0 1 1 } } which of the numerous functions could give me a correct value ? I have = already tried snd_pcm_status_get_tstamp(), but it only returns 0 values. = ? Best regards, D. Schnell. ------=_NextPart_000_1AC9_01C47646.C1C99B60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I want to have an accurate value for = getting the=20 delay between the appl. buffer frames and the DAC frames. For those = reasons the=20 function snd_pcm_delay() exists. However it doesn't return correct = values if=20 used for a user defined dmix device. It is also irrelevant if I call = before=20 snd_pcm_hwsync() or not.
 
I use the following device according to = the=20 configuration in /etc/asound.conf
 
pcm.dmixer {
    type = dmix
    ipc_key = 1027
    slave {
        pcm=20 "hw:0,0"
       =20 period_time 0
       =20 period_size 256
       =20 buffer_size 512
        periods=20 2
    }
    bindings = {
        0=20 0
        1=20 1
    }
}
 
which of the numerous functions could = give me a=20 correct value ? I have already tried snd_pcm_status_get_tstamp(), but it = only=20 returns 0 values. ?
 
Best regards,
 
D. Schnell.
 
------=_NextPart_000_1AC9_01C47646.C1C99B60-- ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com