Skip to content

Commit

Permalink
48khz, not 44.1
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-armstrong committed Apr 26, 2021
1 parent e3ff761 commit b127b2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quiet/src/main/jni/opensl.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ SLresult quiet_opensl_create_player(quiet_opensl_system *sys,
pcm.bitsPerSample = 32;
pcm.containerSize = 32;
pcm.representation = SL_ANDROID_PCM_REPRESENTATION_FLOAT;
pcm.sampleRate = SL_SAMPLINGRATE_44_1;
pcm.sampleRate = SL_SAMPLINGRATE_48;
#else
SLDataFormat_PCM pcm;
pcm.formatType = SL_DATAFORMAT_PCM;
pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16;
pcm.containerSize = 16;
pcm.samplesPerSec = SL_SAMPLINGRATE_44_1;
pcm.samplesPerSec = SL_SAMPLINGRATE_48;
#endif
pcm.numChannels = 2;
pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT;
Expand Down Expand Up @@ -325,13 +325,13 @@ SLresult quiet_opensl_create_recorder(quiet_opensl_system *sys,
pcm.bitsPerSample = 32;
pcm.containerSize = 32;
pcm.representation = SL_ANDROID_PCM_REPRESENTATION_FLOAT;
pcm.sampleRate = SL_SAMPLINGRATE_44_1;
pcm.sampleRate = SL_SAMPLINGRATE_48;
#else
SLDataFormat_PCM pcm;
pcm.formatType = SL_DATAFORMAT_PCM;
pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16;
pcm.containerSize = 16;
pcm.samplesPerSec = SL_SAMPLINGRATE_44_1;
pcm.samplesPerSec = SL_SAMPLINGRATE_48;
#endif
pcm.numChannels = num_record_channels;
pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT;
Expand Down

0 comments on commit b127b2d

Please sign in to comment.