|
|
@ -157,7 +157,7 @@ void deviceRenderToolbar()
|
|
|
|
if (!enable)
|
|
|
|
if (!enable)
|
|
|
|
ImGui::PushDisabled();
|
|
|
|
ImGui::PushDisabled();
|
|
|
|
|
|
|
|
|
|
|
|
if (ImGui::BeginCombo("", sampleRatePreview.c_str())) {
|
|
|
|
if (ImGui::BeginCombo("##", sampleRatePreview.c_str())) {
|
|
|
|
extern std::array<unsigned int, 6> sampleRateInts;
|
|
|
|
extern std::array<unsigned int, 6> sampleRateInts;
|
|
|
|
|
|
|
|
|
|
|
|
for (const auto& r : sampleRateInts) {
|
|
|
|
for (const auto& r : sampleRateInts) {
|
|
|
@ -217,7 +217,7 @@ void deviceRenderWidgets()
|
|
|
|
ImGui::Text(siggenOption == 0 ? "Enter a list of numbers:"
|
|
|
|
ImGui::Text(siggenOption == 0 ? "Enter a list of numbers:"
|
|
|
|
: "Enter a formula. x = sample #, y = -1 to 1.\nf(x) = ");
|
|
|
|
: "Enter a formula. x = sample #, y = -1 to 1.\nf(x) = ");
|
|
|
|
ImGui::PushStyleColor(ImGuiCol_FrameBg, {.8, .8, .8, 1});
|
|
|
|
ImGui::PushStyleColor(ImGuiCol_FrameBg, {.8, .8, .8, 1});
|
|
|
|
ImGui::InputText("", siggenInput.data(), siggenInput.size());
|
|
|
|
ImGui::InputText("##", siggenInput.data(), siggenInput.size());
|
|
|
|
ImGui::PopStyleColor();
|
|
|
|
ImGui::PopStyleColor();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -249,7 +249,7 @@ void deviceRenderWidgets()
|
|
|
|
static std::string bufferSizeInput ("4096");
|
|
|
|
static std::string bufferSizeInput ("4096");
|
|
|
|
ImGui::Text("Please enter a new sample buffer size (100-4096):");
|
|
|
|
ImGui::Text("Please enter a new sample buffer size (100-4096):");
|
|
|
|
ImGui::PushStyleColor(ImGuiCol_FrameBg, {.8, .8, .8, 1});
|
|
|
|
ImGui::PushStyleColor(ImGuiCol_FrameBg, {.8, .8, .8, 1});
|
|
|
|
ImGui::InputText("",
|
|
|
|
ImGui::InputText("##",
|
|
|
|
bufferSizeInput.data(),
|
|
|
|
bufferSizeInput.data(),
|
|
|
|
bufferSizeInput.size(),
|
|
|
|
bufferSizeInput.size(),
|
|
|
|
ImGuiInputTextFlags_CharsDecimal);
|
|
|
|
ImGuiInputTextFlags_CharsDecimal);
|
|
|
@ -308,7 +308,7 @@ void deviceRenderDraw()
|
|
|
|
ImGui::Begin("draw", &drawSamples);
|
|
|
|
ImGui::Begin("draw", &drawSamples);
|
|
|
|
ImGui::Text("Draw input ");
|
|
|
|
ImGui::Text("Draw input ");
|
|
|
|
ImGui::SameLine();
|
|
|
|
ImGui::SameLine();
|
|
|
|
if (ImGui::Checkbox("", &drawSamplesInput)) {
|
|
|
|
if (ImGui::Checkbox("##", &drawSamplesInput)) {
|
|
|
|
deviceSetInputDrawing(drawSamplesInput);
|
|
|
|
deviceSetInputDrawing(drawSamplesInput);
|
|
|
|
if (drawSamplesInput) {
|
|
|
|
if (drawSamplesInput) {
|
|
|
|
bufferCirc.reset(2048);
|
|
|
|
bufferCirc.reset(2048);
|
|
|
|