close
Skip to content

[JXR] Swap out AudioRecord with MediaRecorder implementation#893

Draft
trambui09 wants to merge 2 commits intoandroid:mainfrom
trambui09:tb/update-projected-context-audio-record
Draft

[JXR] Swap out AudioRecord with MediaRecorder implementation#893
trambui09 wants to merge 2 commits intoandroid:mainfrom
trambui09:tb/update-projected-context-audio-record

Conversation

@trambui09
Copy link
Copy Markdown
Contributor

@trambui09 trambui09 commented Apr 30, 2026

Swap out AudioRecord with MediaRecorder implementation for record audio with projected context.

@trambui09 trambui09 changed the title swap out AudioRecord with MediaRecorder implementation for projected … [JXR] Swap out AudioRecord with MediaRecorder implementation Apr 30, 2026
@trambui09 trambui09 requested a review from madebymozart April 30, 2026 22:15
@trambui09 trambui09 marked this pull request as ready for review April 30, 2026 22:15
@trambui09 trambui09 requested a review from a team as a code owner April 30, 2026 22:15
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the startProjectedAudioRecording function to use MediaRecorder instead of AudioRecord and introduces an outputFile parameter. Feedback indicates that the MediaRecorder is not properly stopped or released, which will lead to resource leaks, and suggests handling potential exceptions from the prepare() method.

Comment thread xr/src/main/java/com/example/xr/projected/ProjectedHardware.kt
@trambui09 trambui09 marked this pull request as draft April 30, 2026 22:40
@junaidmohamed069-crypto

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants