24 May '13 - 08:57 *
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: I'm trying to create my own waveform using BASS_ChannelGetData()  (Read 668 times)
dman10001
Posts: 92


« on: 9 Mar '11 - 01:32 »
Reply with quoteQuote

I know how to get the data using BASS_ChannelGetData(), but I'm having problems using the data.

I looked at the samples for BASS spectrum, but  do not know how to read the structure of the PCM  data.   I used a float to avoid the 8 and 16 bits calculation.

Is it reading it every 4th of data ? or what?

I get something like a waveform, but it do not look right.

Please Help.
Logged
radio42
Posts: 4012


« Reply #1 on: 9 Mar '11 - 12:16 »
Reply with quoteQuote

With BASS_ChannelGetData you can either get PCM sample data or FFT data.
So lets assume you get PCM sample data.
When using the FLOAT flag you'll get 4bytes (a float value) for each sample interleaved, meaning left, right, left, right etc. (when its a stereo stream).
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines