OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "config.h" | 25 #include "config.h" |
26 | 26 |
27 #if ENABLE(WEB_AUDIO) | 27 #if ENABLE(WEB_AUDIO) |
28 | 28 |
29 #include "modules/webaudio/AudioSummingJunction.h" | 29 #include "modules/webaudio/AudioSummingJunction.h" |
30 | 30 |
31 #include "modules/webaudio/AudioContext.h" | 31 #include "modules/webaudio/AudioContext.h" |
32 #include "modules/webaudio/AudioNodeOutput.h" | 32 #include "modules/webaudio/AudioNodeOutput.h" |
33 #include <algorithm> | 33 #include <algorithm> |
34 | 34 |
35 namespace WebCore { | 35 namespace blink { |
36 | 36 |
37 AudioSummingJunction::AudioSummingJunction(AudioContext* context) | 37 AudioSummingJunction::AudioSummingJunction(AudioContext* context) |
38 : m_context(context) | 38 : m_context(context) |
39 , m_renderingStateNeedUpdating(false) | 39 , m_renderingStateNeedUpdating(false) |
40 { | 40 { |
41 } | 41 } |
42 | 42 |
43 AudioSummingJunction::~AudioSummingJunction() | 43 AudioSummingJunction::~AudioSummingJunction() |
44 { | 44 { |
45 // Oilpan: m_context is null if AudioContext and this object die | 45 // Oilpan: m_context is null if AudioContext and this object die |
(...skipping 29 matching lines...) Expand all Loading... |
75 m_renderingOutputs[j] = output; | 75 m_renderingOutputs[j] = output; |
76 output->updateRenderingState(); | 76 output->updateRenderingState(); |
77 } | 77 } |
78 | 78 |
79 didUpdate(); | 79 didUpdate(); |
80 | 80 |
81 m_renderingStateNeedUpdating = false; | 81 m_renderingStateNeedUpdating = false; |
82 } | 82 } |
83 } | 83 } |
84 | 84 |
85 } // namespace WebCore | 85 } // namespace blink |
86 | 86 |
87 #endif // ENABLE(WEB_AUDIO) | 87 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |