-
Notifications
You must be signed in to change notification settings - Fork 2
Finish SaidIt Kotlin migration and port audio helpers #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| if (playingPosition == position) { | ||
| releasePlayback() | ||
| playingPosition = null | ||
| } | ||
|
|
||
| playbackSession = null | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preserve playback session when deleting non-playing item
When a user deletes any row, removeEntry unconditionally sets playbackSession = null after the deletion even if another recording is currently playing. The active PlaybackSession keeps running because it is never released, but the adapter has discarded the reference, so subsequent play/pause actions will start a second session while the original audio continues and cannot be stopped by releasePlayer(). The previous Java version only cleared the player when the deleted item was the one playing. Consider only nulling the session after releasing it, or leave it intact when another item is removed.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codex address this feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
- Prevented
RecordingsAdapterfrom clearing the active playback session when deleting a different recording, preserving pause/resume control for the currently playing item. SaidIt/src/main/kotlin/eu/mrogalski/saidit/RecordingsAdapter.ktL146-L154
Testing
⚠️ Tests not run (not requested)
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Summary
simplesoundPCM/DSP helpers into theaudiomodule as Kotlin sources, dropping the legacy jar and wiring in new JVM testsTesting
https://chatgpt.com/codex/tasks/task_b_68e3d0da99788323b99d36fa41518eec