Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Apr 2007
    Posts
    27

    Question squeezeslave and alsa

    Ralphy,
    I think the issue to use -o as device number for alsa, why not use alsa name. for me some time device 0 and deivce 2 they replace one of other.
    ralphy, why not use to use -o alsa:maduio12 as output option for squeezeslave

    0: GIGAPort AG: USB Audio (hw:0,0)
    1: USB AUDIO : USB Audio (hw:1,0)
    2: SiS SI7012: SiS SI7012 (hw:2,0)
    3: SiS SI7012: SiS SI7012 - MIC ADC (hw:2,1)
    4: M Audio Delta 1010LT: ICE1712 multi (hw:3,0)
    5: front
    6: surround40
    7: surround71
    8: iec958
    9: spdif
    10: maudio
    11: gigaport
    12: gigaoutput12
    13: gigaoutput34
    14: gigaoutput56
    15: gigaoutput78
    16: maduio12
    17: maudio34
    18: maudio56
    19: maudio78
    20: usb
    21: usbstereo
    22: default
    23: dmix

  2. #2
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,223
    It's on my todo list but haven't done much coding over the summer. It will most likely be including in the next release.

  3. #3
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,223
    I should have mentioned this thread which has a script you could use to find the name and extract the device number for squeezeslave. You need to change the pulse string to the device you use.

  4. #4
    Junior Member
    Join Date
    Apr 2007
    Posts
    27

    Question

    Hello Ralphy,

    i found how to make it in one line:

    ./squeezeslave localhost -o `./squeezeslave -L | grep gigaoutput12 |awk '{printf("%d\n",$1)}'` -mac 10:00:00:00:00:01 --retry

    i stuck with another strange issue.

    when i initialy do -L i get following list.
    Output devices:
    * 0: GIGAPort AG: USB Audio (hw:0,0)
    1: SiS SI7012: SiS SI7012 (hw:1,0)
    2: SiS SI7012: SiS SI7012 - MIC ADC (hw:1,1)
    3: USB AUDIO : USB Audio (hw:2,0)
    4: M Audio Delta 1010LT: ICE1712 multi (hw:3,0)
    5: front
    6: surround40
    7: surround71
    8: iec958
    9: spdif
    10: maudio
    11: gigaport
    12: gigaoutput12
    13: gigaoutput34
    14: gigaoutput56
    15: gigaoutput78
    16: maduio12
    17: maudio34
    18: maudio56
    19: maudio78
    20: usb
    21: usbstereo
    22: default
    23: dmix

    after i run
    /root/squeezeslave/bin/squeezeslave localhost -o `./squeezeslave -L | grep gigaoutput12 |awk '{printf("%d\n",$1)}'` -mac 10:00:00:00:00:01 --retry

    to allocate 1st slave.

    I do again squeezeslave -L and i get's new list but shorter.

    Output devices:
    * 0: SiS SI7012: SiS SI7012 (hw:1,0)
    1: SiS SI7012: SiS SI7012 - MIC ADC (hw:1,1)
    2: USB AUDIO : USB Audio (hw:2,0)
    3: M Audio Delta 1010LT: ICE1712 multi (hw:3,0)
    4: maudio
    5: gigaport
    6: gigaoutput12
    7: gigaoutput34
    8: gigaoutput56
    9: gigaoutput78
    10: maduio12
    11: maudio34
    12: maudio56
    13: maudio78
    14: usb
    15: usbstereo


    What the problem with ALSA?

  5. #5
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,223
    What does squeezeslave -V report?

  6. #6
    Junior Member
    Join Date
    Apr 2007
    Posts
    27

    Exclamation

    Quote Originally Posted by ralphy View Post
    What does squeezeslave -V report?
    squeeze:~/squeezeslave/bin# ./squeezeslave -V
    squeezeslave 0.9-82
    compile flags: linux portaudio:1899 debug signals daemon

    Squeezeslave is licensed free of charge. There is NO WARRANTY for
    the program. This program is provided "as is" without warranty of
    any kind, either expressed or implied, including, but not limited
    to, the implied warranties of merchantability and fitness for a
    particular purpose. The entire risk as to the quality and
    performance of the program is with you. Should the program prove
    defective, you assume the cost of all necessary servicing, repair
    or correction.

    Copyright (c) 2004-2007 Richard Titmuss,
    2008-2009 Duane Paddock.

  7. #7
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,223
    I've finally had a chance to look at this. The behaviour you're seeing is normal, at least based on my testing. The list of available devices changes because the 1st squeezeslave instance has already opened an audio device. The portaudio library function called to display the -L list doesn't return devices already in use.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •