Author Topic: BASS_Mixer_StreamAddChannelEx()'s Start value  (Read 1185 times)

3delite

  • Posts: 925
Hi!

I want mix 2 streams together. I want to specify the 'mixing position'. I don't know that BASS_Mixer_StreamAddChannelEx()'s 'Start' value is in which chennel's measurement? Mixer stream's or source stream's? Mixer stream doesn't have a length so... ?



Ian @ un4seen

  • Administrator
  • Posts: 20848
Re: BASS_Mixer_StreamAddChannelEx()'s Start value
« Reply #1 on: 21 Jun '12 - 16:44 »
The BASS_Mixer_StreamAddChannelEx "start" value is based on the mixer's sample format. For example, if you wanted to delay the start of a source by 5 seconds, you could do this...

Code: [Select]
QWORD start=BASS_ChannelSeconds2Bytes(mixer, 5); // convert 5 seconds to bytes
BASS_Mixer_StreamAddChannelEx(mixer, source, 0, start, 0); // add the source to the mix

3delite

  • Posts: 925
Re: BASS_Mixer_StreamAddChannelEx()'s Start value
« Reply #2 on: 22 Jun '12 - 09:55 »
Yes, sorry, got it working.

Thanx!