19 May '13 - 07:21 *
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: Retrieving of compression ratio of packed SoundFonts.  (Read 176 times)
Brad Miller
Guest
« on: 1 Aug '12 - 10:18 »
Reply with quoteQuote

Hi,
I was wondering if its possible to extend BASS_MIDI_FONTINFO to have info for ratios of packed samples to original size samples, or even a means to store the compressed size of the SoundFont? I guess even the overall size of packed *and* unpacked sample sizes would do too.

Thanks.
Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #1 on: 1 Aug '12 - 14:10 »
Reply with quoteQuote

The BASS_MIDI_FONTINFO "samsize" member is the unpacked size of the sample data. I'm afraid BASSMIDI doesn't currently provide the packed size, but if you would like to have that information, it is possible to get it from the file by getting the length of the "smpl" chunk (the SF2 format is RIFF-based).
Logged
Brad Miller
Guest
« Reply #2 on: 1 Aug '12 - 22:56 »
Reply with quoteQuote

Thanks for letting me know. Smiley
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines