LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Setting Bluetooth Audio as Default Output (http://www.linuxquestions.org/questions/linux-software-2/setting-bluetooth-audio-as-default-output-4175413844/)

Vinter 06-28-2012 09:54 AM

Setting Bluetooth Audio as Default Output
 
Hi!

As my internal sound card recently broke, I acquired a set of Creative T12 Wireless Bluetooth speakers to use for watching the occasional show and so on at my desk. I have already gotten that to work by putting
Code:

Enable=Socket
into /etc/bluetooth/audio.conf and putting
Code:

pcm.bt {
    type plug
    slave {
        pcm {
            type bluetooth
            device 00:02:3C:26:38:3A
            profile "auto"
        } 
    } 

    hint {
        show on
        description "BT Audio"
    } 
}

ctl.bt {
  type bluetooth
}

into ~/.asoundrc. (Tbh, I don't exactly know why the structure is what it is. I just copied that snippet from the Web.) Playing audio with ALSA's -D switch or any other way of specifying the interface works well.

However, I'd like to define the speakers as my standard audio output, as not all applications come with an option to change the sound device. (Also, I don't want to go through the hassle of changing that every time before I can use a program.) But all I can find on the Web is to just define

Code:

pcm.!default {
  type bluetooth
  device 00:02:3C:26:38:3A
}

in ~/.asoundrc. Unfortunately, this only creates a "default" device I can play to using the -D switch or similar, and not a device that is actually used as a default. If I change the "bt" in the first snippet to "!default", it won't work either.

So, what am I doing wrong?

Thanks,
David


All times are GMT -5. The time now is 02:24 AM.