All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: AthlonRob <athlonrob@data.4t3.com>
Cc: Sagi Bashari <sagi@boom.org.il>, alsa-devel@lists.sourceforge.net
Subject: Re: Multiple Audio Streams
Date: Mon, 07 Oct 2002 19:52:40 +1000	[thread overview]
Message-ID: <3DA15968.1000205@superbug.demon.co.uk> (raw)
In-Reply-To: 1033859918.1118.24.camel@duron

AthlonRob wrote:

>On Sat, 2002-10-05 at 12:29, Sagi Bashari wrote:
>  
>
>>No answer on the users list, forwarding to devel.
>>    
>>
>
>Yes... let me go ahead and re-hash this for those who don't want to read
>through the earlier email.
>
>Sagi and I have two different soundcards with somewhat similar, yet
>different, problems.  (Ambigious enough?)
>
>His soundcard theoretically supports hardware mixing both in actual
>hardware and in the ALSA drivers, yet when he tries to open a second
>audio stream, the application attempting to do so simply hangs until the
>resource is free.  I think he said his card was a GTXP... I am
>unfamiliar with it.
>
>My soundcard also supports hardware mixing, but only in the hardware..
>not in the ALSA drivers.  Perhaps two threads would be ideal.  Oh well. 
>I'm running on an nForce board using its integrated audio.  The drivers
>nVidia provided (for OSS) simply consisted of an Intel i810 audio
>patch.  I guess y'all on the ALSA team were able to utilize the
>nVidia-released patch and do the same thing to the ALSA i810 drivers.
>
>Anyway... Sagi needs to know how to get the multiple streams working on
>his card, globally.
>
>I need to know if it is possible to get the nForce (using the patched
>i810 driver) to support hardware mixing so I can send many audio streams
>to it at once.  I have basically no programming experience, but may have
>a few friends who could help me if I had some clue of the how or the why
>of it.  Alternatively, since I cannot afford to send anybody hardware...
>if somebody was really interested in working on this, I could give you
>ssh access and work with me, here, physically... but I don't know how
>useful or feasable such a thing would be.
>
>Anyway... input on either or both topics by you guys who really know
>what you're doing would be much apperciated!  :-)
>
>Rob
>
>  
>
mypc: /proc/asound/card0/pcm0p# cat info
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: CS4231
name: Yamaha OPL3-SA23
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1   <- This tells you how many streams the sound card 
can handle in hardware at the same time.
E.g. Only one application at a time can use the card.

As you can see, my old sound card can only handle one stream at once in 
hardware. Alsa does not do any software mixing.
I also have a SB Live in another machine, the subdevices_avail is then 
32 because the SB Live can handle 32 streams at once in hardware.

There are other applications/tools you can use, one of which is "JACK" 
that allows for multiple audio streams mixed in software and lots of 
other cool stuff.

Does this help you at all ?

Cheers
James





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  reply	other threads:[~2002-10-07  9:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-05 19:29 [Fwd: Re: [Alsa-user] playng several files at the same time] Sagi Bashari
2002-10-05 23:18 ` Multiple Audio Streams AthlonRob
2002-10-07  9:52   ` James Courtier-Dutton [this message]
2002-10-07 10:24     ` Sagi Bashari
2002-10-07 11:44       ` Patrick Shirkey
2002-10-08 10:29       ` Frank Barknecht
2002-10-08  0:44     ` AthlonRob
2002-10-08  8:08       ` James Courtier-Dutton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DA15968.1000205@superbug.demon.co.uk \
    --to=james@superbug.demon.co.uk \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=athlonrob@data.4t3.com \
    --cc=sagi@boom.org.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.