[Cs-dev] csoundGetModule()..
Date | 2013-04-30 16:04 |
From | Rory Walsh |
Subject | [Cs-dev] csoundGetModule().. |
Attachments | None None |
I have a few questions about this. For one, when I run it I get the following list:
Module 1: jack (audio) Module 2: pulse (audio) Module 3: devfile (midi) Module 4: alsaseq (midi) Module 5: alsa (midi) Fine, apart from the fact that I use -+rtaudio=alsa to get real time sound. Why is alsa not listed here? Dos that interface with pulse directly? Also, is there a re way to retrieve the hw configurations? The typical frontend developer will need these too in order to select the correct device or? |
Date | 2013-04-30 16:09 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] csoundGetModule().. |
No. I have no idea why. I'll check. On 30 Apr 2013, at 16:04, Rory Walsh wrote: > I have a few questions about this. For one, when I run it I get the following list: > > Module 1: jack (audio) > Module 2: pulse (audio) > Module 3: devfile (midi) > Module 4: alsaseq (midi) > Module 5: alsa (midi) > > > Fine, apart from the fact that I use -+rtaudio=alsa to get real time sound. Why is alsa not listed here? Dos that interface with pulse directly? Also, is there a re way to retrieve the hw configurations? The typical frontend developer will need these too in order to select the correct device or? > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-04-30 16:10 |
From | Rory Walsh |
Subject | Re: [Cs-dev] csoundGetModule().. |
Attachments | None None |
For what it's worth, I'm just using the code providing in the API docs to list them: char *name, *type; int n = 0; while(!csoundGetModule(csound, n++, &name, &type)) printf("Module %d: %s (%s) \n", n, name, type); On 30 April 2013 16:09, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: No. I have no idea why. I'll check. |
Date | 2013-04-30 16:10 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] csoundGetModule().. |
The alsa audio module should have been the last one on the list. I'll see why it did not show up. On 30 Apr 2013, at 16:04, Rory Walsh wrote: > I have a few questions about this. For one, when I run it I get the following list: > > Module 1: jack (audio) > Module 2: pulse (audio) > Module 3: devfile (midi) > Module 4: alsaseq (midi) > Module 5: alsa (midi) > > > Fine, apart from the fact that I use -+rtaudio=alsa to get real time sound. Why is alsa not listed here? Dos that interface with pulse directly? Also, is there a re way to retrieve the hw configurations? The typical frontend developer will need these too in order to select the correct device or? > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-04-30 16:15 |
From | Tim Neumann |
Subject | Re: [Cs-dev] csoundGetModule().. |
Attachments | None None |
Have you tried disabling pulseaudio? Afaik it slips between applications and the alsa drivers, maybe that is why the alsa module is not showing up. setup-pulseaudio --disable (SuSE only?) or start your application with pasuspender <application> 2013/4/30 Rory Walsh <rorywalsh@ear.ie>
|
Date | 2013-04-30 16:17 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] csoundGetModule().. |
Attachments | None None |
Try it again, I've changed the order, see if shows up. On 30 Apr 2013, at 16:10, Rory Walsh wrote: char *name, *type; int n = 0; while(!csoundGetModule(csound, n++, &name, &type)) printf("Module %d: %s (%s) \n", n, name, type); Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-04-30 16:31 |
From | Rory Walsh |
Subject | Re: [Cs-dev] csoundGetModule().. |
Attachments | None None |
Working now. Looks like it was adding alsa as a midi module before. So the other question about hw: configs? is there a way to get that info?
On 30 April 2013 16:17, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2013-04-30 16:38 |
From | Rory Walsh |
Subject | Re: [Cs-dev] csoundGetModule().. |
Attachments | None None |
One minute, alsa midi is not showing now when I plugin in my keyboard.. On 30 April 2013 16:31, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2013-04-30 16:53 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] csoundGetModule().. |
Attachments | None None |
But did you do -+rtmdi=alsa? On 30 Apr 2013, at 16:38, Rory Walsh wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-04-30 17:03 |
From | Rory Walsh |
Subject | Re: [Cs-dev] csoundGetModule().. |
Attachments | None None |
No? Oh, hold on, I thought this listed the available devices? Not that ones already selected? Or? I'm missing something? On 30 April 2013 16:53, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2013-04-30 17:10 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] csoundGetModule().. |
Attachments | None None |
No, it should list all the modules present in your OPCODE6DIR64. I don't know why plugin in the keyboard would have an effect. So you say that the list changes after you plugin the keyboard? That's odd. What are the values before & after? On 30 Apr 2013, at 17:03, Rory Walsh wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-04-30 17:17 |
From | Rory Walsh |
Subject | Re: [Cs-dev] csoundGetModule().. |
Attachments | None None |
Ah, I see, I totally misread that function. Is there a way to list all available devices? On 30 April 2013 17:10, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2013-04-30 17:21 |
From | Tim Neumann |
Subject | Re: [Cs-dev] csoundGetModule().. |
Attachments | None None |
http://csound.sourceforge.net/doc/html/group__RTAUDIOIO.html#gac7686b70bee6fe118cdabbc00397b2ae looks about right, i guess. 2013/4/30 Rory Walsh <rorywalsh@ear.ie>
|
Date | 2013-04-30 17:33 |
From | Rory Walsh |
Subject | Re: [Cs-dev] csoundGetModule().. |
Looks about right, only n is always zero when I run this code: int i,n = csoundAudioDevList(csound,NULL,1); CS_AUDIODEVICE *devs = (CS_AUDIODEVICE *) malloc(n*sizeof(CS_AUDIODEVICE)); csoundAudioDevList(csound,devs,1); for(i=0; i < n; i++) csound->Message(csound, " %d: %s (%s)\n", i, devs[i].device_id, devs[i].device_name); free(devs); Does this have to be called before any devices are opened? On 30 April 2013 17:21, Tim Neumann |
Date | 2013-04-30 19:18 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] csoundGetModule().. |
Unrelated, but it needs to be csoundMessage() and not csound->Message() If n is 0, there are no devices, which could mean you are running the dummy module, rather than alsa. In this case, you need to have -+rtaudio=alsa, if you don't have a portaudio devices (which is the default). Here, on OSX I get 0: dac0 (Built-in Output) 1: dac1 (Aggregate Device) 2: dac2 (output device) So, in summary: 1. csoundGetModule() to get the available modules. 2. select a module with -+rtaudio= 3. run csoundAudioDevList() to get the devices. On 30 Apr 2013, at 17:33, Rory Walsh wrote: > Looks about right, only n is always zero when I run this code: > > int i,n = csoundAudioDevList(csound,NULL,1); > CS_AUDIODEVICE *devs = (CS_AUDIODEVICE *) > malloc(n*sizeof(CS_AUDIODEVICE)); > csoundAudioDevList(csound,devs,1); > for(i=0; i < n; i++) > csound->Message(csound, " %d: %s (%s)\n", > i, devs[i].device_id, devs[i].device_name); > free(devs); > > Does this have to be called before any devices are opened? > > > On 30 April 2013 17:21, Tim Neumann |
Date | 2013-04-30 20:15 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] csoundGetModule().. |
Oh, I noticed the code is there but not implemented on alsa yet. I will look at it. Get portaudio and it will work. Victor On 30 Apr 2013, at 19:18, Victor Lazzarini wrote: > Unrelated, but it needs to be csoundMessage() and not csound->Message() > > If n is 0, there are no devices, which could mean you are running the dummy module, rather than alsa. In this case, > you need to have -+rtaudio=alsa, if you don't have a portaudio devices (which is the default). > > Here, on OSX I get > > 0: dac0 (Built-in Output) > 1: dac1 (Aggregate Device) > 2: dac2 (output device) > > So, in summary: > > 1. csoundGetModule() to get the available modules. > 2. select a module with -+rtaudio= > 3. run csoundAudioDevList() to get the devices. > > > > On 30 Apr 2013, at 17:33, Rory Walsh wrote: > >> Looks about right, only n is always zero when I run this code: >> >> int i,n = csoundAudioDevList(csound,NULL,1); >> CS_AUDIODEVICE *devs = (CS_AUDIODEVICE *) >> malloc(n*sizeof(CS_AUDIODEVICE)); >> csoundAudioDevList(csound,devs,1); >> for(i=0; i < n; i++) >> csound->Message(csound, " %d: %s (%s)\n", >> i, devs[i].device_id, devs[i].device_name); >> free(devs); >> >> Does this have to be called before any devices are opened? >> >> >> On 30 April 2013 17:21, Tim Neumann |
Date | 2013-04-30 22:58 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] csoundGetModule().. |
OK, this is working now for alsa. I've also made alsa the default on Linux. Victor On 30 Apr 2013, at 20:15, Victor Lazzarini wrote: > Oh, I noticed the code is there but not implemented on alsa yet. I will look at it. > Get portaudio and it will work. > > Victor > On 30 Apr 2013, at 19:18, Victor Lazzarini wrote: > >> Unrelated, but it needs to be csoundMessage() and not csound->Message() >> >> If n is 0, there are no devices, which could mean you are running the dummy module, rather than alsa. In this case, >> you need to have -+rtaudio=alsa, if you don't have a portaudio devices (which is the default). >> >> Here, on OSX I get >> >> 0: dac0 (Built-in Output) >> 1: dac1 (Aggregate Device) >> 2: dac2 (output device) >> >> So, in summary: >> >> 1. csoundGetModule() to get the available modules. >> 2. select a module with -+rtaudio= >> 3. run csoundAudioDevList() to get the devices. >> >> >> >> On 30 Apr 2013, at 17:33, Rory Walsh wrote: >> >>> Looks about right, only n is always zero when I run this code: >>> >>> int i,n = csoundAudioDevList(csound,NULL,1); >>> CS_AUDIODEVICE *devs = (CS_AUDIODEVICE *) >>> malloc(n*sizeof(CS_AUDIODEVICE)); >>> csoundAudioDevList(csound,devs,1); >>> for(i=0; i < n; i++) >>> csound->Message(csound, " %d: %s (%s)\n", >>> i, devs[i].device_id, devs[i].device_name); >>> free(devs); >>> >>> Does this have to be called before any devices are opened? >>> >>> >>> On 30 April 2013 17:21, Tim Neumann |