Re: [Osalp-dev] Fwd: Asynchronous playback?
Status: Abandoned
                
                Brought to you by:
                
                    daservis
                    
                
            | 
      
      
      From: Robert P. <Rob...@am...> - 2001-10-19 16:46:43
      
     | 
| Yes it worked fine. Thanks Bruce. Now Im just fiddling with doing it =
dynamically. i.e Have one playing, then mix another in at some point, then =
another, then one stops and the others keep playing. I figure it'll take =
some accounting to keep track of the mix amp. Does the amp have to add up =
to 100 for all channels?=20
The main problem I am having now is that when I add the second input it =
starts playing that input from the current position of the first input =
which results in only the last half of the new input being played.
Also, if there a way to mix two inputs with different sampling rates and =
have them come out sounding right? At the moment setting the output =
configuration to the highest sampling makes the other one sound like the =
chipmonks. :) Do I use aflibConverter for this?
TIA,
-Rob
>>> Bruce Forsberg <for...@tn...> 10/19/01 12:14AM >>>
Robert Pittana wrote:
>=20
> Ok, so now Im figuring I can do it with the mixer class. But will it be =
possible to mix in a file while one is already playing. I guess it =
will.... I hope.
>=20
The mixer class should work just fine, if I understand your problem.
aflibFile ----+
              |----aflibAudioMixer---aflibDevFile
aflibFile ----+
This is how you would create the chain. With two file
formats. Both would be mixed and sent to the audio device.
See the audio programmers manual section 4.2.7 for an
example.
Bruce Forsberg
 |