All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Ove Kaaven <ovek@transgaming.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: PCM questions
Date: Thu, 04 Mar 2004 19:47:04 +0100	[thread overview]
Message-ID: <s5hk720laaf.wl@alsa2.suse.de> (raw)
In-Reply-To: <1078416129.1865.868.camel@renegade>

At Thu, 04 Mar 2004 17:02:09 +0100,
Ove Kaaven wrote:
> 
> And for sound cards capable of hardware mixing, is there a way to have
> two PCMs that share a buffer, but can be still be started and stopped
> independently?

such a hardware also doesn't share the "buffer".
it supports the h/w mixing but each stream needs to have indepednet
buffer.

>  For example, if I've loaded an explosion sound into a PCM
> buffer, how can I start a lot of explosion sounds, without wasting a lot
> of RAM? Perhaps there's also a way to specify that this sound should be
> loaded into the sound card's onboard memory, instead of streamed from
> system RAM?

it sounds like wavetable function.  currently, it's designed for
MIDI-like apps, but it might be used for games, too.
anyway, it's under development (for a long long time)...

or, with PCM API, you can open several PCMs in a single application.
if the number of voices are limited, it won't be too heavy.


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

  parent reply	other threads:[~2004-03-04 18:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-04 16:02 PCM questions Ove Kaaven
2004-03-04 16:33 ` Jaroslav Kysela
2004-03-04 17:49   ` Ove Kaaven
2004-03-04 18:43     ` Jaroslav Kysela
2004-03-04 18:57       ` Takashi Iwai
2004-03-05  9:01         ` Giuliano Pochini
2004-03-05  9:00           ` Jaroslav Kysela
2004-03-05 12:46           ` James Wright
2004-03-04 19:54       ` Ove Kaaven
2004-03-06 10:10         ` Jaroslav Kysela
2004-03-06 15:45           ` Ove Kaaven
2004-03-04 18:47 ` Takashi Iwai [this message]
2004-03-04 20:05   ` Ove Kaaven
2004-03-17 11:20 ` undefined reference to `snd_pcm_hw_params_sizeof' Tim Hollingsworth
2004-03-17 11:20   ` Jaroslav Kysela

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=s5hk720laaf.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=ovek@transgaming.com \
    /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.