Old 05-03-2021, 12:45 AM   #1
Kaxaze music
Human being with feelings
 
Kaxaze music's Avatar
 
Join Date: Sep 2020
Posts: 110
Default What is "PCM source source" and "filenamebuf"?

i was looking at this API Function



And i didn't Understood the meaning of "PCM_source source" and "string filenamebuf"
Kaxaze music is offline   Reply With Quote
Old 05-03-2021, 04:13 AM   #2
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,132
Default

The easiest way to find more info is do a web search for
"reaper.GetMediaSourceFileName("
you will find scripts made using it and see how it works:
Example here

and here this is helpful
https://www.extremraym.com/cloud/reascript-doc/
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
MusoBob is offline   Reply With Quote
Old 05-03-2021, 07:16 AM   #3
Kaxaze music
Human being with feelings
 
Kaxaze music's Avatar
 
Join Date: Sep 2020
Posts: 110
Default

Still can't find what i want to know

i was asking for the meaning of PCM_source and filenamebuf. and why this API Fuction needs both of them.
What should i type in place of them while writing some ccode
Kaxaze music is offline   Reply With Quote
Old 05-03-2021, 07:30 AM   #4
Alistair S
Human being with feelings
 
Alistair S's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 1,584
Default

You may be better off in the Reascript forum - https://forum.cockos.com/forumdisplay.php?f=3
Alistair S is offline   Reply With Quote
Old 05-03-2021, 11:34 AM   #5
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 10,571
Default

A PCM_source is a reference to e.g. an audio file so for audio takes in Reaper you can use it e.g. to get which audio file they're referencing (exception e.g. for MIDI takes which also have a PCM_source I think, but no underlying audio file obviously).

The string filenamebuf function argument is only needed if you use that function from C++ (and Python?), in Lua you can omit it with "" (see here in the linked script).

But yeah, these kind of questions better fit in the ReaScript forum.

Last edited by nofish; 05-03-2021 at 11:57 AM.
nofish 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 02:21 PM.


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