Programming :: Play Multiple Sound Streams On ALSA Dmix?
Jul 31, 2010
I'm having trouble getting ALSA to play multiple sound streams (multiple sounds at once). My code is running on an embedded ARM board using a AC97 sound. It will only play one without any mixing, I have to use pure ALSA as higher sound mixers are a nightmare to cross compile for ARM. I've tested my system with aplay for example
aplay -D plughw:0,1 bang.wav
works fine. So I tried dmix with
aplay -D plug:dmix Win.wav
That gave the following error
ALSA lib pcm_direct.c:1587snd_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
aplay: main:550: audio open error: Invalid argument
I checked asound with
/etc # cat asound.conf
pcm.EP93XX {
type hw
[code]....
Does this mean dmix will not work? Is there someway with the above setup I can play multiple sounds? I have to use the vendor ALSA build (so can't update ALSA), I can change the .confs however. Also because I'm cross compiling things like pulseaudio SDL are very difficult to get working, so I basically need to use the above ALSA. Is there anyway I can find if dmix exists on the system?
Should add aplay -L does show dmix ?
iec958 'cards.pcm.iec958'
spdif 'cards.pcm.iec958'
[code]....
View 3 Replies
ADVERTISEMENT
Sep 2, 2009
I'm using F11, KDE4. I have uninstalled Pulseaudio as it's unusable for my configuration (2 souncards, one of them a M Audio Delta 66). In order to not have Phonon blocking my M Audio Delta 66 card I need to use DMix. The built in ALSA dmix support doesn't show up in Phonon (System Settings -> Multimedia -> Device Preference) but I found out after some research how to add your own dmixer in the ~/.asoundrc file. Here are a few links:
http://noneus.de/?p=50
http://ptaff.ca/ptaffgnu/2009-07/124...dmix_et_phonon
http://amarok.kde.org/wiki/Setting_up_Dmix_for_ALSA
http://alsa.opensrc.org/DmixPlugin#7...e_ICE1712_chip
https://bugzilla.redhat.com/show_bug.cgi?id=474259
[Code]...
It might depend on the way it tries to access this device. When you hover the "DMixer" device it displays it will try the following devices: 1. ALSA: dmixer I think it should rather be ALSA: plug:dmixer But I can't figure out where you are able to configure this, does anyone know? I also wonder how I can remove the Pulseaudio entry in phonon. This is not important but still though PA is uninstalled. There is a Remove button but it's always disabled.
View 1 Replies
View Related
Jan 6, 2011
from the php or html webpages pages, can we find the direct link to the flv files. videos it is easy, ok, because it places with firefox the flv file into the temp. but what about all other streams of webcams, videos, music, ... so that one can use mplayer
View 1 Replies
View Related
Aug 24, 2010
I have Ubuntu Lucid. If i dont' mistake, it should be possible to hear several applications playing sound simultaneously, with ALSA. But if 1 app is already playing, then starting a second one give always "device is busy".
View 2 Replies
View Related
Mar 1, 2011
I have an old Aureal Vortex 2 (by Diamond Multimedia) installed in my system (C2Q @3.4GHz, P35 motherboard), along with the on-board audio. I'm using my PCI sound card with my headphones and running everything else off of the onboard audio. Since it seems to have better sound, I would use it a lot more, but it skips like crazy whenever I try to play sound through ALSA. It sounds like something is sporadically dropping audio frames. The onboard audio works fine with ALSA.
I'm running Kubuntu 10.10 (2.6.35-25, gcc 4.4.5). I think it worked fine with earlier software, but I can't remember for sure. I've tried mplayer and kaffeine (xine backend). When using mplayer, the experimental openal works perfectly, but the advanced options for kaffeine are pitiful. I'm looking at switching video players (probably xbmc or a frontend for mplayer), but I assume I won't be able to completely avoid ALSA. I've done a quick search on google, but if there was anything useful, it was choked out by decade old discussions on getting the card to work at all.
View 2 Replies
View Related
Jan 26, 2010
I should mention that the card actually works and I am able to play sound through all the different out pouts, analog, Adat etc. But what I am not able to do is to use the 8 channels digital adat outputs in 4 separate stereo channels.
If I try configuring my asound.conf with 4 direct pcm devices:
pcm.stereo1 {
type plug
ttable.0.0 1
ttable.1.1 1
slave.pcm "hw:0,0"
}
[Code]....
but when using dmix i am not able to play evan one of the stream, and the I receive an error saying:
ALSA lib pcm_direct.c:978:(snd1_pcm_direct_initialize_slave) unable to install hw params
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:608: audio open error: Device or resource busy
View 5 Replies
View Related
Jan 27, 2011
I've been having some issues with my sound card since I cannot play a sound with my current user. As a root user I can play sounds with "aplay" but as my regular user, I can't play anything
# aplay file.wav
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:564: audio open error: No such file or directory
# sudo aplay file.wav
Playing WAVE 'file.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
I have add my user to the audio group with no success
usermod -a -G audio myuser
View 2 Replies
View Related
May 31, 2010
how can I play audio (Mythtv - Play Music) simultaneously on two sound cards using ALSA drivers. I have two cards working well. One card is an onboard Intel cards, and the other card is a USB Audio card. Both cards are working well. I use the onboard Intel to output SPDIF to an amplified. The second USB card is bound to MPD service and it outputs an analog signal to a second amplified. I'd like to have the following configuration: Play to the default card with 5.1 passthrough, while the second card, connected to a second amplifier, plays an analog signal to the same audio played by Mythtv Play Music. In other words, I need to mix somehow and play the same audio on both cards.
Here is the list of cards:
root@mythtv:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
[code]...
View 2 Replies
View Related
Feb 3, 2010
I have stated that I use Pulse because ALSA fails to utilize more then one sound app. With ALSA if I watch a ..... vid in firerfox and soon open my music player the music player wont work unless I close off firefox. so I close off firefox but sometimes flash hangs the sound device hostage and I have to log out or kill something to make sure ALSA is freed up. So this is why I use pulse, it makes using more then one sound app at a time much easier, no hang ups at all. But there are a few apps that dont get along with pulse so there must be a way to configure alsa to use more then one sound app at a time. Do I have some compiling to do? Is it commandline? I am just curious what you anti pulse folks do to use more then one sound app at a time without the aid of pulse. it only mumbles about the differences between the multiple sound servers.
View 8 Replies
View Related
Mar 10, 2010
I've worked out how to get ALSA libasound code working for an application. However I can't workout how to get multiple sounds working at once. I can't seem to find any google examples of mutiple sounds. EG tune plays while pressing buttons makes clicks. I'm using an embedded board so need to use ALSA not an addon e.g. sdlmixer, jack, etc.
View 3 Replies
View Related
Sep 15, 2010
I am having problems listening to windows media streams from a particular website ( http://radiotime.com ) whenever I try to listen to a stream from firefox, the page loads then connects but i have no sound (i am actually trying to listen to those two chinese radios [URL].. I have the mplayerplug-in/gecko-mediaplayer installed, but it doesn't work, I tought that maybe there was a problem with that plugin so I deactivated it and installed the vlc plugin, after restarting firefox and trying to listen to those streams again, the vlc plugin tried to read it but it still would not work. I even tried to install the Silverlight Plug-In without any result, does anybody know what I could do to make windows media audio streams work ? it is wierd because i seem to be able to watch windows media video streams from other websites, but i cannot listen to any stream from this one, it used to work for mp3 streams only, but after desinstalling/resinstalling the mplayer plug in, it doesn't work anymore on this website. I can listen to those streams without any problem under windows 7, so the problem isn't coming from the website.
View 5 Replies
View Related
Feb 9, 2011
Amarok v2.3.1 won't play radio streams. How to configure proxy?
Lyrics fetching works and konqueror is also configured properly.
Using Gnome.
View 3 Replies
View Related
Sep 14, 2009
I just for the first time tried to play audio files on a CentOS 5.3 machine, but I noticed there is no xmms installed, and xmms doesn't seem to be available via yum either.
So, what is the easiest way of listening to mp3 files in CentOS 5.3 these days? Actually, I just want to be able to play music streams from an internet radio station.
View 4 Replies
View Related
Apr 29, 2011
Anyone else experiencing this problem?
I am on Kubuntu Natty 11.04 64 bit.
I try to play some internet streams but when gstreamer is used as the phonon backend, Amarok never plays them. With Xine or VLC backend looks like I have no problems...
Exactly below you can find two of the streams I am trying.
mms://a1251.l4434923250.c44349.g.lm.akamaistream.net/D/1251/44349/v0001/reflector:23250
mms://best.live24.gr/best1222?MSWMExt=.asf
View 8 Replies
View Related
Nov 8, 2010
since I had to re-install Slackware 13.1 on my netbook and I have now build Clementine on it. I can hear webstreams on my main machine, also running Slackware 13.1 and Clementine 0.5.When I try to play a stream I get this error message in the console:Quote:Couldn't create gstreamer source element for <streamURL>
View 3 Replies
View Related
Aug 23, 2013
Code handy which could play a beep/alert sound when somebody (any user) joins your LAN. Or as second-hand choice, if this is too hard, to play a beep when X terminal windows writes some output lines.
View 2 Replies
View Related
Nov 5, 2009
I'm trying to figure out what in the world is going on with my sound in OpenSuSE. I put in a brand new Audigy chipset soundcard and finally got some sound to come out of the speakers. I used the guide here: SDB:AudioTroubleshooting - openSUSE. to fix the permissions on my sound and am able to get sound-test to play sounds as well as connect to the sound device in my vmware and play sounds. That being said, I have terrible sound quality coming out. There is a lot of static sound like white noise and the volume of the actual sound played is very low compared to the noise. The sounds also distort somewhat.
I have tried the pulse audio change in the tutorial above also and have been searching around google. The only problem that I saw similar was a person who fixed the problem by updating KDE. I don't have KDE, I'm using Afterstep.
View 9 Replies
View Related
Jul 4, 2011
I'm trying to write a script that will either tail or watch /var/log/messages for the words
PHP Code:
signal Gone into alarm state
From this line below.
I would then like the script execute:
And have run at start up.
I'm stuck with grep-ping only one word
PHP Code:
View 14 Replies
View Related
Nov 6, 2010
I have installed xubuntu version 10. My sound card is a Yamaha dS-1S, and seems to be properly configured. Alsa mixer doesn't indicates any error. However, I can't manage to get any sound. I have checked that jacks are correctly plugged.
View 4 Replies
View Related
Mar 15, 2010
I'm running Kubuntu 9.10 X64, and am using ALSA for my sound. I have no trouble with sound: VLC, Adobe's Flash plugin, Java, etc. all work properly. When I run the Gnash standalone player, sound does not work at all.
When I run Gnash in a terminal, I get this:
Quote:
View 5 Replies
View Related
Oct 22, 2010
here's some background info: purchased a brand new netbook last week (samsung n130) and thought i'd set up a dual-boot to accompany the pre-installed windows xp sp3, and after a bit of research i decided upon installing ubuntu as my preferred linux os, which i believe at the time was and still is version 10.10.
but the problem is: when i attempt to watch flash videos (from videos for example) the video streams fine, but the audio is very jumpy and skips back and forth every few seconds. occasionally there are periods of say 10-15 seconds where the audio is ok. the problem exists on both firefox and chrome, and is exclusive to ubuntu. keep in mind that i'm an absolute novice when it comes to linux/ubuntu, etc.
View 9 Replies
View Related
Mar 24, 2010
After installing an external sound card, Im having some weird issues. The cards chipset is fully supported by suse, (CM8738) so I dont think thats the problem. Besides, I'm getting sound, but not in some applications. The system's sounds work just fine (login, logout themes) amarok plays without any problems, kaffeine, mplayer they all work flawlessly, in fact I can see the difference in quality between the onboard sound and my new card. However, no web browser is able to play any sound at all, firefox, opera or chrome, nothing,zip. Plus, vlc cant reproduce sound either, nor can smplayer.
I've tried switching channels on and off(muting)in kmixer and in alsamixer, on the console, with no results. I disabled the onboard audio on the bios before installing the new card, however my ati video card has integrated sound, which I cant disable.... I used to get this exact same problem randomly with the onboard sound, but I just had to go to kmixer and turn up the "pcm" channel volume, which was set to 0, and I had sound again on my browser. However this card's pcm channel is at max and turning it up or down affects the whole systems volume, not just the browser's. Is it better to just reinstall the sound system, if so how could I do that.
View 7 Replies
View Related
Apr 20, 2010
I have a problem passing a file descriptor from one process to another.
I have two processes A and B. Both are running in different network and
filesystem namespaces, so it is impossible to use unix domain sockets or
net sockets to pass a file descriptor from process A to process B.
The usage of STREAMS is also impossible, as you can see in
fixunix.com/unix/84093-streams-pipes-ioctl-i_sendfd.html
[quotation begin]
Linux doesn't have STREAMS, which are the System V way
of doing this task. ...
[quotation end]
Are there additional possibilities for file descriptor passing like
using named pipes or something like that or does anybody know
a good workaround for this problem ?
View 9 Replies
View Related
Jan 24, 2011
HOW to Go about the Linux Programming of DATA FUSION
Need to Multiplex ( Mux ) two Data Streams broadcast over Wireless and then Demultiplex (DeMux )on the Receiving side and give output on Individual O/p Screens. : DETAILS ::
My main PROJECT is,
1) First Stream :: GPS Stream
2) Video Stream :: Conversion of Analog Signal to Digital ( Using Compression Divx :: Not an issue )
Tx : Merging the Two Streams ( Mux ) and then Transmitting over Wireless as a Single Stream.
Rx : DeMux the Stream and Display GPS Data on Different O/P Screen and Video Stream on Different O/P Screen.
::Boundaries::
For now A Terminal on Both Ends can perform the Function with a OS in the Later Stages it will be embedded.
View 1 Replies
View Related
Jun 5, 2009
I am trying to figure out if there is a way to start a process, and while it is running, pass input to it as though it were a stream. Although the subject of this post mentions this question is "language-neutral", specifically, I am trying to do this in Common Lisp. Truly, I am looking for the principles behind the method of doing this, which seem to me as though they would be language neutral.
I have done Google searches, and found nothing relevant to my query. Without using sockets and IP communication, I would like to start a process (let's use the MySQL command-line client, for example) and then in my Common Lisp (CL) program, pass it input like so:
Code:
(format *mysql-client-instance* "SELECT * FROM some_table;")
Simply, how would I go about sending input to an active process as though it were a stream? My thinking is there has to be some way to do it - similar to the Expect superset of Tcl.
View 2 Replies
View Related
Apr 28, 2011
I have an Intel HDA audio card, and would like to record both my soundcard output and my microphone input at the same time. Getting to record my soundcard output (aka "Stereo Mix" or "What-U-Hear") is impossible for my soundcard without using the PulseAudio monitor, so I've set that up. Now I can record either the PulseAudio monitor for my soundcard, or the microphone input, but I don't know how to record both at the same time.
Currently, my .asoundrc looks like this:
Code:
pcm.pulse {
type pulse
}
ctl.pulse {
[code]....
So now I can choose either "pulse" as an input channel in, for example, Audacity or RecordMyDesktop applications (and then set in the PA volume control the actual channel which I want recorded), or choose "pulse_monitor" or "pulse_mic", in order to record either the PA monitor or the microphone, respectively.
I've read through the ALSA plugins reference, as well as the Asym and Dmix pages on ALSA wiki, but I'm still not sure how to put this together. I figured there should be a way either to route the microphone input into the ALSA output, and thus make the PA monitor "hear" what I speak into the microphone, or to make a completely new channel with both ALSA output and microphone input as "slaves", and then use that for recording.
View 4 Replies
View Related
Jun 25, 2011
When I had UBUNTU 10.04 sound WORKED!I have post several threads about this issue, I hope this would be the last one, My OS version is Ubuntu 11.04, my hardware is: Nvidia GTS 450 video Card EGS; and an integrated sound card reference: Via Azalia HDAC VT1708/A; After installing ubuntu I had no audio through my integrated sound card, I cant use my NVidia HDA card because I need for it an HDMI AUDIO, and I dont have any HDMI sound devices like dvd or TV. So I need to use my integrated default Via soundcard. I Updated the OS, nothing changed. After typing aplay -l it showed this:
aplay -l
**** Lista de PLAYBACK dispositivos hardware ****
tarjeta 0: NVidia [HDA NVidia], dispositivo 3: HDMI 0 [HDMI 0]
Subdispositivos: 1/1
Subdispositivo #0: subdevice #0
[code]....
View 1 Replies
View Related
Dec 19, 2008
I am unable to find a description of alsa's programing language, this sort of stuff:
[Code]...
I need to know what, for example, 'ttable' means and what is its syntax. This seems to be a state secret.
View 2 Replies
View Related
Oct 11, 2010
basically, sound will cut in and out. if i'm on videos, whenever sound cuts out, the video will continue for exactly two seconds and stop. sometimes i can reload the videos video, and it'll either play for two seconds without sound, or go normal, but usually for only a little time, not even a minute. similar problems for amarok, spotify and other applications using the sound card. this is the output when trying to restart the alsa demon
code:
root@muspellsheim:/etc/rc.d# /etc/rc.d/rc.alsa restart
loading alsa mixer settings: /usr/sbin/alsactl restore
unknown hardware: "ich4" "realtek alc650f" "ac97a:414c4723" "0x1462" "0x5770"
hardware is initialized using a guess method
/usr/sbin/alsactl: set_control:1255: failed to obtain info for control #11 (no such file or directory)
/usr/sbin/alsactl: set_control:1255: failed to obtain info for control #12 (no such file or directory)
output of /etc/modprobe.d/sound.conf
code:
root@muspellsheim:/etc/rc.d# cat /etc/modprobe.d/sound.conf
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
some of the utput of lspci -v
i've tried reconfiguring alsa by using the alsaconf application, which didn't help. the output from restarting the alsa demon, may indicate that the correct driver isn't loaded.
View 8 Replies
View Related
Dec 29, 2010
I am having problems getting sound to work. I have pasted my output from AlsaInfo.sh in hopes that someone can assist me. I have been able to fix this with the AlsaCompile scripts for Ubuntu. I am wondering if this is a distro related issue. If not I will gladly send to the alsa project.
[url]
- One sidenote that I will mention is the fact that I DO HEAR SOUND from the following command (and only this command)
Code:
View 5 Replies
View Related