Skip to content

ENH: Include details about sample rate and channels in SpeakerDevice#6867

Merged
TEParsons merged 3 commits intopsychopy:devfrom
TEParsons:dev-enh-speaker-details
Sep 20, 2024
Merged

ENH: Include details about sample rate and channels in SpeakerDevice#6867
TEParsons merged 3 commits intopsychopy:devfrom
TEParsons:dev-enh-speaker-details

Conversation

@TEParsons
Copy link
Copy Markdown
Contributor

As each speaker reports its sample rate and number of channels, it makes much more sense for this to be stored in SpeakerDevice than for Sound to work it out each time.

This also makes the bug where Sound initialised without specifying stereo breaks irrelevant - as if you specify a Sound without stereo, it works it out from the speaker.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 20, 2024

Codecov Report

Attention: Patch coverage is 8.33333% with 11 lines in your changes missing coverage. Please review.

Project coverage is 49.56%. Comparing base (c1677ae) to head (9010fae).
Report is 11 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #6867      +/-   ##
==========================================
- Coverage   49.58%   49.56%   -0.02%     
==========================================
  Files         332      332              
  Lines       61370    61382      +12     
==========================================
- Hits        30429    30425       -4     
- Misses      30941    30957      +16     
Components Coverage Δ
app ∅ <ø> (∅)
boilerplate ∅ <ø> (∅)
library ∅ <ø> (∅)
vm-safe library ∅ <ø> (∅)

@TEParsons TEParsons merged commit 6e2b3c9 into psychopy:dev Sep 20, 2024
@TEParsons TEParsons deleted the dev-enh-speaker-details branch October 4, 2024 11:13
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.

1 participant