Old 03-24-2020, 03:00 AM   #1
des_griffiths
Human being with feelings
 
Join Date: Mar 2020
Posts: 2
Default PCM_sink Query format from ShowConfig

I'm writing a custom PCM_sink and would like to be able to query the Sample Rate and Channel configuration from the options of the Render/Batch conversion dialog windows.

This would need to happen before the PCM_Sink is created, so in the ShowConfig message loop. It would be useful if there was a way to be notified if the user actually changed these values too.

Is this possible?

Des
des_griffiths is offline   Reply With Quote
Old 03-24-2020, 12:25 PM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 9,500
Default

Hi,

check GetSetProjectInfo()/GetSetProjectInfo_String().
nofish is offline   Reply With Quote
Old 03-26-2020, 11:22 AM   #3
des_griffiths
Human being with feelings
 
Join Date: Mar 2020
Posts: 2
Default

Hello - this looks pretty useful - I can query the channel config, and I should be able to disable the project sample rate and use my own set, however calling :
GetSetProjectInfo(nullptr, "PROJECT_SRATE_USE", 0, true);

doesn't seem to disable the project sample rate.

and calling:
double rate = 12000.0;
GetSetProjectInfo(nullptr, "RENDER_SRATE", rate, true);

at WM_INITDIALOG doesn't end well.

Also I seem to get quite a few WM_USER + 1025 messages, but have been unable to find any references to the usage.

Can you enlighten me?
Kind Regards
Des
des_griffiths 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 01:00 PM.


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