Skip to content
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

Upgrade to 0.42, fix wpt checkout, add channelCount to MediaTrackConstraints #76

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

orottier
Copy link
Collaborator

@orottier orottier commented Feb 5, 2024

@trevorparscal could you have a look if this works for you? I don't have a multichannel mic at hand here and the underlying cpal library is surprisingly relaxed in allowing exotic channel counts - so I can't really test properly myself.

Fixes #74

@orottier
Copy link
Collaborator Author

orottier commented Feb 5, 2024

I believe #56 broke our CI and should be reverted separately on the main branch

```
error[E0308]: mismatched types
   --> src/audio_buffer.rs:217:17
    |
216 |             .create_arraybuffer_with_borrowed_data(
    |              ------------------------------------- arguments to this method are incorrect
217 |                 data_ptr,
    |                 ^^^^^^^^ types differ in mutability
    |
    = note: expected raw pointer `*mut u8`
               found raw pointer `*const u8`
note: method defined here
   --> /Users/otto/.cargo/registry/src/index.crates.io-6f17d22bba15001f/napi-2.15.1/src/env.rs:508:17
    |
508 |   pub unsafe fn create_arraybuffer_with_borrowed_data<Hint, Finalize>(
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
@orottier
Copy link
Collaborator Author

orottier commented Feb 6, 2024

Ready for merging!

@b-ma
Copy link
Collaborator

b-ma commented Feb 6, 2024

Cool thanks!

Will try to set up some example with Pure Data or Max patch
I will create an issue regarding 1fd1e22 too, if I make it AudioBuffer::getChannelData safe and return a non mutable Float32Array this breaks lots (~500...) of wpt test

@b-ma b-ma merged commit eb8984e into main Feb 6, 2024
5 checks passed
@b-ma b-ma deleted the feature/channel-count-media branch February 9, 2024 10:16
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.

channelCount constraint of getUserMedia is ignored
2 participants