On Sun, Dec 14, 2008 at 10:41:51AM +0000, Jacob Meuser wrote:
> try the cat > /dev/audio < /dev/zero test in faq13

  # cat > /dev/audio < /dev/zero &     
  [1] 21502
  # audioctl play.{seek,samples,errors}
  play.seek=57600
  play.samples=652800
  play.errors=0
  # audioctl play.{seek,samples,errors}
  play.seek=57600
  play.samples=940800
  play.errors=0
  # audioctl play.{seek,samples,errors}
  play.seek=57600
  play.samples=1209600
  play.errors=0
  # audioctl play.{seek,samples,errors}
  play.seek=57600
  play.samples=1593600
  play.errors=0
  # audioctl play.{seek,samples,errors}
  play.seek=48000
  play.samples=1910400
  play.errors=0
  # kill %1
  # fg
  cat > /dev/audio < /dev/zero 
  Terminated 

Nothing but silence during the test. No shreiking sounds.

> also try the regress test in src/regress/sys/dev/audio

  # ./autest
  ulinear:8...mono(s 8000 c 8146 e 1.8%)...stereo(s 8000 c 8025 e 0.3%)
  mulaw:8*...mono(s 8000 c 4061 e 97.0%)...stereo(s 8000 c 4006 e 99.7%)
  alaw:8*...mono(s 8000 c 4061 e 97.0%)...stereo(s 8000 c 4006 e 99.7%)
  slinear:8*...mono(s 8000 c 8149 e 1.8%)...stereo(s 8000 c 8025 e 0.3%)
  slinear_le:16...mono(s 8000 c 8026 e 0.3%)...stereo(s 8000 c 8013 e 0.2%)
  ulinear_le:16*...mono(s 8000 c 8025 e 0.3%)...stereo(s 8000 c 8012 e 0.2%)
  slinear_be:16*...mono(s 8000 c 8025 e 0.3%)...stereo(s 8000 c 8012 e 0.2%)
  ulinear_be:16*...mono(s 8000 c 8026 e 0.3%)...stereo(s 8000 c 8013 e 0.2%)

The test produces a lot of different, noisy sounds. I guess that is the
expected behaviour. When it's done, the sound card keeps playing an
annoying, shreiking sound, like the sound I hear when trying to play
music with mpd. I was able to stop it by running

  # cat > /dev/audio < /dev/zero &
  [1] 27452
  # kill %1
  # fg
  cat > /dev/audio < /dev/zero 
  Terminated 

If I run the above commands a couple of times I'm able to get it into
the shreiking mode again.

> see if those produce the shreiking sound
> 
> is this new(ish)?  you said you had the problem a month or two old
> -current, but before that?

Before running the old -current that I mentioned, I ran 4.3-stable on
the machine. The problem never occured with 4.3-stable.

I'm able to configure it to use all the ordinary rates:

  # audioctl play.rate      
  play.rate=48000
  # audioctl play.rate=44100
  play.rate: -> 44100
  # audioctl play.rate=22050
  play.rate: -> 22050
  # audioctl play.rate=8000 
  play.rate: -> 8000

I remember that with 4.3-stable I was only able to use 48000 and had to
force mpd and mplayer to use 48000.

I've now built and installed mplayer, and the problem also exists with
mplayer. If I start mplayer 4-5 times (every time stopping it by typing
q after a few seconds), the sound card suddenly goes mad and plays
shreiking sounds together with the music. When I quit, the music stops
but the shreiking sounds continue. This is with and without "-s 48000",
it makes no difference.

I'm ready to try anything you can think of :-)

Thanks in advance.

I might be a bit slow answering your mails, because I'm practically
living at the university at the moment, strugling to finish some project
work.

Martin


$ mixerctl -av
outputs.master=231,231 volume
outputs.master.mute=off  [ off on ]
outputs.mono=255 volume
outputs.mono.mute=off  [ off on ]
outputs.mono.source=mixerout  [ mixerout mic ]
outputs.surround=255,255 volume
outputs.surround.mute=on  [ off on ]
outputs.center=255 volume
outputs.center.mute=on  [ off on ]
outputs.lfe=255 volume
outputs.lfe.mute=on  [ off on ]
inputs.spkr=255 volume
inputs.spkr.mute=off  [ off on ]
inputs.phone=191 volume
inputs.phone.mute=on  [ off on ]
inputs.mic=191 volume
inputs.mic.mute=on  [ off on ]
inputs.mic.preamp=off  [ off on ]
inputs.mic.source=mic0  [ mic0 mic1 ]
inputs.line=191,191 volume
inputs.line.mute=on  [ off on ]
inputs.cd=191,191 volume
inputs.cd.mute=off  [ off on ]
inputs.video=255,255 volume
inputs.video.mute=off  [ off on ]
inputs.aux=191,191 volume
inputs.aux.mute=on  [ off on ]
inputs.dac=191,191 volume
inputs.dac.mute=off  [ off on ]
record.source=mic  [ mic cd video aux line mixerout mixeroutmono phone ]
record.volume=255,255 volume
record.volume.mute=off  [ off on ]
outputs.extamp=off  [ off on ]
outputs.spdif=off  [ off on ]

Reply via email to