Skip to content

Commit

Permalink
Add default switch cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Sanderson committed Jan 16, 2025
1 parent f031714 commit 2337047
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions project/src/audio/SDLSound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ class SDLSoundChannel : public SoundChannel
case SDL_AUDIO_U8: return s->channels;
case SDL_AUDIO_S16: return s->channels*2;
case SDL_AUDIO_F32: return s->channels*4;
default: ;
}
return 0;
}
Expand Down Expand Up @@ -1057,6 +1058,7 @@ class SDLSound : public Sound
case SDL_AUDIO_U8: sampleSize = 1; break;
case SDL_AUDIO_S16: sampleSize = 2; break;
case SDL_AUDIO_F32: sampleSize = 4; break;
default: ;
}
#endif

Expand Down Expand Up @@ -1299,6 +1301,7 @@ class SDLMusicChannel : public SoundChannel
case SDL_AUDIO_U8: sMusicSampleSize = 1; break;
case SDL_AUDIO_S16: sMusicSampleSize = 2; break;
case SDL_AUDIO_F32: sMusicSampleSize = 4; break;
default: ;
}

}
Expand Down

0 comments on commit 2337047

Please sign in to comment.