Skip to content

Commit ead3829

Browse files
committed
Allow any sample rate during the audio rendering
1 parent 7568a18 commit ead3829

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

panim/panim.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,6 @@ void ffmpeg_play_sound(Sound _sound, Wave wave)
9898
{
9999
(void)_sound;
100100

101-
if (!(wave.sampleRate == 48000 || wave.sampleRate == 44100)) {
102-
TraceLog(LOG_ERROR,
103-
"Animation tried to play a sound with a weird sample rate %dhz. "
104-
"Traditionally sample rates are either 48000hz or 44100hz.",
105-
wave.sampleRate);
106-
return;
107-
}
108-
109101
if (!(wave.sampleSize == 8 || wave.sampleSize == 16 || wave.sampleSize == 32)) {
110102
TraceLog(LOG_ERROR,
111103
"Animation tried to play a sound with a weird sample size of %d bits. "

0 commit comments

Comments
 (0)