Csound Csound-dev Csound-tekno Search About

[Csnd] how to set a device to -odac in ubuntu studio?

Date2012-08-02 14:27
Fromjoachim heintz
Subject[Csnd] how to set a device to -odac in ubuntu studio?
this is a bit off topic, but perhaps one of the linux people here can help.

i want to set my emu0202 usb soundcard to the primary alsa device, so 
that it can be called as -odac from csound.

in usual ubuntu, this is easy to do with the gnome volume control. there 
is a switch for selecting the primary device.

now i am using ubuntu studio (12.04), and i can't find a switch like 
this in the pulse audio volume control (pavucontrol), or anywhere else.

does anyone know how to do this? is there perhaps any simple command?

thanks in advance -

	joachim

Date2012-08-02 15:52
FromTito Latini
SubjectRe: [Csnd] how to set a device to -odac in ubuntu studio?
AttachmentsNone  

Date2012-08-02 16:02
FromSteven Yi
SubjectRe: [Csnd] how to set a device to -odac in ubuntu studio?
Just to add, there is another possibility to go directly to pulseaudio
from Csound using -+rtaudio=pulse driver.  I think though, it is
better to go around pulse altogether if possible. It's been a while
since I worked on Linux though, so the situation with pulse may have
improved, but it introduced a bit of latency last time I used it.

