Author Topic: Pros cons of using floating point mode?  (Read 78 times)


  • Guest
Pros cons of using floating point mode?
« on: 7 Dec '17 - 16:29 »
If I tell bass to use floating point with

BASS_StreamCreateFile(True, FS.Memory, 0, FS.Size, BASS_STREAM_DECODE or  BASS_SAMPLE_FLOAT);

so that it's easier to deal with amplitude data across formats / bitrates, are there any downsides?  If not, is it in fact recommended to use this option?


Ian @ un4seen

  • Administrator
  • Posts: 20433
Re: Pros cons of using floating point mode?
« Reply #1 on: 8 Dec '17 - 13:42 »
Unless you will be running on old Windows (pre-Vista), I would generally recommend always using the BASS_SAMPLE_FLOAT flag on streams. The final output mix will be floating-point, so it makes sense for the sample data to be floating-point throughout. That particularly applies to lossy file formats (MP3/OGG/etc), as the decoders will usually produce floating-point data (which is converted to 16-bit if the FLOAT flag isn't used).