| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 m_numberOfInputChannels = 0; | 78 m_numberOfInputChannels = 0; |
| 79 | 79 |
| 80 AudioHandler::uninitialize(); | 80 AudioHandler::uninitialize(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 void DefaultAudioDestinationHandler::createDestination() | 83 void DefaultAudioDestinationHandler::createDestination() |
| 84 { | 84 { |
| 85 float hardwareSampleRate = AudioDestination::hardwareSampleRate(); | 85 float hardwareSampleRate = AudioDestination::hardwareSampleRate(); |
| 86 WTF_LOG(WebAudio, ">>>> hardwareSampleRate = %f\n", hardwareSampleRate); | 86 WTF_LOG(WebAudio, ">>>> hardwareSampleRate = %f\n", hardwareSampleRate); |
| 87 | 87 |
| 88 m_destination = AudioDestination::create(*this, m_inputDeviceId, m_numberOfI
nputChannels, channelCount(), hardwareSampleRate, context()->securityOrigin()); | 88 m_destination = AudioDestination::create(*this, m_inputDeviceId, m_numberOfI
nputChannels, channelCount(), hardwareSampleRate, context()->getSecurityOrigin()
); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void DefaultAudioDestinationHandler::startRendering() | 91 void DefaultAudioDestinationHandler::startRendering() |
| 92 { | 92 { |
| 93 ASSERT(isInitialized()); | 93 ASSERT(isInitialized()); |
| 94 if (isInitialized()) { | 94 if (isInitialized()) { |
| 95 ASSERT(!m_destination->isPlaying()); | 95 ASSERT(!m_destination->isPlaying()); |
| 96 m_destination->start(); | 96 m_destination->start(); |
| 97 } | 97 } |
| 98 } | 98 } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 setHandler(DefaultAudioDestinationHandler::create(*this)); | 145 setHandler(DefaultAudioDestinationHandler::create(*this)); |
| 146 } | 146 } |
| 147 | 147 |
| 148 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(AbstractAudioCo
ntext* context) | 148 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(AbstractAudioCo
ntext* context) |
| 149 { | 149 { |
| 150 return new DefaultAudioDestinationNode(*context); | 150 return new DefaultAudioDestinationNode(*context); |
| 151 } | 151 } |
| 152 | 152 |
| 153 } // namespace blink | 153 } // namespace blink |
| 154 | 154 |
| OLD | NEW |