rename from microsa
This commit is contained in:
parent
1530372180
commit
7fced717e6
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
|||||||
EXE = microsa
|
EXE = fastsa
|
||||||
SOURCES = main.cpp
|
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)/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
|
SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp
|
||||||
|
4
README
4
README
@ -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
|
|
14
flake.nix
14
flake.nix
@ -13,8 +13,8 @@
|
|||||||
hash = "sha256-xl7Tr1A1cqXhAL1Bljfk68R3AB1xOgkH15LHKxjYoSc=";
|
hash = "sha256-xl7Tr1A1cqXhAL1Bljfk68R3AB1xOgkH15LHKxjYoSc=";
|
||||||
};
|
};
|
||||||
in rec {
|
in rec {
|
||||||
packages.x86_64-linux.microsa = pkgs.stdenv.mkDerivation {
|
packages.x86_64-linux.fastsa = pkgs.stdenv.mkDerivation {
|
||||||
name = "microsa";
|
name = "fastsa";
|
||||||
src = self;
|
src = self;
|
||||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||||
propagatedBuildInputs = [ pkgs.wayland pkgs.glfw-wayland pkgs.libffi pkgs.alsa-lib ];
|
propagatedBuildInputs = [ pkgs.wayland pkgs.glfw-wayland pkgs.libffi pkgs.alsa-lib ];
|
||||||
@ -24,14 +24,14 @@
|
|||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp microsa $out/bin
|
cp fastsa $out/bin
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
devShell.x86_64-linux = pkgs.mkShell {
|
devShell.x86_64-linux = pkgs.mkShell {
|
||||||
name = "microsa-dev-shell";
|
name = "fastsa-dev-shell";
|
||||||
buildInputs = packages.x86_64-linux.microsa.nativeBuildInputs ++ packages.x86_64-linux.microsa.propagatedBuildInputs;
|
buildInputs = packages.x86_64-linux.fastsa.nativeBuildInputs ++ packages.x86_64-linux.fastsa.propagatedBuildInputs;
|
||||||
shellHook = packages.x86_64-linux.microsa.preBuild;
|
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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
6
main.cpp
6
main.cpp
@ -84,7 +84,7 @@ int main(int argc, char* argv[])
|
|||||||
std::atexit(glfwTerminate);
|
std::atexit(glfwTerminate);
|
||||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
||||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
|
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) {
|
if (window == nullptr) {
|
||||||
std::cerr << "failed to create GLFW window" << std::endl;
|
std::cerr << "failed to create GLFW window" << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
@ -198,9 +198,9 @@ int main(int argc, char* argv[])
|
|||||||
ImGui::SetNextWindowPos(ImVec2(0.0f, 0.0f));
|
ImGui::SetNextWindowPos(ImVec2(0.0f, 0.0f));
|
||||||
ImGui::SetNextWindowSize(io.DisplaySize);
|
ImGui::SetNextWindowSize(io.DisplaySize);
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f);
|
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, 280.0);
|
||||||
ImGui::TableSetupColumn("", 0, 1600.0);
|
ImGui::TableSetupColumn("", 0, 1600.0);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
|
Loading…
Reference in New Issue
Block a user