Re: [Alsa-devel] PCM broken in ALSA CVS (on Linux 2.6.3)

2004-03-04 Thread Takashi Iwai
At Wed, 3 Mar 2004 21:53:11 + (GMT), Chris Rankin wrote: > > [Linux 2.6.3-SMP, single 933 MHz PIII, 1 GB RAM, > devfs, gcc-3.2.3] > > Hi, > > I have just installed the latest ALSA from CVS and > discovered that it has broken PCM playback. This is > what aplay gives me now: > > $ aplay /usr/

Re: [Alsa-devel] Where do I begin?

2004-03-04 Thread Takashi Iwai
At Thu, 4 Mar 2004 09:11:06 +0800, Tim Hollingsworth wrote: > > Hi > > I'm a bit of a newbie here. I'm trying to write a PCM application > using alsa 1.x. Firstly, is there an up to date howto or tutorial on > this? I am currently using the ALSA 0.9.0 HOWTO from the ALSA dev > page: > > ht

[Alsa-devel] Problem deducing buffer time with non-integer samplerate?

2004-03-04 Thread Arve Knudsen
Hi A PortAudio user has been experiencing a problem with his SB128 (Ensoniq AudioPCI driver), which we tracked down to a call to snd_pcm_hw_params_get_buffer_time returning -EINVAL. A dump of the current hw configuration space looks like this: ACCESS: MMAP_INTERLEAVED FORMAT: S16_LE SUBFORMAT

[Alsa-devel] PCM questions

2004-03-04 Thread Ove Kaaven
Okay, whoever says ALSA is greater than OSS, I'm trying to act on your assertions, so here are a few questions. I have the primary PCM configured with silence_threshold set to zero and silence_size set to MAXINT. This condition is documented as "The whole ring buffer is filled with silence at star

Re: [Alsa-devel] PCM questions

2004-03-04 Thread Jaroslav Kysela
On Thu, 4 Mar 2004, Ove Kaaven wrote: > Okay, whoever says ALSA is greater than OSS, I'm trying to act on your > assertions, so here are a few questions. > > I have the primary PCM configured with silence_threshold set to zero and > silence_size set to MAXINT. This condition is documented as "The

Re: [Alsa-devel] PCM questions

2004-03-04 Thread Ove Kaaven
tor, 04.03.2004 kl. 17.33 skrev Jaroslav Kysela: > The silence is filled at snd_pcm_start(). This mode is special one for > our direct plugins. I don't think that other code need to use this mode. Well, perhaps you don't think so, but the code we're trying to use here does work much like any "dire

Re: [Alsa-devel] PCM questions

2004-03-04 Thread Takashi Iwai
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

Re: [Alsa-devel] PCM questions

2004-03-04 Thread Jaroslav Kysela
On Thu, 4 Mar 2004, Ove Kaaven wrote: > tor, 04.03.2004 kl. 17.33 skrev Jaroslav Kysela: > > The silence is filled at snd_pcm_start(). This mode is special one for > > our direct plugins. I don't think that other code need to use this mode. > > Well, perhaps you don't think so, but the code we're

Re: [Alsa-devel] PCM questions

2004-03-04 Thread Takashi Iwai
At Thu, 4 Mar 2004 19:43:58 +0100 (CET), Jaroslav wrote: > > > > It is wavetable synthesizer API not PCM API. This part of ALSA is still > > > in the development phase. > > > > But when that gets fully developed, would I have to use the rawmidi API > > to do this then? > > I think that sequencer

Re: [Alsa-devel] PCM questions

2004-03-04 Thread Ove Kaaven
tor, 04.03.2004 kl. 19.43 skrev Jaroslav Kysela: > Not really. I don't know, what you're trying to do. The silence extension > can be used to silence played area automatically from the interrupt > contents. If you set "silence_threshold" and "silence_size" to > buffer_size, then the whole _unused

Re: [Alsa-devel] PCM questions

2004-03-04 Thread Ove Kaaven
tor, 04.03.2004 kl. 19.47 skrev Takashi Iwai: > 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. Hmm. I suspect that doing that would not be that much better than software mixing unless I can use arbitrary buffer siz

[Alsa-devel] yet another library question

2004-03-04 Thread jacqueslen
I've been told that meta events can't be handled by the sequencer, and thus midi doesn't have any mechanisms for creating them, apart from setting the tempo(I can understand this, since the sequencer doesn't care about lyrics or copyright). shouldn't the sequencer be able to handle a "MIDI chan

Re: [Alsa-devel] yet another library question

2004-03-04 Thread Tim Goetze
[EMAIL PROTECTED] >I've been told that meta events can't be handled by the sequencer, >and thus midi doesn't have any mechanisms for creating them, apart >from setting the tempo(I can understand this, since the sequencer >doesn't care about lyrics or copyright). shouldn't the sequencer be >able to