19 May '13 - 20:30 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: BASS_Mixer_StreamAddChannelEx()'s Start value  (Read 255 times)
3delite
Posts: 623


« on: 21 Jun '12 - 14:14 »
Reply with quoteQuote

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... ?


Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #1 on: 21 Jun '12 - 16:44 »
Reply with quoteQuote

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...

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
Logged
3delite
Posts: 623


« Reply #2 on: 22 Jun '12 - 09:55 »
Reply with quoteQuote

Yes, sorry, got it working.

Thanx!
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines