[wdmaudiodev] Multi channel recording offset??

  • From: Waldemar Haszlakiewicz <waldemar.haszlakiewicz@xxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 22 Apr 2003 19:19:11 +0200


Hi guys

I have a small question:

We've build a multi-channel AVstream driver with 1stereoIN & 1stereoOUT
per filterFactory and everything works nice as it should except
two things:

1st When recording multitrack the first stereo track is recorded on
time, but every next track is recorded a few ms late.
One problem I though was causing this is that our driver
copies one pin after another:
getAndLock streamPointer of pin 1, copy everything that is needed,
move offset , releaseAndUnlock streamPointer ->
getAndLock streamPointer of pin 2, ......


So if system would tag the samples after they have been
locked(or unlocked) this would cause that every pin would be represented
to the system a few ms one after another.
My solution was to give every streamPointer the same time
(in streamPointer->streamHeader->PresentationTime.Time) and set
streamPointer->StreamHeader->OptionsFlags |= KSSTREAM_HEADER_OPTIONSF_TIMEVALID;

But unfortunately this didn't work. As it looks the system doesn't
care about our time definition.
So the question here is if we need to add a timer to our driver, for
this to work?
Or is this problem caused by something else?



2nd We can record and play as many channels as we like (except the
upper problem) and everything works nice.
But there is an exception -> Sonar in WDM/KS mode doesn't want to work
whatever we do.
You press record or play and the cursor starts moving, but it stops
just the next moment at exactly 400ticks as that it is waiting for something.

The problem here is that if you enable channel monitoring you can
still here the sound as it should be and more you can still play
virtual synth. This means that Sonar wave engine is working ok.

So the only problem is the cursor.

Again one possible solution is that Sonar is missing the timer.
Any ideas?


Waldemar Haszlakiewicz

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.de/

Other related posts:

  • » [wdmaudiodev] Multi channel recording offset??