No ALSA sound

Unofficial support for the KXStudio Linux distribution and applications.
More info at http://kxstudio.linuxaudio.org/

Moderators: khz, MattKingUSA

Post Reply
rcarvalho
Established Member
Posts: 4
Joined: Mon May 25, 2009 11:51 am

No ALSA sound

Post by rcarvalho »

Hello,

After trying to use KXStudio first by upgrading from Ubuntu with Unity (I had some problems), then trying a couple of fresh installs, I had to ask for your help.

As I said, I've fresh installed KXStudio but I have no ALSA sound (Flash plugin, HTLM5 sound...). It was wierd that this problem doesn't happen on the liveCD or after the first boot. I discovered the problem appears when I update the configuration with KXStudio tool.

My current .asoundrc is the follwing:

# ------------------------------------------------------
# Custom asoundrc file for use with snd-aloop and JACK
#
# use it like this:
# env JACK_SAMPLE_RATE=44100 JACK_PERIOD_SIZE=1024 alsa_in (...)
#

# ------------------------------------------------------
# playback device
pcm.aloopPlayback {
type dmix
ipc_key 1
ipc_key_add_uid true
slave {
pcm "hw:Loopback,0,0"
format S32_LE
rate {
@func igetenv
vars [ JACK_SAMPLE_RATE ]
default 44100
}
period_size {
@func igetenv
vars [ JACK_PERIOD_SIZE ]
default 1024
}
buffer_size 4096
}
}

# capture device
pcm.aloopCapture {
type dsnoop
ipc_key 2
ipc_key_add_uid true
slave {
pcm "hw:Loopback,0,1"
format S32_LE
rate {
@func igetenv
vars [ JACK_SAMPLE_RATE ]
default 44100
}
period_size {
@func igetenv
vars [ JACK_PERIOD_SIZE ]
default 1024
}
buffer_size 4096
}
}

# duplex device
pcm.aloopDuplex {
type asym
playback.pcm "aloopPlayback"
capture.pcm "aloopCapture"
}

# ------------------------------------------------------
# default device
pcm.!default {
type plug
slave.pcm "aloopDuplex"
}

# ------------------------------------------------------
# alsa_in -j alsa_in -dcloop -q 1
pcm.cloop {
type dsnoop
ipc_key 3
ipc_key_add_uid true
slave {
pcm "hw:Loopback,1,0"
format S32_LE
rate {
@func igetenv
vars [ JACK_SAMPLE_RATE ]
default 44100
}
period_size {
@func igetenv
vars [ JACK_PERIOD_SIZE ]
default 1024
}
buffer_size 32768
}
}

# ------------------------------------------------------
# alsa_out -j alsa_out -dploop -q 1
pcm.ploop {
type plug
slave.pcm "hw:Loopback,1,1"
}

rcarvalho
Established Member
Posts: 4
Joined: Mon May 25, 2009 11:51 am

Re: No ALSA sound

Post by rcarvalho »

Sorry. After sending the file, I saw that no brigde was set... After setting it and rebooting, it is now working fine. It is strange because I'm almost sure it wasn't working with the ALSA -> Loop -> JACK running... Anyway. Now it's working and I'm sorry to bother.

PS: I feel like a noobie but I use Linux for a long time. I've already used UbuntuStudio for some time and now I'm trying KXStudio beacuse it seems to be better.

Post Reply