From: Lars Heineken <Lars.Heineken@gmx.de>
To: alsa-devel@lists.sourceforge.net
Subject: Re: Opening dev/dsp takes very long
Date: Sat, 20 Mar 2004 09:20:02 +0100 [thread overview]
Message-ID: <405BFEB2.9040402@gmx.de> (raw)
In-Reply-To: <405B88B1.3070204@superbug.demon.co.uk>
[-- Attachment #1: Type: text/plain, Size: 725 bytes --]
> 0.000531 ioctl(4, SNDCTL_DSP_RESET, 0) = 0
> 0.000232 ioctl(4, SNDCTL_DSP_GETFMTS, 0xbffff668) = 0
> 0.510506 ioctl(4, SNDCTL_DSP_SETFMT, 0xbffff668) = 0
> 0.506515 ioctl(4, SNDCTL_DSP_STEREO, 0xbffff668) = 0
> 0.504940 ioctl(4, SOUND_PCM_READ_RATE, 0xbffff668) = 0
> 0.065604 ioctl(4, SNDCTL_DSP_GETBLKSIZE, 0x80a5824) = 0
> 0.000302 ioctl(4, SNDCTL_DSP_SYNC, 0) = 0
> 0.000250 munmap(0x40016000, 4096) = 0
The output is from executing this line:
strace -r sox 01.wav -t ossdsp /dev/dsp
As each and every oss-program on my machine suffers from this unusual
delay I think it doesn't make much sense to write a sample program, but
anyway, it's attached.
Regards,
Lars.
[-- Attachment #2: delay.c --]
[-- Type: text/plain, Size: 525 bytes --]
#include "stdio.h"
#include <sys/soundcard.h>
#include <unistd.h>
#include <fcntl.h>
main() {
int file;
file = open("/dev/dsp", O_RDWR, 0);
ioctl(file, SNDCTL_DSP_RESET, 0);
ioctl(file, SNDCTL_TMR_TIMEBASE, 0xbffff4d0);
ioctl(file, SNDCTL_DSP_GETFMTS, 0xbffff668);
ioctl(file, SNDCTL_DSP_SETFMT, 0xbffff668);
ioctl(file, SNDCTL_DSP_STEREO, 0xbffff668);
ioctl(file, SOUND_PCM_READ_RATE, 0xbffff668);
ioctl(file, SNDCTL_DSP_GETBLKSIZE, 0x80a5824);
ioctl(file, SNDCTL_DSP_SYNC, 0);
close(file);
}
next prev parent reply other threads:[~2004-03-20 8:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-13 20:01 Opening dev/dsp takes very long Lars Heineken
2004-03-13 20:24 ` Additional info: " Lars Heineken
2004-03-15 10:35 ` Takashi Iwai
2004-03-15 20:22 ` Lars Heineken
2004-03-16 8:19 ` Clemens Ladisch
2004-03-16 8:49 ` Lars Heineken
2004-03-16 19:04 ` Lars Heineken
2004-03-19 12:29 ` Lars Heineken
2004-03-19 21:58 ` Lars Heineken
2004-03-19 23:56 ` James Courtier-Dutton
2004-03-20 8:20 ` Lars Heineken [this message]
2004-03-20 13:24 ` Jaroslav Kysela
2004-03-20 16:09 ` Lars Heineken
2004-03-20 16:11 ` Jaroslav Kysela
2004-03-20 16:59 ` Lars Heineken
2004-03-20 17:13 ` Tommi Sakari Uimonen
2004-03-20 17:12 ` Jaroslav Kysela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=405BFEB2.9040402@gmx.de \
--to=lars.heineken@gmx.de \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox