audiojs / audio-play

Play audio buffer in browser/node
MIT License
60 stars 14 forks source link

(node:36124) UnhandledPromiseRejectionWarning: Error: Argument should be an audio buffer #22

Open yusuf987 opened 4 years ago

yusuf987 commented 4 years ago

i am paasing array buffer and below error is happening please guide

(node:36124) UnhandledPromiseRejectionWarning: Error: Argument should be an audio buffer
    at Play (/Users/koenig/Documents/electron/TSP/node_modules/audio-play/index.js:12:36)
    at IpcMainImpl.<anonymous> (/Users/koenig/Documents/electron/TSP/main.js:29:18)
(node:36124) UnhandledPromiseRejectionWarning: Error: Argument should be an audio buffer
    at Play (/Users/koenig/Documents/electron/TSP/node_modules/audio-play/index.js:12:36)
    at IpcMainImpl.<anonymous> (/Users/koenig/Documents/electron/TSP/main.js:29:18)
(node:36124) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:36124) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
^Ckoenigs-MacBook-Air-2:TSP koenig$ npm start