While playing an MP3 file using mpg123 (oss), I want to be able to hear
viavoice TTS output (which also goes via oss).

My GUS PnP which uses snd-card-interwave supports hardware mixing of up to
16 PCM channels.

I read at http://www.math.tu-berlin.de/~sbartels/alsa/devlow/pcm.html
that:
"A channel can have any number of subchannels. These represent slots for
client connections. If you have just one subchannel for playback and
capture, then exactly one application can open the pcm device for playback
and recording. If you have multiple subchannels, then alsa will support
multiple open on this channel."

/proc/pcm tells me that I have the following channels:
00-00: CS4231 : AMD InterWave rev B (chip) : playback 1 : capture 1
00-01: AMD InterWave : AMD InterWave rev B (synth) : playback 4

So I have several questions:
1. What is the difference between the PCM channels "CS4231" and "AMD
InterWave"?  It looks to me like I should be able to play back up to 4
simultaneous PCM streams provided I use subchannel 1, should I not?

2. If so, why, when I use "alsaplayer -d hw:0,1" do I get the error:
Unavailable hw params:
ACCESS:  RW_NONINTERLEAVED
FORMAT:  S8 U8 S16_LE U16_LE
SUBFORMAT:  STD
SAMPLE_BITS: [8 16]
FRAME_BITS: [8 32]
CHANNELS: [1 2]
RATE: [5510 48000]
PERIOD_TIME: (333 11894011)
PERIOD_SIZE: [16 65536]
PERIOD_BYTES: [64 131072]
PERIODS: [1 1024]
BUFFER_TIME: (333 11894011)
BUFFER_SIZE: [16 65536]
BUFFER_BYTES: [64 65536]
TICK_TIME: 10000
ERROR: failed to set fragment size/count. Exiting...

3. Why, when the interwave device supports hardware mixing of 16 PCM
channels, does the primary PCM device only have one subchannel (and
therefore only support 1 simultaneous open?  /proc/asound/card0/pcm0p/info
reports:
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: CS4231
name: AMD InterWave rev B (chip)
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1

4. What can I do to configure or change the interwave configuration so
that I can acomplish what I'm trying to do (being able to play just two
simultaneous PCM streams through OSS compatibility mode)?

-- 
-----------------------------------------------------------------------------
  Denis Cheong                                   |        `Today I am
  [EMAIL PROTECTED]                |     a small blue thing
                                                 |        Like a marble
                                                 |          or an eye'
                                                 |
                                                 |       - Suzanne Vega -
-----------------------------------------------------------------------------

_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to