Skip to content

ENH: Allow for infinite duration audio recording#7060

Merged
peircej merged 4 commits intopsychopy:devfrom
mdcutone:dev-en-infinity-recordings
Jan 22, 2025
Merged

ENH: Allow for infinite duration audio recording#7060
peircej merged 4 commits intopsychopy:devfrom
mdcutone:dev-en-infinity-recordings

Conversation

@mdcutone
Copy link
Copy Markdown
Member

This PR removes the requirement to pre-allocate a buffer for audio recording samples. The maxRecordingSize parameter when set to -1 or None will allow the microphone to record continuously until stopped. Audio samples are stored as fragments and concatenated only when the recording is retrieved. A separate algorithm is used to access the last few samples across fragments very quickly for the real-time getCurrentVolume() function.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 21, 2025

Codecov Report

Attention: Patch coverage is 16.88312% with 64 lines in your changes missing coverage. Please review.

Project coverage is 50.00%. Comparing base (afa9d56) to head (a3015a8).
Report is 28 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #7060      +/-   ##
==========================================
- Coverage   50.03%   50.00%   -0.03%     
==========================================
  Files         347      347              
  Lines       63989    64045      +56     
==========================================
+ Hits        32015    32028      +13     
- Misses      31974    32017      +43     
Components Coverage Δ
app ∅ <ø> (∅)
boilerplate ∅ <ø> (∅)
library ∅ <ø> (∅)
vm-safe library ∅ <ø> (∅)

@peircej peircej merged commit e0391a3 into psychopy:dev Jan 22, 2025
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