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