wrong -b size
Date | 2016-01-05 16:18 |
From | Stefan Thomas |
Subject | wrong -b size |
Dear community, running a certain cdf file I get the messageALSA: -b 1024 not allowed on this device; using 682 instead I have in the options: I would be thankful for an advice.-+rtaudio=alsa -o dac:plughw:USB -odac -+rtmidi=alsa -Ma -m0d -B 2048 -b 682 -d |
Date | 2016-01-05 16:20 |
From | Stefan Thomas |
Subject | Re: wrong -b size |
Sorry, there has been a mistake. The command line options have been off course: -+rtaudio=alsa -o dac:plughw:USB -odac -+rtmidi=alsa -Ma -m0d -B 2048 -b 1024 -d 2016-01-05 17:18 GMT+01:00 Stefan Thomas <kontrapunktstefan@gmail.com>:
|
Date | 2016-01-05 16:34 |
From | Victor Lazzarini |
Subject | Re: wrong -b size |
Try using hw:N,M instead of plughw:.. to select the device (I often found these kinds of issues with plughw) ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 5 Jan 2016, at 16:18, Stefan Thomas |
Date | 2016-01-05 16:35 |
From | Anders Genell |
Subject | Re: wrong -b size |
It is most likely due to that that the plughw:USB-device is using a dmix slave device, which might mess up buffer sizes. Read the section about dmix at for further explanation. Regards, Anders
|
Date | 2016-01-05 16:37 |
From | Stefan Thomas |
Subject | Re: wrong -b size |
Thanks, it seems to work! 2016-01-05 17:34 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>: Try using hw:N,M instead of plughw:.. to select the device (I often found these kinds of issues with plughw) |
Date | 2016-01-05 16:55 |
From | Stefan Thomas |
Subject | Re: wrong -b size |
Sorry, I was to early with my answer, maybee I didn't save the file. At the moment, nothing works.-+rtaudio=alsa -o dac:hw:1,0 -+rtmidi=alsa -Ma -m0d -B 2048 -b 1024 -d *** Cannot open device 'hw:1,0' for audio output: No such file or directory 0 [USB ]: USB-Audio - Scarlett 2i4 USB 2016-01-05 17:34 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>: Try using hw:N,M instead of plughw:.. to select the device (I often found these kinds of issues with plughw) |
Date | 2016-01-05 17:03 |
From | Anders Genell |
Subject | Re: wrong -b size |
What sample rate does your csd file have?
|
Date | 2016-01-05 17:07 |
From | Stefan Thomas |
Subject | Re: wrong -b size |
44100 2016-01-05 18:03 GMT+01:00 Anders Genell <anders.genell@gmail.com>:
|
Date | 2016-01-05 17:13 |
From | Victor Lazzarini |
Subject | Re: wrong -b size |
What devices do you have? Try to find their number. You can try csound --list-devices but I am not sure it works in alsa Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-01-05 17:15 |
From | Anders Genell |
Subject | Re: wrong -b size |
Well, that should be fine...
|
Date | 2016-01-05 17:18 |
From | Stefan Thomas |
Subject | Re: wrong -b size |
My output of csound --list-devices: virtual_keyboard real time MIDI plugin for Csound 2016-01-05 18:13 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
|
Date | 2016-01-05 17:19 |
From | Anders Genell |
Subject | Re: wrong -b size |
Is the user that starts the csound process member of the audio group? You might try running csound as root. If that works it is likely a problem with privileges. Regards, Anders
|
Date | 2016-01-05 17:21 |
From | Stefan Thomas |
Subject | Re: wrong -b size |
I am a member of the audio group, but I will try it as root as well. 2016-01-05 18:19 GMT+01:00 Anders Genell <anders.genell@gmail.com>:
|
Date | 2016-01-05 18:03 |
From | jpff |
Subject | Re: wrong -b size |
version 6.02? That is old and before --list-devices ==John ff On Tue, 5 Jan 2016, Stefan Thomas wrote: > My output of csound --list-devices: > virtual_keyboard real time MIDI plugin for Csound > 0dBFS level = 32768.0 > Csound version 6.02.0 (double samples) Jan 25 2014 > libsndfile-1.0.25 > unknown long option: '--list-devices' > > > > 2016-01-05 18:13 GMT+01:00 Victor Lazzarini |
Date | 2016-01-05 21:01 |
From | Stefan Thomas |
Subject | Re: wrong -b size |
Hi, if I run the file as root, it works fine. I also had the problem, that -after about 20 minutes- the sound comes out distorted. This seems also to disappear when I run the file with the sudo command.2016-01-05 18:19 GMT+01:00 Anders Genell <anders.genell@gmail.com>:
|
Date | 2016-01-05 21:09 |
From | Anders Genell |
Subject | Re: wrong -b size |
You really shouldn't need to be member of any other groups than audio to access the audio system, as far as I know... What Linux version/system are you using?
|
Date | 2016-01-07 18:03 |
From | Stefan Thomas |
Subject | Re: wrong -b size |
I'm using xubuntu 14.4. 2016-01-05 22:09 GMT+01:00 Anders Genell <anders.genell@gmail.com>:
|
Date | 2016-01-07 21:21 |
From | Anders Genell |
Subject | Re: wrong -b size |
If I'm not mistaken, xubuntu started using pulse audio as default sound daemon a while back. While convenient for have audio working well by default for many applications, I find it less suitable for what might be considered professional work, so I use distributions that does not include it by default. I believe pulse audio might hog the audio resources for normal users (i.e. not root) in your system. The default alsa device is in that case likely an alias pointing to pulse, which would explain difficulties in setting buffer sizes through alsa. You can either try to remedy that by using pulse audio for csound (-+rtaudio=pulse), though I don't know how feasible it would be trying to set buffer sizes, or you could opt for removing pulse audio entirely if you do not depend on it for other software. Regards, Anders
|
Date | 2016-01-07 21:24 |
From | Justin Smith |
Subject | Re: wrong -b size |
You can make pulse use jack as its backend, and then connect to jack with csound. This way both pulse and csound are using jack. Once this is set up it works nicely. On Thu, Jan 7, 2016 at 1:21 PM Anders Genell <anders.genell@gmail.com> wrote:
|