AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

switch between headphones <-> speakers
Goto page Previous  1, 2
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources
View previous topic :: View next topic  
Author Message
Vrokolos



Joined: 02 Apr 2008
Posts: 4

PostPosted: Thu Apr 03, 2008 5:12 am    Post subject: Reply with quote

Yes I know.. that's whay I'm looking at:
IDirectsound.SetSpeakerConfig
_________________
http://vrokolos.blogspot.com
Back to top
View user's profile Send private message
DirectSound
Guest





PostPosted: Thu Apr 03, 2008 5:16 am    Post subject: Reply with quote

Here it is.
Code:
setting := 4   ; 1: Headphone, 4: Stereo, 8: 7.1 Surround, etc.

DllCall("dsound\DirectSoundCreate8", "Uint", 0, "UintP", pds, "Uint", 0)
DllCall(NumGet(NumGet(1*pds)+36), "Uint", pds, "Uint", setting)
DllCall(NumGet(NumGet(1*pds)+ 8), "Uint", pds)
Back to top
wtg



Joined: 04 Oct 2006
Posts: 57
Location: Louisville, KY

PostPosted: Fri Apr 04, 2008 5:46 am    Post subject: Reply with quote

Thanks for providing that... works great! Always amazed what you can accomplish in AutoHotkey with so little code.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group