/**
 * @depends AbstractAudioletDevice.js
 */

var DummyDevice = new Class({
    Extends: AbstractAudioletDevice,
    initialize: function(audiolet) {
        AbstractAudioletDevice.prototype.initialize.apply(this, [audiolet]);
        this.writePosition = 0;

        this.tick.periodical(1000 * this.bufferSize / this.sampleRate, this);
    },

    tick: function() {
        AudioletNode.prototype.tick.apply(this, [this.bufferSize]);
        this.writePosition += this.bufferSize;
    },

    getPlaybackTime: function() {
        return this.writePosition - this.bufferSize;
    },

    getWriteTime: function() {
        return this.writePosition;
    }
});


/**
 * @depends AbstractAudioletDevice.js
 */

var DummyDevice = new Class({
    Extends: AbstractAudioletDevice,
    initialize: function(audiolet) {
        AbstractAudioletDevice.prototype.initialize.apply(this, [audiolet]);
        this.writePosition = 0;

        this.tick.periodical(1000 * this.bufferSize / this.sampleRate, this);
    },

    tick: function() {
        AudioletNode.prototype.tick.apply(this, [this.bufferSize,
                                                 this.writePosition]);
        this.writePosition += this.bufferSize;
    },

    getPlaybackTime: function() {
        return this.writePosition - this.bufferSize;
    },

    getWriteTime: function() {
        return this.writePosition;
    }
});


Make dummy device pass timestamp, so it actually generates audio
Make dummy device pass timestamp, so it actually generates audio
