]> git.sesse.net Git - bmusb/blobdiff - bmusb.h
Small cleanup.
[bmusb] / bmusb.h
diff --git a/bmusb.h b/bmusb.h
index 96a2257f8549279dc0000c7b31dfb2df8709e62a..e2033264ad45443528fe97a494a38bd06e0f089a 100644 (file)
--- a/bmusb.h
+++ b/bmusb.h
@@ -25,6 +25,7 @@ class FrameAllocator {
                uint8_t *data2 = nullptr;  // Only if interleaved == true.
                size_t len = 0;  // Number of bytes we actually have.
                size_t size = 0;  // Number of bytes we have room for.
+               size_t overflow = 0;
                void *userdata = nullptr;
                FrameAllocator *owner = nullptr;
 
@@ -63,8 +64,8 @@ typedef std::function<void(uint16_t timecode,
 // The actual capturing class, representing capture from a single card.
 class BMUSBCapture {
  public:
-       BMUSBCapture(int vid = 0x1edb, int pid = 0xbd3b)
-               : vid(vid), pid(pid)
+       BMUSBCapture(int card_index)
+               : card_index(card_index)
        {
        }
 
@@ -149,7 +150,7 @@ class BMUSBCapture {
        static constexpr int NUM_BMUSB_REGISTERS = 60;
        uint8_t register_file[NUM_BMUSB_REGISTERS];
 
-       int vid, pid;
+       int card_index;
        std::vector<libusb_transfer *> iso_xfrs;
 };