Clownacy / clownaudio

Sound engine that is suitable for video games and other multimedia applications.
zlib License
24 stars 2 forks source link

Add ability to disable dynamic resampling #7

Closed Clownacy closed 4 years ago

Clownacy commented 4 years ago

Maybe make it so you can explicitly define whether a sound can be dynamically-resampled or not, so that the resampler can be configured appropriately, potentially-reducing overhead.

Also, this would allow the synthesised backends to use the native sample rate, instead of a hardcoded one, in the event that they're not dynamically-resampled.

Clownacy commented 4 years ago

This would also allow the pre-decoder to perform pre-emptive sample rate conversion, eliminating resampling altogether.

Clownacy commented 4 years ago

Done by c41bfbc91b959fc9ef38cf0cca47f48e2fd9d696, 62793ab2c5f8b36531d6fc9b86d5235e1ddf2c57, ffc505db33e2169c1466b46e5148c46f32dbe016, and 8a63bd394dd832c90b063697733db9888be14941.