Skip to content

Commit

Permalink
fixed #322
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Nov 28, 2024
1 parent a00970d commit 44fd86c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ object MediaFormatUtil {
AudioFormat.CHANNEL_OUT_MONO
}
val bufferSize =
AudioTrack.getMinBufferSize(sampleRate, channelCount, AudioFormat.ENCODING_PCM_16BIT)
Log.d(TAG, "sampleRate=$sampleRate, channelCount=$channelCount, bufferSize=$bufferSize")
AudioTrack.getMinBufferSize(sampleRate, channelMask, AudioFormat.ENCODING_PCM_16BIT)
Log.d(TAG, "sampleRate=$sampleRate, channelCount=$channelCount, channelMask:$channelMask, bufferSize=$bufferSize")
try {
return if (Build.VERSION_CODES.M <= Build.VERSION.SDK_INT) {
AudioTrack.Builder()
Expand Down

0 comments on commit 44fd86c

Please sign in to comment.