Re: [Osalp-dev] Fwd: Asynchronous playback?
Status: Abandoned
Brought to you by:
daservis
|
From: Bruce F. <for...@tn...> - 2001-10-22 01:08:18
|
Robert Pittana wrote: > > 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? > > 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. Your right it will send the current file position to both files. I need to add something to the library that will allow one to either delay one channel or allow a file position adjustment of some sort. Let me think about this for a couple of days. > > 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? In an audio chain you would use the aflibAudioSampleRateCvt class. aflibConverter is a low level class and is difficult to use. When you mixed the two audio files together it should have adjusted both to the highest sample rate. It would have automatically inserted an aflibAudioSampleRateCvt class. There might be a problem when you add a channel dynamically. Please let me know if you did this dynamically and it did not work. If so it is a bug and needs to be fixed. Thanks, Bruce Forsberg |