From alsa-devel-owner@alsa.jcu.cz  Mon Oct 19 02:05:52 1998
Received: from smtp1.xs4all.nl (smtp1.xs4all.nl [194.109.6.51])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id CAA02893
	for <alsa-devel@jcu.cz>; Mon, 19 Oct 1998 02:05:12 +0200
Received: from orbital (arloafoe@orbital.xs4all.nl [194.109.37.98])
	by smtp1.xs4all.nl (8.8.8/8.8.8) with SMTP id CAA19044
	for <alsa-devel@jcu.cz>; Mon, 19 Oct 1998 02:05:11 +0200 (CEST)
Date: Mon, 19 Oct 1998 02:07:55 +0200 (CEST)
From: Andy Lo A Foe <arloafoe@cs.vu.nl>
To: alsa-devel@jcu.cz
Subject: setting playback_format after OSS usage
Message-ID: <Pine.LNX.3.96.981019020053.10707A-100000@orbital>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

Hi,

After using the OSS emulation (/dev/audio) with speak freely trying to
initialize the PCM device with other values (via asoundlib) fails.
When initing AlsaPlayer I do:

-------
snd_pcm_format_t pf;

pf.format = SND_PCM_SFMT_S16_LE;
pf.rate = 44100;
pf.channels = 2;
memset(pf.reserved, 0, sizeof(pf.reserved));

if ((err = snd_pcm_playback_format(handle, &pf)) < 0) {
	printf"error..etc\n");
	exit(1);
}
---------

catting /proc/asound/card1/pcm0 tells me the device is at 44100Hz
but the actual playback rate is still 8000Hz (or the rate
which speak freely uses). Setting the rate via OSS ioctl call
does work though (e.g. OSS mikmod at 44Khz puts it correctly at 44Khz)..

Bug?

Thanks,
Andy
--
Andy Lo A Foe, arloafoe@cs.vu.nl |  Linux v2.1.124  | PII 266 
http://www.cs.vu.nl/~arloafoe    | GSM: 0622-440695 | Bebox 133
http://orbital.xs4all.nl/andy    |   ICQ: 7472949   | IRCNet: Adnans


