23 May '13 - 01:35 *
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: Need input on simple mixer  (Read 399 times)
Tiwas
Posts: 2


« on: 19 Jan '12 - 17:01 »
Reply with quoteQuote

Hi guys,
I need to make a little tool for myself that lets me select 5 sound files and specify where in the file to start the segment and how long to play it for. I also need to let the user select n-1 warnings for when the next segment starts.

So basically what I need is to join several files starting btween t-0 and t-x and then overlay these with another sound ending this a little before the join. I would also like to fade in and out with a small overlap.

Is this possible with the .net library? If not, anyone got any good tips on where to look? Sorry for the last part of the question, but I have no experience working with sound at all Smiley

Cheers,
Lars
Logged
Ian @ un4seen
Administrator
Posts: 15269


« Reply #1 on: 20 Jan '12 - 16:38 »
Reply with quoteQuote

That sounds like you could do what you want with the BASSmix add-on, ie. create a mixer using BASS_Mixer_StreamCreate and plug in the files at the wanted times via BASS_Mixer_StreamAddChannelEx. You would need to create a "decoding channel" for each of the files by using the BASS_STREAM_DECODE flag in a BASS_StreamCreateFile call, and you would use BASS_ChannelSetPosition to set their start positions prior to plugging them into the mixer. BASS_Mixer_ChannelSetEnvelope can be used to implement the fading-in/out. Please see the documentation for details on the aforementioned functions.
Logged
Tiwas
Posts: 2


« Reply #2 on: 20 Jan '12 - 20:41 »
Reply with quoteQuote

Excellent! Cheers Smiley
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines