Streampunk / naudiodon

Node.js stream bindings for PortAudio
Apache License 2.0
294 stars 80 forks source link

Doesnt work with fluent-ffmpeg #69

Open kaaax0815 opened 3 years ago

kaaax0815 commented 3 years ago

When using fluent-ffmpeg and piping to AudioIO i get this following message:

Argument of type 'IoStreamWrite' is not assignable to parameter of type 'Writable'.
  Type 'IoStreamWrite' is missing the following properties from type 'Writable': writableEnded, writableFinished, writableHighWaterMark, writableLength, and 11 more.

When I use @ts-ignore to dont throw errors, I simple hear nothing. When I use speaker it works fine (but I need device selection)

I saw that audioIO.write wants a buffer and comes from NodeJS.WritableStream.write and speaker.write wants a chunk and comes from internal.Writable.write

Is there a way to fix this or convert them?