Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
[plugin/vst3] fix plugin debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
hotwatermorning committed Sep 13, 2019
1 parent 6ccd211 commit 60fe69e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/plugin/vst3/Vst3Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ void OutputUnitInfo(Vst::IUnitInfo *unit_handler)
HWM_DEBUG_LOG(L"Selected Unit: " << unit_handler->getSelectedUnit());

HWM_DEBUG_LOG(L"--- Output Program List Info ---");

std::wstringstream ss;

for(size_t i = 0; i < unit_handler->getProgramListCount(); ++i) {
Vst::ProgramListInfo program_list_info {};
tresult res = unit_handler->getProgramListInfo(i, program_list_info);
Expand All @@ -113,10 +112,11 @@ void OutputUnitInfo(Vst::IUnitInfo *unit_handler)
break;
}

ss << wxString::Format(L"[%d] %ls", (Int32)i, ProgramListInfoToString(program_list_info)).ToStdWstring();
HWM_DEBUG_LOG(wxString::Format(L"[%d] %ls", (Int32)i, ProgramListInfoToString(program_list_info)).ToStdWstring());

for(size_t program_index = 0; program_index < program_list_info.programCount; ++program_index) {

std::wstringstream ss;
ss << wxString::Format(L"\t[%d] ", (Int32)program_index).ToStdWstring();

Vst::String128 name;
Expand Down Expand Up @@ -152,10 +152,8 @@ void OutputUnitInfo(Vst::IUnitInfo *unit_handler)
ss << L", No Pitch Name";
}

ss << std::endl;
HWM_DEBUG_LOG(ss.str());
}

HWM_DEBUG_LOG(ss.str());
}
}

Expand Down

0 comments on commit 60fe69e

Please sign in to comment.