summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2021-03-21 14:07:55 -0700
committerGitHub <[email protected]>2021-03-21 22:07:55 +0100
commitb573ff3e7a998592d705f5e81b7217ccae44f2a5 (patch)
treec21277f1d4e3aa15ed3e591d1bbb07250f85bdf4 /examples
parentc37f61d31f10c9ea23cf4f3e4bfd2069dafbe4eb (diff)
downloadraylib-b573ff3e7a998592d705f5e81b7217ccae44f2a5.tar.gz
raylib-b573ff3e7a998592d705f5e81b7217ccae44f2a5.zip
[AUDIO] Use device native sample rates (#1660)
* Init MinAudio to a sample rate of 0 to let the device pick the rate. Read the rate from the device after it starts up. Convert AUDIO_DEVICE_SAMPLE_RATE from a #def into an int, that is set from the device's rate Set all sample systems to use the AUDIO_DEVICE_SAMPLE_RATE as the target rate to minimize resampling. * use device sample rate instead of separate var let config define a device sample rate if it wants to, but let the default be 0 for native rate. * Don't use fixed sample rates for tracker files. Remove config default audio buffer size and replace with a function that computes one for a reasonable frame rate at the output sample rate.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions