Moved calls to S3SyncSampleVolumeAndPan() and S3SyncSampleRate() to follow call to AudioBackend_PlaySample(). This is required because the later one initializes the object on which S3Sync...() functions operate.
Removed a call to ma_volume_db_to_linear() as it expects input volume to be in exponential scale where volume_db is in linear scale. The call has been replaced with explicit transformation using reverse formula of the one found in S3SyncSampleVolumeAndPan() function.
Incorporated the following changes:
S3SyncSampleVolumeAndPan()
andS3SyncSampleRate()
to follow call toAudioBackend_PlaySample()
. This is required because the later one initializes the object on whichS3Sync...()
functions operate.ma_volume_db_to_linear()
as it expects input volume to be in exponential scale wherevolume_db
is in linear scale. The call has been replaced with explicit transformation using reverse formula of the one found inS3SyncSampleVolumeAndPan()
function.Fixes #399