Re: [Osalp-dev] Fwd: Asynchronous playback?
Status: Abandoned
Brought to you by:
daservis
|
From: Robert P. <Rob...@am...> - 2001-10-22 14:44:32
|
Perhaps I am doing things incorrectly. In your example code I noticed that = you just copied the config from the input to the output. If I open two = inputs and use the config from the lower sampling rate input source as a = parameter into the output then all inputs play at that lower rate. This is = why I thought I needed to do some manual conversion. Attached is my source code for your perusal. Its just a mainline hack at = the moment until I test all the functionality I will need for the real = classes. Thanks! -Rob >>> Bruce Forsberg <for...@tn...> 10/21/01 08:08PM >>> Robert Pittana wrote: >=20 > 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. 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. >=20 > 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 |