20 Jun '13 - 12:13 *
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: Writing my own sound mixer  (Read 2317 times)
DaLexDuo
Posts: 1


« on: 18 Jan '11 - 00:36 »
Reply with quoteQuote

I'm a little overwhelmed.  I just started with Visual Studio 2010 C#, Silverlight #4.  I want to create a fairly simple sound mixer WITHIN my software.  Do any of the tools around here have libraries that are usable within MS VS 2010?  By chance, if there are, do they come with graphics or am I stuck creating my own?

This sight was recommended by Microsoft.  Hope you can help.

If I'm in the wrong place, does anybody have any suggestions?  I don't want to link out to a site.  I really want to create this mixer within my own software.  Needs to be 3D capable.

Thanks all,
Dana
Logged
saga
Posts: 1393


« Reply #1 on: 18 Jan '11 - 08:02 »
Reply with quoteQuote

Well... Do you want to write your own mixing routines? Or do you "just" want to load and play sounds? If it's the latter, BASS is for you.
Logged
AName
Posts: 20


« Reply #2 on: 10 May '11 - 19:58 »
Reply with quoteQuote

I'm interested in doing this myself, and I've already looked into it. BASS has an effect class called BASS_DX8_PARAMEQ that does parametric equalization (the best and most specific kind of all).

The problem that arises is that you HAVE to apply BASS effects to a channel/stream. However, they apparently have a dummy stream where you can provide it with an array of sound data, use the PARAMEQ effect on the stream, and then get the data back out of the stream to output however you want to (although you might as well just use BASS's sound output in this case).

The reason I know this is because I just asked it myself:
Quote
Also, is it possible to use Bass effects on a short/byte array instead of on a channel?
and the reply I received:
Quote
That is also possible. A "dummy" stream can be used to apply effects to sample data in memory, something like this...
fxstream=BASS_StreamCreate(freq, chans, flags|BASS_STREAM_DECODE, STREAMPROC_DUMMY, 0); // create dummy stream with same format as sample data
BASS_ChannelSetFX(fxstream, ...); // set FX on dummy stream

...

BASS_ChannelGetData(fxstream, data, datalen); // feed sample data through dummy stream to apply FX

Here is the post if you want it:
http://www.un4seen.com/forum/?topic=12593.msg87462#msg87462
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines