| 683 | } |
| 684 | |
| 685 | float AudioContext::sampleRate() const |
| 686 | { |
| 687 | // sampleRate is called during AudioNode construction to initialize the |
| 688 | // scheduler, but DeviceNodes are not scheduled. |
| 689 | // during construction of DeviceNodes, the device_callback will not yet be |
| 690 | // ready, so bail out. |
| 691 | if (!device_callback) |
| 692 | return 0; |
| 693 | |
| 694 | return device_callback->getSamplingInfo().sampling_rate; |
| 695 | } |
| 696 | |
| 697 | void AudioContext::startOfflineRendering() |
| 698 | { |
no outgoing calls
no test coverage detected