mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Also log IBStream metadata keys
This commit is contained in:
@@ -29,9 +29,18 @@
|
||||
std::string format_bstream(const YaBStream& stream) {
|
||||
std::ostringstream formatted;
|
||||
formatted << "<IBStream* ";
|
||||
if (stream.supports_stream_attributes) {
|
||||
// TODO: Log the keys for the stored values
|
||||
formatted << "with meta data ";
|
||||
if (stream.supports_stream_attributes && stream.attributes) {
|
||||
formatted << "with meta data [";
|
||||
for (bool first = true;
|
||||
const auto& key_type : stream.attributes->keys_and_types()) {
|
||||
if (!first) {
|
||||
formatted << ", ";
|
||||
}
|
||||
|
||||
formatted << key_type;
|
||||
first = false;
|
||||
}
|
||||
formatted << "] ";
|
||||
}
|
||||
if (stream.file_name) {
|
||||
formatted << "for \"" << VST3::StringConvert::convert(*stream.file_name)
|
||||
|
||||
@@ -112,15 +112,15 @@ class YaBStream : public Steinberg::IBStream,
|
||||
*/
|
||||
std::optional<std::u16string> file_name;
|
||||
|
||||
private:
|
||||
std::vector<uint8_t> buffer;
|
||||
size_t seek_position = 0;
|
||||
|
||||
/**
|
||||
* The stream's meta data if we've copied from a stream that supports meta
|
||||
* data.
|
||||
*/
|
||||
std::optional<YaAttributeList> attributes;
|
||||
|
||||
private:
|
||||
std::vector<uint8_t> buffer;
|
||||
size_t seek_position = 0;
|
||||
};
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
Reference in New Issue
Block a user