| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 virtual ~AudioContext(); | 83 virtual ~AudioContext(); |
| 84 | 84 |
| 85 bool isInitialized() const; | 85 bool isInitialized() const; |
| 86 | 86 |
| 87 bool isOfflineContext() { return m_isOfflineContext; } | 87 bool isOfflineContext() { return m_isOfflineContext; } |
| 88 | 88 |
| 89 // Returns true when initialize() was called AND all asynchronous initializa
tion has completed. | 89 // Returns true when initialize() was called AND all asynchronous initializa
tion has completed. |
| 90 bool isRunnable() const; | 90 bool isRunnable() const; |
| 91 | 91 |
| 92 HRTFDatabaseLoader* hrtfDatabaseLoader() const { return m_hrtfDatabaseLoader
.get(); } |
| 93 |
| 92 // Document notification | 94 // Document notification |
| 93 virtual void stop(); | 95 virtual void stop(); |
| 94 | 96 |
| 95 Document* document() const; // ASSERTs if document no longer exists. | 97 Document* document() const; // ASSERTs if document no longer exists. |
| 96 bool hasDocument(); | 98 bool hasDocument(); |
| 97 | 99 |
| 98 AudioDestinationNode* destination() { return m_destinationNode.get(); } | 100 AudioDestinationNode* destination() { return m_destinationNode.get(); } |
| 99 size_t currentSampleFrame() const { return m_destinationNode->currentSampleF
rame(); } | 101 size_t currentSampleFrame() const { return m_destinationNode->currentSampleF
rame(); } |
| 100 double currentTime() const { return m_destinationNode->currentTime(); } | 102 double currentTime() const { return m_destinationNode->currentTime(); } |
| 101 float sampleRate() const { return m_destinationNode->sampleRate(); } | 103 float sampleRate() const { return m_destinationNode->sampleRate(); } |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 // It is somewhat arbitrary and could be increased if necessary. | 346 // It is somewhat arbitrary and could be increased if necessary. |
| 345 enum { MaxNumberOfChannels = 32 }; | 347 enum { MaxNumberOfChannels = 32 }; |
| 346 | 348 |
| 347 // Number of AudioBufferSourceNodes that are active (playing). | 349 // Number of AudioBufferSourceNodes that are active (playing). |
| 348 int m_activeSourceCount; | 350 int m_activeSourceCount; |
| 349 }; | 351 }; |
| 350 | 352 |
| 351 } // WebCore | 353 } // WebCore |
| 352 | 354 |
| 353 #endif // AudioContext_h | 355 #endif // AudioContext_h |
| OLD | NEW |