mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Also log IBStream metadata keys
This commit is contained in:
@@ -29,9 +29,18 @@
|
|||||||
std::string format_bstream(const YaBStream& stream) {
|
std::string format_bstream(const YaBStream& stream) {
|
||||||
std::ostringstream formatted;
|
std::ostringstream formatted;
|
||||||
formatted << "<IBStream* ";
|
formatted << "<IBStream* ";
|
||||||
if (stream.supports_stream_attributes) {
|
if (stream.supports_stream_attributes && stream.attributes) {
|
||||||
// TODO: Log the keys for the stored values
|
formatted << "with meta data [";
|
||||||
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) {
|
if (stream.file_name) {
|
||||||
formatted << "for \"" << VST3::StringConvert::convert(*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;
|
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
|
* The stream's meta data if we've copied from a stream that supports meta
|
||||||
* data.
|
* data.
|
||||||
*/
|
*/
|
||||||
std::optional<YaAttributeList> attributes;
|
std::optional<YaAttributeList> attributes;
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::vector<uint8_t> buffer;
|
||||||
|
size_t seek_position = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
|||||||
Reference in New Issue
Block a user