rename from microsa

This commit is contained in:
Sebastien Bourdeauducq 2023-09-07 19:15:07 +08:00
parent 1530372180
commit 7fced717e6
4 changed files with 11 additions and 15 deletions

View File

@ -1,4 +1,4 @@
EXE = microsa
EXE = fastsa
SOURCES = main.cpp
SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp
SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp

4
README
View File

@ -1,4 +0,0 @@
* set pulseaudio to 192kHz sample rate:
hardware.pulseaudio.daemon.config = { "default-sample-rate" = 192000; };
* check that sound card is operating at 192kHz:
cat /proc/asound/card0/pcm0c/sub0/hw_params

View File

@ -13,8 +13,8 @@
hash = "sha256-xl7Tr1A1cqXhAL1Bljfk68R3AB1xOgkH15LHKxjYoSc=";
};
in rec {
packages.x86_64-linux.microsa = pkgs.stdenv.mkDerivation {
name = "microsa";
packages.x86_64-linux.fastsa = pkgs.stdenv.mkDerivation {
name = "fastsa";
src = self;
nativeBuildInputs = [ pkgs.pkg-config ];
propagatedBuildInputs = [ pkgs.wayland pkgs.glfw-wayland pkgs.libffi pkgs.alsa-lib ];
@ -24,14 +24,14 @@
'';
installPhase = ''
mkdir -p $out/bin
cp microsa $out/bin
cp fastsa $out/bin
'';
};
devShell.x86_64-linux = pkgs.mkShell {
name = "microsa-dev-shell";
buildInputs = packages.x86_64-linux.microsa.nativeBuildInputs ++ packages.x86_64-linux.microsa.propagatedBuildInputs;
shellHook = packages.x86_64-linux.microsa.preBuild;
name = "fastsa-dev-shell";
buildInputs = packages.x86_64-linux.fastsa.nativeBuildInputs ++ packages.x86_64-linux.fastsa.propagatedBuildInputs;
shellHook = packages.x86_64-linux.fastsa.preBuild;
};
defaultPackage.x86_64-linux = packages.x86_64-linux.microsa;
defaultPackage.x86_64-linux = packages.x86_64-linux.fastsa;
};
}

View File

@ -84,7 +84,7 @@ int main(int argc, char* argv[])
std::atexit(glfwTerminate);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
static GLFWwindow* window = glfwCreateWindow(1900, 720, "microsa", nullptr, nullptr);
static GLFWwindow* window = glfwCreateWindow(1900, 720, "fastsa", nullptr, nullptr);
if (window == nullptr) {
std::cerr << "failed to create GLFW window" << std::endl;
return 1;
@ -198,9 +198,9 @@ int main(int argc, char* argv[])
ImGui::SetNextWindowPos(ImVec2(0.0f, 0.0f));
ImGui::SetNextWindowSize(io.DisplaySize);
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f);
ImGui::Begin("microsa", nullptr, ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoResize);
ImGui::Begin("fastsa", nullptr, ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoResize);
ImGui::BeginTable("microsa", 2, ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_Resizable);
ImGui::BeginTable("fastsa", 2, ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_Resizable);
ImGui::TableSetupColumn("", 0, 280.0);
ImGui::TableSetupColumn("", 0, 1600.0);
ImGui::TableNextColumn();