On Thu, Aug 2, 2012 at 10:52 AM, Tito Latini  wrote:
> I'm not ubuntullo but if you use pulseaudio, there is the `pulse'
> plugin for alsa. You can write a `.asoundrc' file in your HOME
> directory with
>
> pcm.!default {
>         type pulse
> }
>
> ctl.!default {
>         type pulse
> }
>
> It uses the default pulse sink (you can change it at runtime).
> Without pulseaudio, you can see the number of your card
>
>   cat /proc/asound/cards
>
> and the lines for .asoundrc are
>
> pcm.!default {
>         type hw
>         card YOUR_CARD_NUMBER
> }
>
> ctl.!default {
>         type hw
>         card YOUR_CARD_NUMBER
> }
>
> tito
>
> On Thu, Aug 02, 2012 at 03:27:23PM +0200, joachim heintz wrote:
>> this is a bit off topic, but perhaps one of the linux people here can help.
>>
>> i want to set my emu0202 usb soundcard to the primary alsa device, so
>> that it can be called as -odac from csound.
>>
>> in usual ubuntu, this is easy to do with the gnome volume control. there
>> is a switch for selecting the primary device.
>>
>> now i am using ubuntu studio (12.04), and i can't find a switch like
>> this in the pulse audio volume control (pavucontrol), or anywhere else.
>>
>> does anyone know how to do this? is there perhaps any simple command?
>>
>> thanks in advance -
>>
>>       joachim
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>

Date2012-08-02 16:50
Fromjoachim heintz
SubjectRe: [Csnd] how to set a device to -odac in ubuntu studio?
yes, ubuntu studio uses pulseaudio, so the plugin is there.
but *how* can i change the default pulse sink at runtime?
thanks -
	joachim

Am 02.08.2012 16:52, schrieb Tito Latini:
> I'm not ubuntullo but if you use pulseaudio, there is the `pulse'
> plugin for alsa. You can write a `.asoundrc' file in your HOME
> directory with
>
> pcm.!default {
>          type pulse
> }
>
> ctl.!default {
>          type pulse
> }
>
> It uses the default pulse sink (you can change it at runtime).
> Without pulseaudio, you can see the number of your card
>
>    cat /proc/asound/cards
>
> and the lines for .asoundrc are
>
> pcm.!default {
>          type hw
>          card YOUR_CARD_NUMBER
> }
>
> ctl.!default {
>          type hw
>          card YOUR_CARD_NUMBER
> }
>
> tito
>
> On Thu, Aug 02, 2012 at 03:27:23PM +0200, joachim heintz wrote:
>> this is a bit off topic, but perhaps one of the linux people here can help.
>>
>> i want to set my emu0202 usb soundcard to the primary alsa device, so
>> that it can be called as -odac from csound.
>>
>> in usual ubuntu, this is easy to do with the gnome volume control. there
>> is a switch for selecting the primary device.
>>
>> now i am using ubuntu studio (12.04), and i can't find a switch like
>> this in the pulse audio volume control (pavucontrol), or anywhere else.
>>
>> does anyone know how to do this? is there perhaps any simple command?
>>
>> thanks in advance -
>>
>> 	joachim
>
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>

Date2012-08-02 16:56
FromJustin Smith
SubjectRe: [Csnd] how to set a device to -odac in ubuntu studio?
there are gui tools, but when all else fails:

run pacmd (or better yet run 'rlwrap pacmd', which gives readline
scrollback, history between sessions and command editing)

list_sinks -> this will list all plugin instances that pulseaudio can
use as outputs, one of these will be the alsa-device plugin, and will
match the card you want
set_default_sink  -> where n is the integer preceding the card you
wanted in the previously mentioned sink list

I think there should be a way to pick what app goes to what sink on a
per-app basis (help within pacmd displays a list of valid commands,
but I am not seeing the right thing before my morning coffee).

On Thu, Aug 2, 2012 at 8:50 AM, joachim heintz  wrote:
> yes, ubuntu studio uses pulseaudio, so the plugin is there.
> but *how* can i change the default pulse sink at runtime?
> thanks -
>         joachim
>
> Am 02.08.2012 16:52, schrieb Tito Latini:
>
>> I'm not ubuntullo but if you use pulseaudio, there is the `pulse'
>> plugin for alsa. You can write a `.asoundrc' file in your HOME
>> directory with
>>
>> pcm.!default {
>>          type pulse
>> }
>>
>> ctl.!default {
>>          type pulse
>> }
>>
>> It uses the default pulse sink (you can change it at runtime).
>> Without pulseaudio, you can see the number of your card
>>
>>    cat /proc/asound/cards
>>
>> and the lines for .asoundrc are
>>
>> pcm.!default {
>>          type hw
>>          card YOUR_CARD_NUMBER
>> }
>>
>> ctl.!default {
>>          type hw
>>          card YOUR_CARD_NUMBER
>> }
>>
>> tito
>>
>> On Thu, Aug 02, 2012 at 03:27:23PM +0200, joachim heintz wrote:
>>>
>>> this is a bit off topic, but perhaps one of the linux people here can
>>> help.
>>>
>>> i want to set my emu0202 usb soundcard to the primary alsa device, so
>>> that it can be called as -odac from csound.
>>>
>>> in usual ubuntu, this is easy to do with the gnome volume control. there
>>> is a switch for selecting the primary device.
>>>
>>> now i am using ubuntu studio (12.04), and i can't find a switch like
>>> this in the pulse audio volume control (pavucontrol), or anywhere else.
>>>
>>> does anyone know how to do this? is there perhaps any simple command?
>>>
>>> thanks in advance -
>>>
>>>         joachim
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>

Date2012-08-02 16:59
FromJustin Smith
SubjectRe: [Csnd] how to set a device to -odac in ubuntu studio?
ugh, like I said, no coffee yet

the commands are:
list-sinks
set-default-sink

notice dash instead of underscore

On Thu, Aug 2, 2012 at 8:56 AM, Justin Smith  wrote:
> there are gui tools, but when all else fails:
>
> run pacmd (or better yet run 'rlwrap pacmd', which gives readline
> scrollback, history between sessions and command editing)
>
> list_sinks -> this will list all plugin instances that pulseaudio can
> use as outputs, one of these will be the alsa-device plugin, and will
> match the card you want
> set_default_sink  -> where n is the integer preceding the card you
> wanted in the previously mentioned sink list
>
> I think there should be a way to pick what app goes to what sink on a
> per-app basis (help within pacmd displays a list of valid commands,
> but I am not seeing the right thing before my morning coffee).
>
> On Thu, Aug 2, 2012 at 8:50 AM, joachim heintz  wrote:
>> yes, ubuntu studio uses pulseaudio, so the plugin is there.
>> but *how* can i change the default pulse sink at runtime?
>> thanks -
>>         joachim
>>
>> Am 02.08.2012 16:52, schrieb Tito Latini:
>>
>>> I'm not ubuntullo but if you use pulseaudio, there is the `pulse'
>>> plugin for alsa. You can write a `.asoundrc' file in your HOME
>>> directory with
>>>
>>> pcm.!default {
>>>          type pulse
>>> }
>>>
>>> ctl.!default {
>>>          type pulse
>>> }
>>>
>>> It uses the default pulse sink (you can change it at runtime).
>>> Without pulseaudio, you can see the number of your card
>>>
>>>    cat /proc/asound/cards
>>>
>>> and the lines for .asoundrc are
>>>
>>> pcm.!default {
>>>          type hw
>>>          card YOUR_CARD_NUMBER
>>> }
>>>
>>> ctl.!default {
>>>          type hw
>>>          card YOUR_CARD_NUMBER
>>> }
>>>
>>> tito
>>>
>>> On Thu, Aug 02, 2012 at 03:27:23PM +0200, joachim heintz wrote:
>>>>
>>>> this is a bit off topic, but perhaps one of the linux people here can
>>>> help.
>>>>
>>>> i want to set my emu0202 usb soundcard to the primary alsa device, so
>>>> that it can be called as -odac from csound.
>>>>
>>>> in usual ubuntu, this is easy to do with the gnome volume control. there
>>>> is a switch for selecting the primary device.
>>>>
>>>> now i am using ubuntu studio (12.04), and i can't find a switch like
>>>> this in the pulse audio volume control (pavucontrol), or anywhere else.
>>>>
>>>> does anyone know how to do this? is there perhaps any simple command?
>>>>
>>>> thanks in advance -
>>>>
>>>>         joachim
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>

Date2012-08-02 18:03
Fromjoachim heintz
SubjectRe: [Csnd] how to set a device to -odac in ubuntu studio?
this was exactly what i was looking for!!!
works perfectly - many thanks
	joachim


Am 02.08.2012 17:59, schrieb Justin Smith:
> ugh, like I said, no coffee yet
>
> the commands are:
> list-sinks
> set-default-sink
>
> notice dash instead of underscore
>
> On Thu, Aug 2, 2012 at 8:56 AM, Justin Smith  wrote:
>> there are gui tools, but when all else fails:
>>
>> run pacmd (or better yet run 'rlwrap pacmd', which gives readline
>> scrollback, history between sessions and command editing)
>>
>> list_sinks -> this will list all plugin instances that pulseaudio can
>> use as outputs, one of these will be the alsa-device plugin, and will
>> match the card you want
>> set_default_sink  -> where n is the integer preceding the card you
>> wanted in the previously mentioned sink list
>>
>> I think there should be a way to pick what app goes to what sink on a
>> per-app basis (help within pacmd displays a list of valid commands,
>> but I am not seeing the right thing before my morning coffee).
>>
>> On Thu, Aug 2, 2012 at 8:50 AM, joachim heintz  wrote:
>>> yes, ubuntu studio uses pulseaudio, so the plugin is there.
>>> but *how* can i change the default pulse sink at runtime?
>>> thanks -
>>>          joachim
>>>
>>> Am 02.08.2012 16:52, schrieb Tito Latini:
>>>
>>>> I'm not ubuntullo but if you use pulseaudio, there is the `pulse'
>>>> plugin for alsa. You can write a `.asoundrc' file in your HOME
>>>> directory with
>>>>
>>>> pcm.!default {
>>>>           type pulse
>>>> }
>>>>
>>>> ctl.!default {
>>>>           type pulse
>>>> }
>>>>
>>>> It uses the default pulse sink (you can change it at runtime).
>>>> Without pulseaudio, you can see the number of your card
>>>>
>>>>     cat /proc/asound/cards
>>>>
>>>> and the lines for .asoundrc are
>>>>
>>>> pcm.!default {
>>>>           type hw
>>>>           card YOUR_CARD_NUMBER
>>>> }
>>>>
>>>> ctl.!default {
>>>>           type hw
>>>>           card YOUR_CARD_NUMBER
>>>> }
>>>>
>>>> tito
>>>>
>>>> On Thu, Aug 02, 2012 at 03:27:23PM +0200, joachim heintz wrote:
>>>>>
>>>>> this is a bit off topic, but perhaps one of the linux people here can
>>>>> help.
>>>>>
>>>>> i want to set my emu0202 usb soundcard to the primary alsa device, so
>>>>> that it can be called as -odac from csound.
>>>>>
>>>>> in usual ubuntu, this is easy to do with the gnome volume control. there
>>>>> is a switch for selecting the primary device.
>>>>>
>>>>> now i am using ubuntu studio (12.04), and i can't find a switch like
>>>>> this in the pulse audio volume control (pavucontrol), or anywhere else.
>>>>>
>>>>> does anyone know how to do this? is there perhaps any simple command?
>>>>>
>>>>> thanks in advance -
>>>>>
>>>>>          joachim
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>               https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>

Date2012-08-02 18:10
FromJustin Smith
SubjectRe: [Csnd] how to set a device to -odac in ubuntu studio?
This method can be very useful if you want pulseaudio to use jack as
it's sink (via the pulseaudio-jack-sink module "load-module
pulsaudio-jack-sink"). This way apps that want lower latency can use
jack directly, and apps that want the flexibility of pulseaudio and
don't mind the added latency can go through pulse and still go out to
the same output.

On Thu, Aug 2, 2012 at 10:03 AM, joachim heintz  wrote:
> this was exactly what i was looking for!!!
> works perfectly - many thanks
>         joachim
>
>
> Am 02.08.2012 17:59, schrieb Justin Smith:
>
>> ugh, like I said, no coffee yet
>>
>> the commands are:
>> list-sinks
>> set-default-sink
>>
>> notice dash instead of underscore
>>
>> On Thu, Aug 2, 2012 at 8:56 AM, Justin Smith  wrote:
>>>
>>> there are gui tools, but when all else fails:
>>>
>>> run pacmd (or better yet run 'rlwrap pacmd', which gives readline
>>> scrollback, history between sessions and command editing)
>>>
>>> list_sinks -> this will list all plugin instances that pulseaudio can
>>> use as outputs, one of these will be the alsa-device plugin, and will
>>> match the card you want
>>> set_default_sink  -> where n is the integer preceding the card you
>>> wanted in the previously mentioned sink list
>>>
>>> I think there should be a way to pick what app goes to what sink on a
>>> per-app basis (help within pacmd displays a list of valid commands,
>>> but I am not seeing the right thing before my morning coffee).
>>>
>>> On Thu, Aug 2, 2012 at 8:50 AM, joachim heintz 
>>> wrote:
>>>>
>>>> yes, ubuntu studio uses pulseaudio, so the plugin is there.
>>>> but *how* can i change the default pulse sink at runtime?
>>>> thanks -
>>>>          joachim
>>>>
>>>> Am 02.08.2012 16:52, schrieb Tito Latini:
>>>>
>>>>> I'm not ubuntullo but if you use pulseaudio, there is the `pulse'
>>>>> plugin for alsa. You can write a `.asoundrc' file in your HOME
>>>>> directory with
>>>>>
>>>>> pcm.!default {
>>>>>           type pulse
>>>>> }
>>>>>
>>>>> ctl.!default {
>>>>>           type pulse
>>>>> }
>>>>>
>>>>> It uses the default pulse sink (you can change it at runtime).
>>>>> Without pulseaudio, you can see the number of your card
>>>>>
>>>>>     cat /proc/asound/cards
>>>>>
>>>>> and the lines for .asoundrc are
>>>>>
>>>>> pcm.!default {
>>>>>           type hw
>>>>>           card YOUR_CARD_NUMBER
>>>>> }
>>>>>
>>>>> ctl.!default {
>>>>>           type hw
>>>>>           card YOUR_CARD_NUMBER
>>>>> }
>>>>>
>>>>> tito
>>>>>
>>>>> On Thu, Aug 02, 2012 at 03:27:23PM +0200, joachim heintz wrote:
>>>>>>
>>>>>>
>>>>>> this is a bit off topic, but perhaps one of the linux people here can
>>>>>> help.
>>>>>>
>>>>>> i want to set my emu0202 usb soundcard to the primary alsa device, so
>>>>>> that it can be called as -odac from csound.
>>>>>>
>>>>>> in usual ubuntu, this is easy to do with the gnome volume control.
>>>>>> there
>>>>>> is a switch for selecting the primary device.
>>>>>>
>>>>>> now i am using ubuntu studio (12.04), and i can't find a switch like
>>>>>> this in the pulse audio volume control (pavucontrol), or anywhere
>>>>>> else.
>>>>>>
>>>>>> does anyone know how to do this? is there perhaps any simple command?
>>>>>>
>>>>>> thanks in advance -
>>>>>>
>>>>>>          joachim
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>> "unsubscribe
>>>>> csound"
>>>>>
>>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>

Date2012-08-03 00:54
FromAdam Puckett
SubjectRe: [Csnd] how to set a device to -odac in ubuntu studio?
Justin, where there is no coffee there is always Orca. ;)

On 8/2/12, Justin Smith  wrote:
> This method can be very useful if you want pulseaudio to use jack as
> it's sink (via the pulseaudio-jack-sink module "load-module
> pulsaudio-jack-sink"). This way apps that want lower latency can use
> jack directly, and apps that want the flexibility of pulseaudio and
> don't mind the added latency can go through pulse and still go out to
> the same output.
>
> On Thu, Aug 2, 2012 at 10:03 AM, joachim heintz 
> wrote:
>> this was exactly what i was looking for!!!
>> works perfectly - many thanks
>>         joachim
>>
>>
>> Am 02.08.2012 17:59, schrieb Justin Smith:
>>
>>> ugh, like I said, no coffee yet
>>>
>>> the commands are:
>>> list-sinks
>>> set-default-sink
>>>
>>> notice dash instead of underscore
>>>
>>> On Thu, Aug 2, 2012 at 8:56 AM, Justin Smith 
>>> wrote:
>>>>
>>>> there are gui tools, but when all else fails:
>>>>
>>>> run pacmd (or better yet run 'rlwrap pacmd', which gives readline
>>>> scrollback, history between sessions and command editing)
>>>>
>>>> list_sinks -> this will list all plugin instances that pulseaudio can
>>>> use as outputs, one of these will be the alsa-device plugin, and will
>>>> match the card you want
>>>> set_default_sink  -> where n is the integer preceding the card you
>>>> wanted in the previously mentioned sink list
>>>>
>>>> I think there should be a way to pick what app goes to what sink on a
>>>> per-app basis (help within pacmd displays a list of valid commands,
>>>> but I am not seeing the right thing before my morning coffee).
>>>>
>>>> On Thu, Aug 2, 2012 at 8:50 AM, joachim heintz 
>>>> wrote:
>>>>>
>>>>> yes, ubuntu studio uses pulseaudio, so the plugin is there.
>>>>> but *how* can i change the default pulse sink at runtime?
>>>>> thanks -
>>>>>          joachim
>>>>>
>>>>> Am 02.08.2012 16:52, schrieb Tito Latini:
>>>>>
>>>>>> I'm not ubuntullo but if you use pulseaudio, there is the `pulse'
>>>>>> plugin for alsa. You can write a `.asoundrc' file in your HOME
>>>>>> directory with
>>>>>>
>>>>>> pcm.!default {
>>>>>>           type pulse
>>>>>> }
>>>>>>
>>>>>> ctl.!default {
>>>>>>           type pulse
>>>>>> }
>>>>>>
>>>>>> It uses the default pulse sink (you can change it at runtime).
>>>>>> Without pulseaudio, you can see the number of your card
>>>>>>
>>>>>>     cat /proc/asound/cards
>>>>>>
>>>>>> and the lines for .asoundrc are
>>>>>>
>>>>>> pcm.!default {
>>>>>>           type hw
>>>>>>           card YOUR_CARD_NUMBER
>>>>>> }
>>>>>>
>>>>>> ctl.!default {
>>>>>>           type hw
>>>>>>           card YOUR_CARD_NUMBER
>>>>>> }
>>>>>>
>>>>>> tito
>>>>>>
>>>>>> On Thu, Aug 02, 2012 at 03:27:23PM +0200, joachim heintz wrote:
>>>>>>>
>>>>>>>
>>>>>>> this is a bit off topic, but perhaps one of the linux people here
>>>>>>> can
>>>>>>> help.
>>>>>>>
>>>>>>> i want to set my emu0202 usb soundcard to the primary alsa device,
>>>>>>> so
>>>>>>> that it can be called as -odac from csound.
>>>>>>>
>>>>>>> in usual ubuntu, this is easy to do with the gnome volume control.
>>>>>>> there
>>>>>>> is a switch for selecting the primary device.
>>>>>>>
>>>>>>> now i am using ubuntu studio (12.04), and i can't find a switch like
>>>>>>> this in the pulse audio volume control (pavucontrol), or anywhere
>>>>>>> else.
>>>>>>>
>>>>>>> does anyone know how to do this? is there perhaps any simple
>>>>>>> command?
>>>>>>>
>>>>>>> thanks in advance -
>>>>>>>
>>>>>>>          joachim
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>
>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>> "unsubscribe
>>>>>> csound"
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>> "unsubscribe
>>>>> csound"
>>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>

Date2012-08-05 16:04
FromAndres Cabrera
SubjectRe: [Csnd] how to set a device to -odac in ubuntu studio?
Hi,

Yes, this is what I do, I have Qjackctl do this when the jack server
starts, so pulseaudio gets automatically routed through jack when it
starts (I think this might not be necessary on more recent versions of
pulseaudio?).

Cheers,
Andrés

On Thu, Aug 2, 2012 at 10:10 AM, Justin Smith  wrote:
> This method can be very useful if you want pulseaudio to use jack as
> it's sink (via the pulseaudio-jack-sink module "load-module
> pulsaudio-jack-sink"). This way apps that want lower latency can use
> jack directly, and apps that want the flexibility of pulseaudio and
> don't mind the added latency can go through pulse and still go out to
> the same output.
>
> On Thu, Aug 2, 2012 at 10:03 AM, joachim heintz  wrote:
>> this was exactly what i was looking for!!!
>> works perfectly - many thanks
>>         joachim
>>
>>
>> Am 02.08.2012 17:59, schrieb Justin Smith:
>>
>>> ugh, like I said, no coffee yet
>>>
>>> the commands are:
>>> list-sinks
>>> set-default-sink
>>>
>>> notice dash instead of underscore
>>>
>>> On Thu, Aug 2, 2012 at 8:56 AM, Justin Smith  wrote:
>>>>
>>>> there are gui tools, but when all else fails:
>>>>
>>>> run pacmd (or better yet run 'rlwrap pacmd', which gives readline
>>>> scrollback, history between sessions and command editing)
>>>>
>>>> list_sinks -> this will list all plugin instances that pulseaudio can
>>>> use as outputs, one of these will be the alsa-device plugin, and will
>>>> match the card you want
>>>> set_default_sink  -> where n is the integer preceding the card you
>>>> wanted in the previously mentioned sink list
>>>>
>>>> I think there should be a way to pick what app goes to what sink on a
>>>> per-app basis (help within pacmd displays a list of valid commands,
>>>> but I am not seeing the right thing before my morning coffee).
>>>>
>>>> On Thu, Aug 2, 2012 at 8:50 AM, joachim heintz 
>>>> wrote:
>>>>>
>>>>> yes, ubuntu studio uses pulseaudio, so the plugin is there.
>>>>> but *how* can i change the default pulse sink at runtime?
>>>>> thanks -
>>>>>          joachim
>>>>>
>>>>> Am 02.08.2012 16:52, schrieb Tito Latini:
>>>>>
>>>>>> I'm not ubuntullo but if you use pulseaudio, there is the `pulse'
>>>>>> plugin for alsa. You can write a `.asoundrc' file in your HOME
>>>>>> directory with
>>>>>>
>>>>>> pcm.!default {
>>>>>>           type pulse
>>>>>> }
>>>>>>
>>>>>> ctl.!default {
>>>>>>           type pulse
>>>>>> }
>>>>>>
>>>>>> It uses the default pulse sink (you can change it at runtime).
>>>>>> Without pulseaudio, you can see the number of your card
>>>>>>
>>>>>>     cat /proc/asound/cards
>>>>>>
>>>>>> and the lines for .asoundrc are
>>>>>>
>>>>>> pcm.!default {
>>>>>>           type hw
>>>>>>           card YOUR_CARD_NUMBER
>>>>>> }
>>>>>>
>>>>>> ctl.!default {
>>>>>>           type hw
>>>>>>           card YOUR_CARD_NUMBER
>>>>>> }
>>>>>>
>>>>>> tito
>>>>>>
>>>>>> On Thu, Aug 02, 2012 at 03:27:23PM +0200, joachim heintz wrote:
>>>>>>>
>>>>>>>
>>>>>>> this is a bit off topic, but perhaps one of the linux people here can
>>>>>>> help.
>>>>>>>
>>>>>>> i want to set my emu0202 usb soundcard to the primary alsa device, so
>>>>>>> that it can be called as -odac from csound.
>>>>>>>
>>>>>>> in usual ubuntu, this is easy to do with the gnome volume control.
>>>>>>> there
>>>>>>> is a switch for selecting the primary device.
>>>>>>>
>>>>>>> now i am using ubuntu studio (12.04), and i can't find a switch like
>>>>>>> this in the pulse audio volume control (pavucontrol), or anywhere
>>>>>>> else.
>>>>>>>
>>>>>>> does anyone know how to do this? is there perhaps any simple command?
>>>>>>>
>>>>>>> thanks in advance -
>>>>>>>
>>>>>>>          joachim
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>
>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>> "unsubscribe
>>>>>> csound"
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>>> csound"
>>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>