LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2014, 03:01 PM   #1
number-g
LQ Newbie
 
Registered: Mar 2009
Distribution: Debian
Posts: 16

Rep: Reputation: 2
No realtime playback with nyquist on Debian wheezy.


Hi,

I installed nyquist today so that I can debug any plugins I write for Audacity.

It seems to function ok, it writes a username-temp.wav to /tmp which plays back fine, but there is no realtime playback.

I've searched elsewhere on the web but I can only find links to pastebin where people have pasted the same stuff, no solutions.

Here is the error:

Code:
g@moon:~$ ny
XLISP version 2.0, Copyright (c) 1986, by David Betz
CMU MIDI Toolkit, Copyright (c) 1993,1994, by Roger B. Dannenberg
; loading "/usr/share/nyquist/runtime/init.lsp"
Set *default-sf-dir* to "/tmp/" in fileio.lsp
AutoNorm feature is on.
Default sound file is g-temp.wav.

Nyquist -- A Language for Sound Synthesis and Composition
    Copyright (c) 1991,1992,1995,2007-2011 by Roger B. Dannenberg
    Version 3.05

> (play (osc 60))
Saving sound file to /tmp/g-temp.wav
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1968
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams, self->primeBuffers, hwParamsPlayback, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2646
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2767
warning: could not open audio, error -9997, Invalid sample rate.

total samples: 44100
AutoNorm: peak was 1,
     peak after normalization was 0.9,
     suggested normalization factor is 0.9
NIL
> (exit)
g@moon:~$
Some other possibly relevant details:
Code:
g@moon:~$ uname -r
3.2.54
g@moon:~$ cat /etc/asound.conf 
pcm.onboard {
	type hw
	card 0
}

pcm.usb {
	type hw
	card 1
	}

ctl.eq {
        type equal
        library "/usr/lib/ladspa/mbeq_1197.so"
        module "mbeq"
}

pcm.eq {
        type equal
        slave.pcm "plug:swmixer"
        library "/usr/lib/ladspa/mbeq_1197.so"
        module "mbeq"
}

pcm.swmixer {
	type dmix
	ipc_key 1234
	slave.pcm "hw:0,0"
}

pcm.!default {
        type plug
        slave.pcm "eq"
}

pcm.!dsp0 {
	type plug
	slave.pcm "hw:0,0"
}
Any help would be appreciated.

Thanks,
G
 
Old 03-20-2014, 06:40 PM   #2
number-g
LQ Newbie
 
Registered: Mar 2009
Distribution: Debian
Posts: 16

Original Poster
Rep: Reputation: 2
I figured out what the problem was.

My soundcard is locked to a sample rate of 48000Hz, so I needed to tell nyquist to use that as the default sample rate.

To do this, edit /usr/share/nyquist/runtime/nyquist.lsp
and change

Code:
(init-global *default-sound-srate* 44100.0)
to
Code:
(init-global *default-sound-srate* 48000.0)
or the correct sample rate for your card.

Hope this is useful to someone.

G
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Now I've done it - Debian dual boot (Sid, Wheezy) grub overwritten, lost Wheezy? ShaneRoach Debian 23 02-02-2014 03:28 PM
LXer: Debian Linux vs. Debian kFreeBSD With Squeeze & Wheezy LXer Syndicated Linux News 0 12-12-2012 11:00 PM
[SOLVED] Debian wheezy glitches while playback after upgrade LeetShiva Linux - Software 8 10-01-2012 02:49 PM
LXer: Debian to offer MultiArch support with Debian Wheezy 7 in 2013 LXer Syndicated Linux News 0 08-11-2011 02:50 AM
64Studio realtime kernel and debian lenny realtime module buid error? stratotak Linux - Newbie 0 01-30-2009 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration