Something about PlaySound () and FLAC

Everything else that doesn't fall into one of the other PB categories.
es_91
Enthusiast
Enthusiast
Posts: 242
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Something about PlaySound () and FLAC

Post by es_91 »

With the ZIP/RAR-like compression FLAC offers, a nice phenomenon acts:

If you turn down the volume of your sources the bitrate of a FLAC file shirks enormous.

This gives nice compression; since the CD introduced 16 bit Sound but roughly 12 bit sounds good enough on most machines, the savings of about 50% seem handy.

Only problem is you would need a PlaySound () command that allows for volumes of about 200%, 400%, ...

and there is none, but maybe a workaround? Can i put more than 100% volume in any API/PB sound command?
chris_b
Enthusiast
Enthusiast
Posts: 103
Joined: Sun Apr 27, 2003 1:54 am

Re: Something about PlaySound () and FLAC

Post by chris_b »

but maybe a workaround?
You can truncate least significant bits of audio prior to conversion to FLAC. ie. take 16-bit audio and reduce to 6.25% of original level, then amplify by 1600%.

I did a couple of quick tests and increasing the volume back to original level still yields more or less same compression benefits you described.
Post Reply