Skip to content

Docs/file rotation size warnings#1166

Merged
maciejmakowski2003 merged 6 commits into
mainfrom
docs/file-rotation-size-warnings
Jul 14, 2026
Merged

Docs/file rotation size warnings#1166
maciejmakowski2003 merged 6 commits into
mainfrom
docs/file-rotation-size-warnings

Conversation

@maciejmakowski2003

Copy link
Copy Markdown
Collaborator

Closes RNAA-468

⚠️ Breaking changes ⚠️

Introduced changes

  • Added warning about clipping due to low file rotation size

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added/Conducted relevant tests
  • Performed self-review of the code
  • Updated Web Audio API coverage
  • Added support for web
  • Updated old arch android spec file

- `rotateIntervalBytes` - The threshold size (in bytes) at which the recorder will start writing to a new file. If set to `0` (default), file output rotation is disabled. When active, new files are named with the original prefix appended with a timestamp. You can join the rotated files after recording with [`concatAudioFiles`](/docs/utils/file-concatenation#concataudiofiles).
- Use a large enough value for your format. Very small thresholds rotate often, which increases the chance of audible gaps or muffled joins after concatenation — especially for **M4A**, where each segment is a separate AAC encode.
- Practical starting points: **≥ 1 MB** for WAV, **≥ 200 KB** for M4A (adjust upward if you still hear artifacts at segment boundaries).
- `rotateIntervalBytes` controls segment file size, not RAM usage. For crash-resilience tuning on Android, use [`androidFlushIntervalMs`](#androidflushintervalms) instead.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

link to androidFlushIntervalMs is not working and maybe do not repeat here rotateIntervalBytes just use something for example "this option"

…e-mansion/react-native-audio-api into docs/file-rotation-size-warnings
@maciejmakowski2003 maciejmakowski2003 enabled auto-merge (squash) July 14, 2026 15:01
@maciejmakowski2003 maciejmakowski2003 merged commit 5368b74 into main Jul 14, 2026
9 checks passed
@maciejmakowski2003 maciejmakowski2003 deleted the docs/file-rotation-size-warnings branch July 14, 2026 15:03
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