Welcome to Decent Sampler Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote
hello Mr. Hillowitz i know this may be an odd request but i would like to know if adding support for the audio format .ogg could be possible.

i have a limited amount of storage space and unfortunately wav files take a bit much of my hdd and my precious ram i dont have a lot.... so i bealive adding suppport for .ogg could solve those issues since i think ogg samples can decrease ram and hdd usage while still sound pretty good in quality. (because its good compression algorithm.)

i hope could be someting not that difficult to implement. and i would totally understand if that is not something you may consider adding. thanks and the best of the regards from mexico.(im your fan).
in Using the Sampler by

2 Answers

0 votes
I second this, many sfz use ogg and are nice libraries of tiny sizes.
by natefromdetroit (320 points)
0 votes
Hello Chris,

Have you considered using flac?
It is supported by Decent Sampler right now, does not degrade sound at all and can do wonders regarding file size. It generally divides the size by at least 2.

While ogg, opus or any lossy format achieved in the frequency domain may seem appealing regarding file size, they are not particularly well suited for virtual instruments where you need to randomly access little parts of a sample.

This kind of codec introduces phase shiftings thus you don't get an exact match in time compared to time domain codecs.
Apart from the hdd saving, they probably won't save any ram because they would probably have to be pre-buffered in RAM to be played correctly.

Hardwares using lossy sample compression (typically arcade games or game consoles in the 90s or the early 2000s) tend to use ADPCM variants (achieving  an approximate compression ratio of 4:1) because it is very cheap to compute, so it can be streamed at he same time it uncompresses. Moreover given its time domain nature, it is an exact match in time compared to the original audio source so it is suitable for precise sample loops.

All this to say, even if Decent Sampler would support ogg or its most recent iteration (opus) there are more options to consider before committing to a lossy format.
by michel-pecqueur (2.0k points)
...