X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bmusb.h;h=5b7c0f9c8e35a501c91bf40bdc81fb8d79f3770f;hb=30a75fd8110601c89ecc7c1a0832a96878917cd4;hp=935318c35cda00c91965ac076ba7102d4980a7ce;hpb=b3aaee8df3039891d79f4f673e6a8050d3fb65b5;p=bmusb diff --git a/bmusb.h b/bmusb.h index 935318c..5b7c0f9 100644 --- a/bmusb.h +++ b/bmusb.h @@ -66,9 +66,15 @@ struct VideoFormat { bool has_signal = false; }; +struct AudioFormat { + uint16_t id = 0; // For debugging/logging only. + unsigned bits_per_sample = 0; + unsigned num_channels = 0; +}; + typedef std::function + FrameAllocator::Frame audio_frame, size_t audio_offset, AudioFormat audio_format)> frame_callback_t; class CaptureInterface {