Old 09-07-2019, 01:02 PM   #1
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default Question re: reaper.GetMediaSourceType

Hey guys,

syntax questions.

I found this very cool function that will return what the type of item it is... MIDI, Wav etc...

Code:
typebuf = reaper.GetMediaSourceType( source, typebuf )
I can get it to work but typing literally anything in quotes for "typebuf" in the parenthesis (example):

Code:
typebuf = reaper.GetMediaSourceType( source, "blabla")
It seems to work no matter what string I type in that place. If so, why even have that as an option? Am I missing something?

Thanks.
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 09-07-2019, 01:36 PM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Thonex View Post
It seems to work no matter what string I type in that place. If so, why even have that as an option? Am I missing something?
It's for purposes of the other programming languages, not used for Lua code.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 09-07-2019, 01:42 PM   #3
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
Default

Quote:
Originally Posted by Xenakios View Post
It's for purposes of the other programming languages, not used for Lua code.
Ahh... ok. So that makes sense. I didn't find any mention of that for that function in the API docs.

Thanks a bunch Xenakios!!
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex 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 03:15 AM.


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