Streampunk / macadam

Async node.js interface to Blackmagic Design capture and playback devices.
Apache License 2.0
107 stars 24 forks source link

External buffers are not allowed #34

Open josefhernandez opened 7 months ago

josefhernandez commented 7 months ago

I'm trying to use the API from electron. When I try to capture a free I get this error

(node:1662201) UnhandledPromiseRejectionWarning: Error: In file ../src/capture_promise.cc on line 703, found error: External buffers are not allowed

The code to reproduce is simply:

 macadam.capture({
      deviceIndex: 1,
      displayMode: macadam.bmdModeHD1080p30,
      pixelFormat: macadam.bmdFormat8BitYUV,
      channels: 2, // enables audio - omit if audio is not required
      sampleRate: macadam.bmdAudioSampleRate48kHz,
      sampleType: macadam.bmdAudioSampleType16bitInteger
    }).then(function (c) {
      capture.frame()
    })
cmhleveret commented 3 months ago

Hi Josef - this isn't a solution but im also trying to use this package in my election app. I am struggling to install the package though. Could I ask which version of node you are using? Thanks!