Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 10-13-2014, 12:09 AM   #1
vtsaran
Human being with feelings
 
Join Date: Jan 2011
Posts: 64
Default Getting names of audio inputs and outputs through Reaper API

Hi.
In my plugin I would like to retrieve the actual name(s) of give audio inputs or outputs. I see such option exists for MIDI inputs and outputs via the GetMIDIInput and GetMIDIOutput API calls, but I cannot locate anything similar for audio inputs or outputs.
Am I missing something or the functionality is not available? If not, then why?
Could I request the addition of these functions to the API?

Thanks for any answers / pointers.
Vic
__________________
--- --- ---
Visit me at https://www.youtube.com/vtsaran
vtsaran is offline   Reply With Quote
Old 10-22-2014, 11:10 PM   #2
vtsaran
Human being with feelings
 
Join Date: Jan 2011
Posts: 64
Default

Since I haven't seen any reactions to this post, wanted to bump it up.
Someone, please?

Thanks,
Victor
__________________
--- --- ---
Visit me at https://www.youtube.com/vtsaran
vtsaran is offline   Reply With Quote
Old 10-28-2014, 12:40 PM   #3
msiren
Human being with feelings
 
Join Date: Jun 2012
Location: Jyväskylä, Finland
Posts: 8
Default

Quote:
Originally Posted by vtsaran View Post
Hi.
In my plugin I would like to retrieve the actual name(s) of give audio inputs or outputs. I see such option exists for MIDI inputs and outputs via the GetMIDIInput and GetMIDIOutput API calls, but I cannot locate anything similar for audio inputs or outputs.
Am I missing something or the functionality is not available? If not, then why?
Could I request the addition of these functions to the API?

Thanks for any answers / pointers.
Vic
Found these:
REAPERAPI_DECL const char* (*GetInputChannelName)(int idx);
REAPERAPI_DECL const char* (*GetOutputChannelName)(int idx);

I have no idea what they are for, but try and find out =)
Maybe we should vote for better Reaper API documentation from cockos team? Documenting API function at a time. When ever they have nothing to do or need a break from staring at the code they are working on (works for me doing something else for a while)
msiren is offline   Reply With Quote
Old 10-28-2014, 05:14 PM   #4
vtsaran
Human being with feelings
 
Join Date: Jan 2011
Posts: 64
Default

Thanks a lot for your response. I have seen these functions, however, the names do not necessarily suggest that I would be getting back device names.
I will try though.
WIll report here if I succeed!
__________________
--- --- ---
Visit me at https://www.youtube.com/vtsaran
vtsaran is offline   Reply With Quote
Old 10-29-2014, 11:04 PM   #5
vtsaran
Human being with feelings
 
Join Date: Jan 2011
Posts: 64
Default

[QUOTE=msiren;1421402]Found these:
REAPERAPI_DECL const char* (*GetInputChannelName)(int idx);
REAPERAPI_DECL const char* (*GetOutputChannelName)(int idx);

Thanks for pointing these functions out to me. From my first experiments, it seems like they should do the trick for what I need.
__________________
--- --- ---
Visit me at https://www.youtube.com/vtsaran
vtsaran is offline   Reply With Quote
Old 10-31-2014, 06:49 PM   #6
vtsaran
Human being with feelings
 
Join Date: Jan 2011
Posts: 64
Default

After a bit of fiddling around, it seems that GetOutputChannelName and GetInputChannelName functions do not completely satisfy my needs. They only seem to return channel names for the first device or for those channels preset by the user.
__________________
--- --- ---
Visit me at https://www.youtube.com/vtsaran
vtsaran is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.