Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 1999 19:03:33 -0500 (EST)
From:      Luoqi Chen <luoqi@chen.ml.org>
To:        luoqi@chen.ml.org, tristan@mpegtv.com
Cc:        multimedia@FreeBSD.ORG
Subject:   Re: MpegTV volume control problem
Message-ID:  <199901300003.TAA01467@chen.ml.org>
In-Reply-To: <36B20C6D.2B04BDC1@mpegtv.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> Luoqi Chen wrote:
> > 
> > I'm having trouble adjusting volume while mtv is playing. No matter what
> > value I set the volume to (either using mtv's volume control or using
> > /usr/sbin/mixer), mtv immediately sets it back to 5:0. I had to remove
> > the mixer node from /dev in order to hear the audio. I tried both Luigi's
> > pcm driver and the old driver, same result. Did anybody else have the same
> > experience? Is this a mpegtv bug or a problem with our system (either
> > the sound driver or the linux emulation layer)?
> > 
> > -lq
>
> it is not an mpegtv bug: volume control works well with all
> the native linux versions
> (linux-x86-libc5, linux-x86-glibc, linux-alpha...).
>
> note that after setting the volume, the player
> asks (every second or so) the current
> volume settings to the mixer with the OSS
> ioctl call MIXER_READ(SOUND_MIXER_VOLUME)
> or MIXER_READ(SOUND_MIXER_PCM).
>
> the player does that in order to reflect the current
> volume setting, in case they are changed by some other source.
>
> If those ioctl do not work properly, mtv would behave
> exactly has you describe.
>
> -t
>
It's a bug in our linux emulation layer, the direction bits of the ioctl word
are ignored, so the read ioctls behaved exactly like the writes. I have
included the fix in my read-raw-cd-data patch on http://www.freebsd.org/~luoqi.
Tristan, you may add FreeBSD as another OS supported by mtv to play VCDs :)
I intend to commit this patch as soon as it is reviewed.

-lq

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901300003.TAA01467>