19 May '13 - 19:20 *
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: ASIO with non decode stream  (Read 363 times)
dts350z
Posts: 17


« on: 13 Apr '12 - 00:51 »
Reply with quoteQuote

The contest.c program in the ASIO examples initializes the no sound device before setting up a channel.

However I want to set up a push stream that is not decode. I read somewhere that the no sound device has to be used with a decode channel? At least I get error BASS_ERROR_NOTAVAIL if I try to use it with a non decode stream.

So, how do I use ASIO with a non decode push stream? My data is just PCM.
Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #1 on: 13 Apr '12 - 15:45 »
Reply with quoteQuote

How are you intending to play the push stream? If it's via ASIO, then it will need to be a "decoding channel", ie. using the BASS_STREAM_DECODE flag...

stream=BASS_StreamCreate(freq, chans, BASS_STREAM_DECODE, STREAMPROC_PUSH, NULL);

You can then use BASS_ChannelGetData in your ASIOPROC function to get the data from the push stream.
Logged
dts350z
Posts: 17


« Reply #2 on: 13 Apr '12 - 23:11 »
Reply with quoteQuote

OK thanks. Have ASIO working now, but it's not floatable, again because of the no sound divice being used when I check for floatable?

I need to setup the stream before setting up ASIO so I'm confused has to how to check for floatable with ASIO.
Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #3 on: 16 Apr '12 - 14:38 »
Reply with quoteQuote

Floating-point sample data support is always available with BASSASIO, via the BASS_ASIO_ChannelSetFormat function. Floating-point decoding is also always possible with BASS*, eg. you could safely add the BASS_SAMPLE_FLOAT flag to the BASS_StreamCreate call above.

*not on Android or WinCE, but there's no ASIO there so I guess you're not using them!
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines