Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from Dp-Goog/master
Browse files Browse the repository at this point in the history
Fix build issues with Gulp and npm version
  • Loading branch information
hoch authored Mar 27, 2023
2 parents 28004e6 + 1299730 commit 5a850ca
Show file tree
Hide file tree
Showing 6 changed files with 13,653 additions and 2,629 deletions.
2 changes: 1 addition & 1 deletion build/audio-device-client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/audio-sink.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
import{Agent,State,Command}from"./infra/events.esm.js";import FreeQueue from"./infra/free-queue.esm.js";const RENDER_QUANTUM=128;class AudioSink extends AudioWorkletProcessor{constructor(e){super(e),this.port.onmessage=this._handleMessage.bind(this),this._agent=Agent.Consumer,this._state=State.Pending}_initialize(e){this._queue=new FreeQueue(e.sharedBuffer)}_handleMessage(e){switch(e.data.command){case Command.Initialize:this._initialize(e.data.payload),this._state=State.StandBy;break;case Command.Start:this._state=State.Running;break;case Command.Stop:this._state=State.StandBy;break;case Command.Close:this._state=State.Closed;break;default:throw Error()}this.port.postMessage({agent:this._agent,state:this._state})}process(e,t){if(this._state!==State.Running)return!0;const s=t[0];return this._queue.pull(s,RENDER_QUANTUM)||console.log("[AudioSink] Failed to pull in Worklet. (underflow)"),!0}}registerProcessor("audio-sink",AudioSink);
import{Agent,State,Command}from"./infra/events.esm.js";import FreeQueue from"./infra/free-queue.esm.js";const RENDER_QUANTUM=128;class AudioSink extends AudioWorkletProcessor{constructor(e){super(e),this.port.onmessage=this._handleMessage.bind(this),this._agent=Agent.Consumer,this._state=State.Pending}_initialize(e){this._queue=new FreeQueue(e.sharedBuffer)}_handleMessage(e){switch(e.data.command){case Command.Initialize:this._initialize(e.data.payload),this._state=State.StandBy;break;case Command.Start:this._state=State.Running;break;case Command.Stop:this._state=State.StandBy;break;case Command.Close:this._state=State.Closed;break;default:throw Error()}this.port.postMessage({agent:this._agent,state:this._state})}process(e,t){if(this._state!==State.Running)return!0;const s=t[0];return this._queue.pull(s,128)||console.log("[AudioSink] Failed to pull in Worklet. (underflow)"),!0}}registerProcessor("audio-sink",AudioSink);
2 changes: 1 addition & 1 deletion build/client-global-scope.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5a850ca

Please sign in to comment.