Page 2 of 2

Re: All playback now high-speed

Posted: Wed Jul 08, 2015 7:55 pm
by edam
Sorry for the delay...
steve wrote:That is very odd. It does not show any physical (hardware) audio devices :? Why is that?
I have no idea, I'm afraid. I'm not very familiar with linux audio. I can run some commands, if that'll help?

Re: All playback now high-speed

Posted: Wed Jul 08, 2015 8:10 pm
by edam
If it's any help, I also get this on on stderr:

Code: Select all

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM dmix
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4594
21:08:17: Debug: DirManager: Created new instance.
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2840
21:08:18: Debug: PortAudio stream error creating device list: ALSA:Logitech USB Headset: Audio (hw:1,0): Device unavailable

Re: All playback now high-speed

Posted: Thu Jul 09, 2015 12:12 pm
by steve
Looks like your computer sound system is faulty.
Which Linux distribution are you using and which version?
Anything special about your hardware?
Do you know what sort of sound card you have?

Re: All playback now high-speed

Posted: Thu Jul 09, 2015 8:32 pm
by edam
Debian GNU/Linux sid/stretch.

I have two audio devices:
  • 82801I (ICH9 Family) HD Audio Controller, Intel Corporation (driver=snd_hda_intel)
  • Logitech USB Headset (driver=usbhid)
I'm using pavucontrol to set ALSA capture to the Logitech USB headset. I had previously set the ALSA playback to be the Logitech USB headset, too. But I've just tried it again and I no longer have the option to select a play back device per application! I wonder if that's related?...

Re: All playback now high-speed

Posted: Fri Jul 10, 2015 7:37 am
by steve
edam wrote:I'm using pavucontrol to set ALSA capture to the Logitech USB headset. I had previously set the ALSA playback to be the Logitech USB headset, too. But I've just tried it again and I no longer have the option to select a play back device per application
Are you aware that Audacity can only be selected in pavucontrol while the audio is active? (for Audacity to be available as a recording device Audacity must have an active audio input port, which means that it must either be recording, or paused recording, or the recording meter activated).

Re: All playback now high-speed

Posted: Fri Jul 10, 2015 10:34 pm
by edam
steve wrote:Are you aware that Audacity can only be selected in pavucontrol while the audio is active?
Yes, but a strange thing happens there... When I hit play on a recording (taken with the same headset) it takes a couple of seconds to play back very quickly, but the entry in pavucontrol appears and disappears in a fraction of a second -- it's a mere flash on the screen!

Following some advice I found here, I tried running audacity with pasuspender and was then able to select the headset mic and headphones manually in preferences. And it worked. Restarting audacity without pasuspender, though, worked OK up until I opened preferences and saved the device selection there (which was "default"), whereupon it stopped working again.

Running audacity like this "env PULSE_LATENCY_MSEC=30 audacity", as suggested on your wiki, didn't help. It just caused audacity to freeze for a minute when every playback was attempted.

One other thing I've noticed is that, when it's broken, playback does work very occasionally -- like, one time in 30. It even once played back too quickly and then, half way through, began playing normally! Something very odd is going on. If you've got any idea for things I could try, or information I could gather that might be helpful, let me know!

Re: All playback now high-speed

Posted: Sat Jul 11, 2015 1:59 pm
by Gale Andrews
edam wrote:
steve wrote:Are you aware that Audacity can only be selected in pavucontrol while the audio is active?
Yes, but a strange thing happens there... When I hit play on a recording (taken with the same headset) it takes a couple of seconds to play back very quickly, but the entry in pavucontrol appears and disappears in a fraction of a second -- it's a mere flash on the screen!

Following some advice I found here, I tried running audacity with pasuspender and was then able to select the headset mic and headphones manually in preferences. And it worked. Restarting audacity without pasuspender, though, worked OK up until I opened preferences and saved the device selection there (which was "default"), whereupon it stopped working again.
"Default" is pulse. You don't have to use pulse. Choose the (hw) playback device in Audacity instead. Because you are now trying to access the audio device directly through ALSA, if any other application is accessing the device then Audacity won't be able to use that device. Also this denies exclusive access of a device to PulseAudio, so other applications using PulseAudio will not be able to use that device.
edam wrote:Running audacity like this "env PULSE_LATENCY_MSEC=30 audacity", as suggested on your wiki, didn't help. It just caused audacity to freeze for a minute when every playback was attempted.
Try other numbers such as 50.

Also the "Audio to buffer" setting in Audacity's Recording Preferences may affect how PULSE_LATENCY behaves. If you changed "Audio to buffer" try changing it back to the default 100 ms before experimenting with PULSE_LATENCY.


Gale

Re: All playback now high-speed

Posted: Sat Jul 11, 2015 9:21 pm
by edam
Gale Andrews wrote:
edam wrote:Running audacity like this "env PULSE_LATENCY_MSEC=30 audacity", as suggested on your wiki, didn't help. It just caused audacity to freeze for a minute when every playback was attempted.
Try other numbers such as 50.
OMG, that worked! :P

Thanks very much! I wonder if it's worth adding that to the wiki?

I also wonder what on earth caused it to work! Any developer insight?

Re: All playback now high-speed

Posted: Sun Jul 12, 2015 8:02 pm
by Gale Andrews
edam wrote:
Gale Andrews wrote:
edam wrote:Running audacity like this "env PULSE_LATENCY_MSEC=30 audacity", as suggested on your wiki, didn't help. It just caused audacity to freeze for a minute when every playback was attempted.
Try other numbers such as 50.
OMG, that worked! :P

Thanks very much! I wonder if it's worth adding that to the wiki?
OK, I pointed out the you may need to adjust the value according to the observed result of trying "30".
edam wrote:I also wonder what on earth caused it to work! Any developer insight?
None here, other than it made sense to try some higher value.


Gale