Skip to content

Commit

Permalink
audio is recorded but silent
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaji Khan committed Mar 16, 2024
1 parent 05c72eb commit 7f91fdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/shajikhan/ladspa/amprack/Camera2.java
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,13 @@ public void onOutputBufferAvailable(@NonNull MediaCodec codec, int index, @NonNu
}

outPutByteBuffer = codec.getOutputBuffer(index);

mMuxer.writeSampleData(mTrackIndex, outPutByteBuffer, info);
codec.releaseOutputBuffer(index, false);
// byte[] outDate = new byte[info.size];
// outPutByteBuffer.get(outDate);

if (isVideo && mMuxerStarted)
mMuxer.writeSampleData(mTrackIndex, outPutByteBuffer, info);

codec.releaseOutputBuffer(index, false);

int aIndex = audioEncoder.dequeueOutputBuffer(mBufferInfo, 5000) ;
if (aIndex > 0) {
Expand Down

0 comments on commit 7f91fdf

Please sign in to comment.