| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 BaseAudioContext::AutoLocker context_locker(context()); | 131 BaseAudioContext::AutoLocker context_locker(context()); |
| 132 | 132 |
| 133 if (type == "none") { | 133 if (type == "none") { |
| 134 GetWaveShaperProcessor()->SetOversample( | 134 GetWaveShaperProcessor()->SetOversample( |
| 135 WaveShaperProcessor::kOverSampleNone); | 135 WaveShaperProcessor::kOverSampleNone); |
| 136 } else if (type == "2x") { | 136 } else if (type == "2x") { |
| 137 GetWaveShaperProcessor()->SetOversample(WaveShaperProcessor::kOverSample2x); | 137 GetWaveShaperProcessor()->SetOversample(WaveShaperProcessor::kOverSample2x); |
| 138 } else if (type == "4x") { | 138 } else if (type == "4x") { |
| 139 GetWaveShaperProcessor()->SetOversample(WaveShaperProcessor::kOverSample4x); | 139 GetWaveShaperProcessor()->SetOversample(WaveShaperProcessor::kOverSample4x); |
| 140 } else { | 140 } else { |
| 141 ASSERT_NOT_REACHED(); | 141 NOTREACHED(); |
| 142 } | 142 } |
| 143 } | 143 } |
| 144 | 144 |
| 145 String WaveShaperNode::oversample() const { | 145 String WaveShaperNode::oversample() const { |
| 146 switch (const_cast<WaveShaperNode*>(this) | 146 switch (const_cast<WaveShaperNode*>(this) |
| 147 ->GetWaveShaperProcessor() | 147 ->GetWaveShaperProcessor() |
| 148 ->Oversample()) { | 148 ->Oversample()) { |
| 149 case WaveShaperProcessor::kOverSampleNone: | 149 case WaveShaperProcessor::kOverSampleNone: |
| 150 return "none"; | 150 return "none"; |
| 151 case WaveShaperProcessor::kOverSample2x: | 151 case WaveShaperProcessor::kOverSample2x: |
| 152 return "2x"; | 152 return "2x"; |
| 153 case WaveShaperProcessor::kOverSample4x: | 153 case WaveShaperProcessor::kOverSample4x: |
| 154 return "4x"; | 154 return "4x"; |
| 155 default: | 155 default: |
| 156 ASSERT_NOT_REACHED(); | 156 NOTREACHED(); |
| 157 return "none"; | 157 return "none"; |
| 158 } | 158 } |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // namespace blink | 161 } // namespace blink |
| OLD | NEW |