Sign in to follow this  
Followers 0

Playing with Mixer Device

29 posts in this topic

Posted (edited)

I've been using this to make an mp3 player and it works really great for now. but is there a way of changing the volume of whats playing without affecting the system or wave volumes?

Edited by CFire

Share this post


Link to post
Share on other sites



Posted

Hey guys, i tried this on Windows 7 64bit and didnt notice anything going on.

1st 3 ended up with ton of errors and Mixer.au3 ended OK but nothing changed.

I would assume it didnt becuase code was based on a DllCall which usualy results capability problem

Share this post


Link to post
Share on other sites

Posted (edited)

Seems to be broken with latest version of Autoit?, Audio.au3 uses the same code and that does`nt work either, I`m guessing something to do with the dll calls as well.

Windows Xp SP3 Autoit v3.3.6.1

EDIT:

ok, got it working, replace udword here with dword

Func MixerOpen($uMxid = 0, $hwnd = 0, $instance = 0, $fdwOpen = 0)
    Local $x, $h_struct,$ret
    $h_struct = DllStructCreate("dword") ;since a local will be deleted on exit of function

also delete the ";" in line

Func MixerGetLineInfo($hmxobj, ByRef $line, $flag)
    Local $MIXERLine = DllStructCreate ("dword;dword;dword;dword;dword;dword;dword;dword;dword;dword;char[16];char[64];dword;dword;short;short;dword;char[32]")

That gets added cause of wordwrap I think.

Edited by Lakes

Share this post


Link to post
Share on other sites

Posted

n9mfk9

Can you give me a new link to the mixer.au3 , old doesn't work :-(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0