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

Support for offline context #95

Merged
merged 8 commits into from Jul 25, 2018
Merged

Support for offline context #95

merged 8 commits into from Jul 25, 2018

Conversation

@ferjm
Copy link
Member

ferjm commented Jul 24, 2018

I made the new offline context implement the existing AudioSink trait so we can reuse the current render thread processing algorithm.

r? @Manishearth

@ferjm ferjm requested a review from Manishearth Jul 24, 2018
@@ -32,22 +34,31 @@ pub enum AudioRenderThreadMsg {

pub struct AudioRenderThread<B: AudioBackend> {
pub graph: AudioGraph,
pub sink: B::Sink,
pub sink: Box<AudioSink>,

This comment has been minimized.

@Manishearth

Manishearth Jul 25, 2018

Member

Can we have an enum here instead?

pub enum Sink<B> {
    Play(B),
    Offline(OfflineAudioSink)
}

and then just implement AudioSink on this enum too

@ferjm ferjm merged commit 006e514 into servo:master Jul 25, 2018
@ferjm ferjm deleted the ferjm:offline branch Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.