| 57 | // the process of stopping or destruction. |
| 58 | |
| 59 | class AudioContextInterface |
| 60 | { |
| 61 | friend class AudioContext; |
| 62 | |
| 63 | int _id = 0; |
| 64 | AudioContext * _ac = nullptr; |
| 65 | double _currentTime = 0; |
| 66 | |
| 67 | public: |
| 68 | AudioContextInterface(AudioContext * ac, int id) |
| 69 | : _id(id) |
| 70 | , _ac(ac) |
| 71 | { |
| 72 | } |
| 73 | |
| 74 | ~AudioContextInterface() { } |
| 75 | |
| 76 | // the contextId of two AudioNodeInterfaces can be compared |
| 77 | // to discover if they refer to the same context. |
| 78 | int contextId() const { return _id; } |
| 79 | double currentTime() const { return _currentTime; } |
| 80 | }; |
| 81 | |
| 82 | std::weak_ptr<AudioContextInterface> audioContextInterface() { return m_audioContextInterface; } |
| 83 |
nothing calls this directly
no outgoing calls
no test coverage detected