AutoHotkey Community

It is currently May 27th, 2012, 3:27 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: October 26th, 2005, 12:47 am 
Offline

Joined: October 5th, 2004, 5:03 pm
Posts: 121
Location: Brasília, Brazil
The function SoundGetWaveVolume has not worked in Windows 2000

Code:
SoundGetWaveVolume, OutVar_volume

MsgBox, 0, My volume,  %OutVar_volume%, 1


My script used to worked very well in Windows 98.

I've already tried this code too, but it does not work either.
Code:
SoundGet, OutVar_volume2, WAVE, VOLUME

MsgBox, 0, My volume,  %OutVar_volume2%, 1


Thanks,
Lingoist


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 26th, 2005, 1:21 am 
Offline

Joined: September 25th, 2005, 4:31 pm
Posts: 610
Run the following script:

Code:
SoundGet, wave_volume, WAVE, VOLUME

MsgBox, ErrorLevel = [%ErrorLevel%]`n`nwave_volume = [%wave_volume%]
return


What are the ErrorLevel and wave_volume values reported in the MsgBox?

There is also the "COMPREHENSIVE EXAMPLE" on the SoundSet help page.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 26th, 2005, 1:42 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
That seems like a good approach.

More info: SoundGetWaveVolume does little more than call the built-in OS function waveOutGetVolume().. Therefore, it seems unlikely that anything can be done to resolve the issue.

In this case, it's probably an issue specific to your PC or hardware. However, if anyone else has had trouble with SoundGetWaveVolume on Windows 2000 or any other OS, please let me know.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 26th, 2005, 1:55 am 
Offline

Joined: October 5th, 2004, 5:03 pm
Posts: 121
Location: Brasília, Brazil
Thanks Chris,

As soon as I know any solution, I'll let you know.

Lingoist.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 26th, 2005, 1:59 am 
Offline

Joined: October 5th, 2004, 5:03 pm
Posts: 121
Location: Brasília, Brazil
shimanov,

When I run the script....
Code:
SoundGet, wave_volume, WAVE, VOLUME

MsgBox, ErrorLevel = [%ErrorLevel%]`n`nwave_volume = [%wave_volume%]
return


...the following message appears:
Quote:
ErrorLevel = [0]

wave_volume = [100.000000]


But 100.000000 does not correspond to the correct volume!

Thanks,
Lingoist


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 26th, 2005, 2:09 am 
Offline

Joined: September 25th, 2005, 4:31 pm
Posts: 610
So the command is functioning "normally". You should run the "COMPREHENSIVE EXAMPLE" on the SoundSet help page.

On my system, the example script reports two instances of the WAVE VOLUME component. This may be true for your system also. If that is the case, then it may be as simple as retrieving settings for a different instance.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 26th, 2005, 2:13 am 
Offline

Joined: October 5th, 2004, 5:03 pm
Posts: 121
Location: Brasília, Brazil
I've just uninstalled the OutPut Plug-in in Winamp 5.1 (Direct Sound output v2.4(d) [out_ds.dll]) and the script
Code:
SoundGet, Myvolume, WAVE, VOLUME

MsgBox %Myvolume%
worked very well!!

Thanks shimanov and Chris!
Lingoist


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group