The solution to this problem:

> 2015/01/08 18:39:55 [threads:1] Thread "alsa_out(default)" aborts with 
> exception Alsa error: No such device or address!
> 2015/01/08 18:39:56 [threads:3] Raised by primitive operation at file "", 
> line 0, characters 0-0
> Thread 4 killed on uncaught exception Alsa.Unknown_error(6)
> 2015/01/08 18:39:56 [main:3] Shutdown started!

When running something very basic like:

liquidsoap 'output.alsa(sine())'

Is to create a file /etc/asound.conf and to put this in it:

> pcm.!default {
>         type hw
>         card 0
> }
 
> ctl.!default {
>         type hw
>         card 0
> }


Why?

Because liquidsoap by default (and Airtime without any choice, you have to use 
it), uses the audio device "default".  And on some distributions (Ubuntu 12.04 
server in this case, but also Raspbian and others), there is no default device. 
You have to specify hw:0,0 or some similar thing.

Programs like ogg123 intelligently do this automatically if there's no default. 
Liquidsoap does not, so you MUST create the default device.

So, the above minimal /etc/asound.conf file adds a very minimal default device. 
Then, liquidsoap can access the device without having to provide a device 
argument to output.alsa (which would be an alternative solution as well).

-ken

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to