Lines Matching refs:device
2827 if (this.device == null) {
2828 this.device = AudioDevice.create(this.sampleRate, this.channels);
2830 if (!this.device) {
2833 this._lastTime = this.device.getDeviceTime();
2835 return this.device.on('refill', this.refill = (function(_this) {
2847 this.device.off('refill', this.refill);
2853 return this.device.destroy();
2859 this._lastTime = this.device.getDeviceTime();
2866 time = this.device.getDeviceTime();
2867 this.currentTime += (time - this._lastTime) / this.device.sampleRate * 1000 | 0;
2874 AudioDevice.register = function(device) { argument
2875 return devices.push(device);
2879 var device, _i, _len;
2881 device = devices[_i];
2882 if (device.supported) {
2883 return new device(sampleRate, channels);
3472 return (_ref = this.device) != null ? _ref.start() : void 0;
3481 return (_ref = this.device) != null ? _ref.stop() : void 0;
3496 return (_ref = this.device) != null ? _ref.destroy() : void 0;
3501 if ((_ref = this.device) != null) {
3507 if ((_ref1 = _this.device) != null) {
3511 return (_ref2 = _this.device) != null ? _ref2.start() : void 0;
3526 this.device = new AudioDevice(this.format.sampleRate, this.format.channelsPerFrame);
3527 this.device.on('timeUpdate', (function(_this) {
3566 _this.device.stop();
3571 this.device.on('refill', this.refill);
3573 this.device.start();