| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   88     bool isInitialized() const; |   88     bool isInitialized() const; | 
|   89  |   89  | 
|   90     bool isOfflineContext() { return m_isOfflineContext; } |   90     bool isOfflineContext() { return m_isOfflineContext; } | 
|   91  |   91  | 
|   92     // Returns true when initialize() was called AND all asynchronous initializa
     tion has completed. |   92     // Returns true when initialize() was called AND all asynchronous initializa
     tion has completed. | 
|   93     bool isRunnable() const; |   93     bool isRunnable() const; | 
|   94  |   94  | 
|   95     HRTFDatabaseLoader* hrtfDatabaseLoader() const { return m_hrtfDatabaseLoader
     .get(); } |   95     HRTFDatabaseLoader* hrtfDatabaseLoader() const { return m_hrtfDatabaseLoader
     .get(); } | 
|   96  |   96  | 
|   97     // Document notification |   97     // Document notification | 
|   98     virtual void stop(); |   98     virtual void stop() OVERRIDE FINAL; | 
|   99  |   99  | 
|  100     Document* document() const; // ASSERTs if document no longer exists. |  100     Document* document() const; // ASSERTs if document no longer exists. | 
|  101     bool hasDocument(); |  101     bool hasDocument(); | 
|  102  |  102  | 
|  103     AudioDestinationNode* destination() { return m_destinationNode.get(); } |  103     AudioDestinationNode* destination() { return m_destinationNode.get(); } | 
|  104     size_t currentSampleFrame() const { return m_destinationNode->currentSampleF
     rame(); } |  104     size_t currentSampleFrame() const { return m_destinationNode->currentSampleF
     rame(); } | 
|  105     double currentTime() const { return m_destinationNode->currentTime(); } |  105     double currentTime() const { return m_destinationNode->currentTime(); } | 
|  106     float sampleRate() const { return m_destinationNode->sampleRate(); } |  106     float sampleRate() const { return m_destinationNode->sampleRate(); } | 
|  107     unsigned long activeSourceCount() const { return static_cast<unsigned long>(
     m_activeSourceCount); } |  107     unsigned long activeSourceCount() const { return static_cast<unsigned long>(
     m_activeSourceCount); } | 
|  108  |  108  | 
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  227     void handleDeferredFinishDerefs(); |  227     void handleDeferredFinishDerefs(); | 
|  228  |  228  | 
|  229     // Only accessed when the graph lock is held. |  229     // Only accessed when the graph lock is held. | 
|  230     void markSummingJunctionDirty(AudioSummingJunction*); |  230     void markSummingJunctionDirty(AudioSummingJunction*); | 
|  231     void markAudioNodeOutputDirty(AudioNodeOutput*); |  231     void markAudioNodeOutputDirty(AudioNodeOutput*); | 
|  232  |  232  | 
|  233     // Must be called on main thread. |  233     // Must be called on main thread. | 
|  234     void removeMarkedSummingJunction(AudioSummingJunction*); |  234     void removeMarkedSummingJunction(AudioSummingJunction*); | 
|  235  |  235  | 
|  236     // EventTarget |  236     // EventTarget | 
|  237     virtual const AtomicString& interfaceName() const OVERRIDE; |  237     virtual const AtomicString& interfaceName() const OVERRIDE FINAL; | 
|  238     virtual ExecutionContext* executionContext() const OVERRIDE; |  238     virtual ExecutionContext* executionContext() const OVERRIDE FINAL; | 
|  239  |  239  | 
|  240     DEFINE_ATTRIBUTE_EVENT_LISTENER(complete); |  240     DEFINE_ATTRIBUTE_EVENT_LISTENER(complete); | 
|  241  |  241  | 
|  242     void startRendering(); |  242     void startRendering(); | 
|  243     void fireCompletionEvent(); |  243     void fireCompletionEvent(); | 
|  244  |  244  | 
|  245     static unsigned s_hardwareContextCount; |  245     static unsigned s_hardwareContextCount; | 
|  246  |  246  | 
|  247 protected: |  247 protected: | 
|  248     explicit AudioContext(Document*); |  248     explicit AudioContext(Document*); | 
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  337     // It is somewhat arbitrary and could be increased if necessary. |  337     // It is somewhat arbitrary and could be increased if necessary. | 
|  338     enum { MaxNumberOfChannels = 32 }; |  338     enum { MaxNumberOfChannels = 32 }; | 
|  339  |  339  | 
|  340     // Number of AudioBufferSourceNodes that are active (playing). |  340     // Number of AudioBufferSourceNodes that are active (playing). | 
|  341     int m_activeSourceCount; |  341     int m_activeSourceCount; | 
|  342 }; |  342 }; | 
|  343  |  343  | 
|  344 } // WebCore |  344 } // WebCore | 
|  345  |  345  | 
|  346 #endif // AudioContext_h |  346 #endif // AudioContext_h | 
| OLD | NEW |