Add todo regarding audioMasterGetTime

This commit is contained in:
Robbert van der Helm
2020-04-13 14:54:20 +02:00
parent bad9916f75
commit a2ba001e2f
3 changed files with 9 additions and 2 deletions
+4
View File
@@ -7,6 +7,10 @@ Yet Another way to use Windows VST2 plugins in Linux VST hosts.
There are a few things that should be done before releasing this, including:
- Fix implementation bugs:
- `VstTimeInfo` doesn't get passed to the plugin correctly in
`audioMasterGetTime`.
- Polish GUIs even further. There are some todos left in
`src/wine-host/editor.{h,cpp}`.
- There are likely some minor issues left.
- Add missing details if any to the architecture section.
- Document what this has been tested on and what does or does not work.
+3 -2
View File
@@ -66,8 +66,9 @@ void Editor::close() {
// RAII will destroy the window and tiemrs for us
win32_handle = std::nullopt;
// TODO: Do we need to do something on the X11 side or does the host do
// everything for us?
// TODO: We might want to manually unmap the X11 window instead of having
// the host do it. Right now the window editor window stays open for a
// second when removing a plugin.
}
bool Editor::embed_into(const size_t parent_window_handle) {
+2
View File
@@ -328,6 +328,7 @@ class HostCallbackDataConverter : DefaultDataConverter {
case audioMasterGetTime:
// Return a pointer to the `VstTimeInfo` object written in the
// function above
// TODO: This is incorrect!
return reinterpret_cast<intptr_t>(&time);
break;
default:
@@ -338,6 +339,7 @@ class HostCallbackDataConverter : DefaultDataConverter {
private:
AEffect* plugin;
// TODO: Clean up
Editor& editor;
VstTimeInfo& time_info;
};