Access ProSound Playback Audio Quality

Access ProSound Playback Audio Quality

scott.hortonVFEUU
Observer Observer
544 Views
3 Replies
Message 1 of 4

Access ProSound Playback Audio Quality

scott.hortonVFEUU
Observer
Observer

Hi all.   Does anyone know the scripting syntax to access the Playback-audio quality of ProSound?

 

I want to create a script, that I can add to a button, that will change the ProSound's Audio Quality setting because for some reason, the audio goes mute on playback and the only way to restore it is to switch the Audio Quality setting between Low and Medium.  The attribute I'm trying to access is in the pic below.   

 

The scripting documentation for ProSound doesn't have any mention of the Audio Quality Playback.

 

Thanks Everyone!

 

 

audioquality.JPG

0 Likes
545 Views
3 Replies
Replies (3)
Message 2 of 4

denisT.MaxDoctor
Advisor
Advisor
if ProSound.isActive() do
(
	ProSound.open()
	d = windows.getchildhwnd 0 "ProSound"
	cc = windows.getchildrenhwnd d[1]
	cb = for c in cc where c[4] == "ComboBox" collect c

	/* Playback Quality */
	hwnd = cb[3][1] 
	/* Render Quality */
	-- hwnd = cb[6][1] 

	/* Quality Index (Low - 0, Medium - 1, High - 2)*/
	index = 2
	
	/*CB_SETCURSEL*/
	windows.SendMessage hwnd 0x014E index 0
	/*WM_LBUTTONDOWN*/
	windows.SendMessage hwnd 0x0201 0 -1
	/*WM_LBUTTONUP*/
	windows.SendMessage hwnd 0x0202 0 -1
		
	ProSound.close()
)

 

this is not a very elegant solution, but unfortunately there is no better one (at least I can't see)

0 Likes
Message 3 of 4

scott.hortonVFEUU
Observer
Observer

Hi Denis.

 

Elegant or not, thank you so much for the script!   I have manually change the audio about 20 times a day for my work b/c it seems to randomly mute itself and when I open a new scene.

 

Thank you! Thank you! Thank you!

0 Likes
Message 4 of 4

denisT.MaxDoctor
Advisor
Advisor

@scott.hortonVFEUU wrote:

Hi Denis.

 

I have manually change the audio about 20 times a day for my work b/c it seems to randomly mute itself and when I open a new scene.

 

Thank you! Thank you! Thank you!


if the issue is resolved with this method, mark the topic as solved. it helps other people on this forum to search and find answers to their questions

 

0 Likes