Author Topic: Sample conversion  (Read 974 times)


  • Posts: 929
Sample conversion
« on: 9 Aug '13 - 21:33 »

If I open a 24bit WMA for example with the BASS_SAMPLE_FLOAT stream create flag and then I use BASS_ENCODE_FP_24BIT for BASS_Encode_Start() and BASS_ENCODE_PCM, then, do I get the same sample data or will it be a little different? Is this kind of conversion sample precise or does it loose information?

Thank you!

Ian @ un4seen

  • Administrator
  • Posts: 21211
Re: Sample conversion
« Reply #1 on: 12 Aug '13 - 16:24 »
That should result in the written WAV file containing exactly the same sample data as the source 24-bit WMA file (so long as no DSP/FX is applied). 32-bit floating-point can retain 24-bit integer data, so there is no loss in the conversion from 24-bit to floating-point and back to 24-bit.


  • Posts: 929
Re: Sample conversion
« Reply #2 on: 12 Aug '13 - 22:13 »
Cool! :D

That's very good news! Thank you!

I know I could do some tests but hoped that somebody already had experience with this.