Skip to content

Commit

Permalink
MiniAudio 8 bit support
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Jun 24, 2024
1 parent cdefc06 commit 0c5b2a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/AudioLibs/MiniAudioStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ class MiniAudioStream : public AudioStream {
config_ma.sampleRate = config.sample_rate;
config_ma.dataCallback = data_callback;
switch (config.bits_per_sample) {
case 8:
config_ma.playback.format = ma_format_u8;
break;
case 16:
config_ma.playback.format = ma_format_s16;
break;
Expand Down

0 comments on commit 0c5b2a2

Please sign in to comment.