20 May '13 - 02:14 *
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: 16 bit vs 24 bits flac files  (Read 501 times)
pwatel
Posts: 48


« on: 26 Feb '12 - 06:37 »
Reply with quoteQuote

Hello
Even if the bass lib is initialized as shown on the help file

Example:
Initialize BASS to use the default output device, and a nominal format of 44100hz stereo 16-bit.
BASS_Init(-1, 44100, 0, hwnd, NULL); 

But if a file with higher sample rate comes along, it is played at the right frequency like it updates it self from 44100 to a higher value.
My question is about the bit depth if the file is 24bit / 96000Khz is the bit depth updated automatically as well from 16 to 24 or it is taken at 16.
Forget my ignorance on the internal of Bass audio. it plays but I have to way to check at which bit depth the frequency yes it is shown on the DAC
Thank you



Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #1 on: 27 Feb '12 - 16:56 »
Reply with quoteQuote

By default, the file would be decoded/played in 16-bit. To retain the full 24-bit quality, you would need to use the BASS_SAMPLE_FLOAT flag in the BASS_StreamCreateFile call, and that will then be converted to what the device uses during playback.
Logged
pwatel
Posts: 48


« Reply #2 on: 28 Feb '12 - 05:04 »
Reply with quoteQuote

Thank you Ian
any similar  flags that should be set if one plays via
WASAPI
and
ASIO

regards
PW

Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #3 on: 28 Feb '12 - 14:59 »
Reply with quoteQuote

It is pretty much the same process then too. You would use the BASS_SAMPLE_FLOAT flag in the BASS_StreamCreateFile call, and BASSASIO/WASAPI will convert the floating-point data to the device's format. In the case of ASIO, you would use BASS_ASIO_ChannelSetFormat (with BASS_ASIO_FORMAT_FLOAT) to tell BASSASIO that you will be providing floating-point data. BASSWASAPI always expects floating-point data, so nothing more is needed there.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines