Skip to contentSkip to conversation

Multiple PCM files

DISCUSSION Philipp Vollmer 3 participants 3 messages Jul 31, 2002

lore
Share & tools
lore
#1 lore raw
In reply to Philipp Vollmer

Exactly. I would prefer the second as if I needed to add a third, 4th its takes no effort and I don't reinvent the wheel as they say.

Does alsa support 2 or is this just JACK's.

The mathematics may be simple for 1 but why should it be done over and over again. An API is meant to take away repetitive annoyances ;)

Cheers

Nick

----- Original Message -----
From: "Philipp Vollmer" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, July 31, 2002 9:58 PM
Subject: Re: Multiple PCM files

Hello,

Maybe you're working at the same problem as me. At this point of time.
There are two possibilities:
1. Open one device with one handler and mix the two files with arimethic operations as they will be mixed by the sound card although.

2. Open one devices but with two handlers in two threads and write your pcm data to it.

regards

Philipp ( DO1YPV )

-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31

#0 lore raw

Hello,

Maybe you're working at the same problem as me. At this point of time.
There are two possibilities:
1. Open one device with one handler and mix the two files with arimethic operations as they will be mixed by the sound card although.

2. Open one devices but with two handlers in two threads and write your pcm data to it.

regards

Philipp ( DO1YPV )

-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1

#2 lore raw
In reply to Nick French
Quoted 4 lines

Exactly. I would prefer the second as if I needed to add a third, 4th its takes no effort and I don't reinvent the wheel as they say.

Does alsa support 2 or is this just JACK's.

No, ALSA does not support it *in general*. Some interfaces will work this way, some will not. In theory, the ALSA "share" device type will allow this, but apparently almost no-one has ever used it except its main author.

Quoted 2 lines

The mathematics may be simple for 1 but why should it be done over and over again. An API is meant to take away repetitive annoyances ;)

the mathematics, such as they are, consist of addition.

the real problems you face have to do with sample rate and sample bit width conversion, which are entirely different. i and others have said before that it would be nice if alsa-lib exposed the code it contains to do this stuff so that it could used in other contexts (not just hidden as part of "plug" or "plughw" device implementation.

--p

-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31