I've implemented device selection by name (-n/--name) in 1.1-259.

There's a 'windows build on google code'
(http://squeezeslave.googlecode.com/files/squeezeslave-1.1-259-win.zip)
to try.

USAGE:

Original command line using -o to select the device by id.

Code:
--------------------
    squeezeslave-1.1-259 -R -D -w96 -o5
--------------------


On my windows machine the second audio output on my HD audio card id
changes from 5 to 6 when I plug in my usb headset.

Using the new -n option squeezeslave always uses the right device.

First get the device names using -L


Code:
--------------------
    squeezeslave-1.1-259 -L
  
  Output devices:
  * 3: (Windows DirectSound) Primary Sound Driver (0/0)
  4: (Windows DirectSound) Realtek HD Audio output (0/0)
  5: (Windows DirectSound) Realtek HD Audio 2nd output (0/0)
--------------------


Then replace the -o5 with -n and the device name surrounded by double
quotes.


Code:
--------------------
    squeezeslave-1.1-259 -R -D -w96 -n"Realtek HD Audio 2nd output"
--------------------


Make sure you do NOT include the (Windows DirectSound) and (0/0) in the
device name with -n/--name.

If a match is not found, squeezeslave will print a warning that the
device name was not found and use the default instead.
The default device is indicated by the * before the device id number.

You can test the name you're using with -L.  If the name is correct the
* will be printed beside the device name used with -n.


Code:
--------------------
    squeezeslave-1.1-259 -n"Realtek HD Audio 2nd output" -L
  Output devices:
  3: (Windows DirectSound) Primary Sound Driver (0/0)
  4: (Windows DirectSound) Realtek HD Audio output (0/0)
  * 5: (Windows DirectSound) Realtek HD Audio 2nd output (0/0)
--------------------


-- 
ralphy

Ralphy

*4*-Classics, *2*-Booms, *12*-Squeezeslaves
'Squeezeslave' (http://code.google.com/p/squeezeslave/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezeslave&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=83362

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to