Add more debug printing for audioMasterGetTime()

This commit is contained in:
Robbert van der Helm
2020-11-23 16:38:46 +01:00
parent 49900e4753
commit f0b4232239
2 changed files with 13 additions and 1 deletions
+8
View File
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic and this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0.html). Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Changed
- When `YABRIDGE_DEBUG_LEVEL` is set to 2 or higher and a plugin asks the host
for the current position in the song, yabridge will now print that position in
quarter notes and samples as part of the debug output.
## [2.1.0] - 2020-11-20 ## [2.1.0] - 2020-11-20
### Added ### Added
+5 -1
View File
@@ -290,7 +290,11 @@ void Logger::log_event_response(
<< ", r: " << rect.right << ", b: " << rect.bottom << ", r: " << rect.right << ", b: " << rect.bottom
<< "}"; << "}";
}, },
[&](const VstTimeInfo&) { message << ", <time_info>"; }}, [&](const VstTimeInfo& info) {
message << ", <"
<< "quarter_notes = " << info.ppqPos
<< ", samples = " << info.samplePos << ">";
}},
payload); payload);
log(message.str()); log(message.str());