-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fft-add-larger-buffer-sizes
- Loading branch information
Showing
15 changed files
with
182 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
use nix | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,12 @@ description = """ | |
An easy to use and fast `no_std` library (with `alloc`) to get the frequency | ||
spectrum of a digital signal (e.g. audio) using FFT. | ||
""" | ||
version = "1.5.0" | ||
version = "1.6.0" | ||
authors = ["Philipp Schuster <[email protected]>"] | ||
edition = "2021" | ||
keywords = ["fft", "spectrum", "frequencies", "audio", "dsp"] | ||
categories = ["multimedia", "no-std"] | ||
rust-version = "1.63" # MSRV of base library, not examples and benchmarks | ||
readme = "README.md" | ||
license = "MIT" | ||
homepage = "https://github.com/phip1611/spectrum-analyzer" | ||
|
@@ -25,29 +26,25 @@ name = "fft_spectrum_bench" | |
harness = false | ||
|
||
[dependencies] | ||
microfft = { version = "0.6.0", features = ["size-32768"] } | ||
# approx. compare floats; not only in tests but also during runtime | ||
float-cmp = "0.9.0" | ||
# sin() cos() log10() etc for no_std-environments; these are not part of Core library | ||
libm = "0.2.7" | ||
paste = "1.0.14" | ||
float-cmp = "~0.10.0" | ||
libm = "~0.2.7" | ||
microfft = { version = "~0.6.0", features = ["size-16384"] } | ||
paste = "~1.0.14" | ||
|
||
[dev-dependencies] | ||
# readmp3 files in tests and examples | ||
minimp3 = "0.5.1" | ||
# visualize spectrum in tests and examples | ||
audio-visualizer = "0.4.0" | ||
# get audio input in examples | ||
cpal = "0.15.2" | ||
# audio data buffering | ||
ringbuffer = "0.15.0" | ||
rand = "0.8.5" # for benchmark | ||
# exit in examples | ||
ctrlc = "~3.3.1" # locked because of repo MSRV | ||
# for benchmark | ||
criterion = "~0.4.0" # locked because of repo MSRV | ||
audio-visualizer = "~0.4.0" | ||
minimp3 = "~0.5.1" | ||
|
||
# Additional dependencies for: examples | ||
cpal = "~0.15.2" | ||
ctrlc = "~3.4.0" | ||
ringbuffer = "~0.15.0" | ||
|
||
# otherwise FFT and other code is too slow | ||
# Additional dependencies for: benchmarks | ||
criterion = "~0.5.0" | ||
rand = "0.8.5" | ||
|
||
|
||
# Faster code in tests, otherwise FFT is too slow | ||
[profile.dev] | ||
opt-level = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
description = "spectrum-analyzer Rust crate"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; | ||
}; | ||
|
||
outputs = | ||
{ self, nixpkgs }@inputs: | ||
{ | ||
devShells.x86_64-linux.default = | ||
let | ||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; | ||
|
||
# Mainly runtime deps of the examples, not the base lib. | ||
runtimeDeps = with pkgs; [ | ||
alsa-lib | ||
fontconfig | ||
libxkbcommon | ||
xorg.libXcursor | ||
xorg.libX11 | ||
]; | ||
in | ||
pkgs.mkShell { | ||
packages = | ||
with pkgs; | ||
[ | ||
pkg-config | ||
] | ||
++ runtimeDeps; | ||
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath runtimeDeps}"; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.