diff --git a/Makefile b/Makefile index 9d5b183..f6c6c5e 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README b/README deleted file mode 100644 index 0650df5..0000000 --- a/README +++ /dev/null @@ -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 diff --git a/flake.nix b/flake.nix index b87d1db..ae6af96 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; } diff --git a/main.cpp b/main.cpp index b7a48b3..10be93a 100644 --- a/main.cpp +++ b/main.cpp @@ -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();