Skip to content

feat: stereo deinterleave, invert, and empty check - #6

Open
topninja wants to merge 1 commit into
mainfrom
feat/deinterleave-invert-empty
Open

topninja wants to merge 1 commit into
mainfrom
feat/deinterleave-invert-empty

Conversation

@topninja

Copy link
Copy Markdown
Collaborator

Summary

  • audio.DeinterleaveStereo splits interleaved stereo back into left and right.
  • audio.Invert and processor.NewAudioInvert flip PCM polarity, clipping the most negative sample.
  • frames.LLMContext.IsEmpty reports whether any messages have been written.

Independent of the other open helper PRs: this branch is from current main.

Test plan

  • go test ./audio ./frames ./processor
  • Confirm DeinterleaveStereo undoes InterleaveStereo
  • Confirm a context with only a system prompt is empty

Give sessions a way to split interleaved stereo, flip PCM polarity, and
tell whether the conversation has any messages yet.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

2 participants