PDA

View Full Version : Shortcut for WDM Analog Audio SAP


bryx
06-19-2008, 10:24 AM
Hi,
I am using KMP with my Asus MyCinema 7131 analog TV tuner card. Everything works just fine, inlcuding the SAP (second audio program) feature of my card (audio language).
Now, I also have a remote control which I map to keyboard shortcuts to control KMP, again, this all works fine.
What am I wining about then? ;) I'd like to be able to switch between the main audio and secondary audio from my remote control. The only way I can think of at the moment is to map that this function to a keyboard shortcut. This feature, however, seems to be buried deep inside the driver settings of the TV tuner and I am not sure KMP is even aware of this possibility (ie: it looks like it is showing a standard window provided by the driver).
Can anyone think of a way I can accomplish this? Is there anything like a macro, etc?
Would it be a hard thing to make KMP aware of this driver feature (in the same way it is aware of things like cable/antenna etc)??

Thanks!

[Primary Filtergraph]
0) - 713x BDA Analog TV Tuner
1) - 713x BDA Analog TV Audio <----- This filter has the option (see screenshot)
2) - 713x BDA Analog Xbar
3) - 713x BDA Analog Capture
4) - KMP Video Transform
5) - OverlayMixer
6) - KMP Audio Transform(Copy)
7) - DirectSound Audio Renderer
8) - Video Renderer

mouse
06-20-2008, 05:49 AM
Found a similar case here:
[Only registered and activated users can see links]

What about trying autoit?
[Only registered and activated users can see links]

If you can switch the audio successfully with autoit script, find a way to assign the script to your remote button.

bryx
07-17-2008, 12:43 PM
Hi,
First of all, thank you for the reply and the help. I read this a while ago and downloaded the autoit software but I honestly didn't make a real attempt until now; I think that at some level I was hoping for a "cleaner" solution.
Short story: it works, long story: it's not *quite* what I wanted but well, it'll have to do I suppose.
I have managed to create a simple autoit script that can select a given option in the audio filter window (posted at the end). I am finding it hard to make a single script toggle between two or more different options so I think I'll have to have two separate scripts and either implement the toggle elsewhere (I have the source of the remote->keyboard mapper) or simply have two separate buttons to directly select one of the two streams I am interested in.
The only way I could get the autoit script mapped to a keyboard shortcut is using a windows shortcut in the desktop (.lnk file). Is there a way to have the player call external programs instead? That would be nicer.

So, if I improve this somehow I'll repost. Ideally I would love to see a way to switch the stream with a direct call to the driver. If I have some time I'll take a peek at that but no promises ;)

Well, thanks again. Here's the script (really simple)

; Open context menu_ and wait for it to appear
MouseClick("right")
Sleep(500)

; Move up to the "Filters" submenu and open it
Send("{UP}")
Send("{UP}")
Send("{UP}")
Send("{UP}")
Send("{UP}")
Send("{UP}")
Send("{RIGHT}")

; Move down to the "713x BDA Analog TV Audio" filter and open it
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{DOWN}")
Send("{ENTER}")
Sleep(500)

; Click on the "Stereo" radio button and then on "OK"
ControlClick("713x BDA Analog TV Audio", "", "[ID:2011]")
Sleep(500)
ControlClick("713x BDA Analog TV Audio", "", "[TEXT:&OK]")