Crates.io | sound-shader |
lib.rs | sound-shader |
version | 0.1.1 |
source | src |
created_at | 2021-10-04 16:33:20.476379 |
updated_at | 2021-10-05 02:14:52.44368 |
description | Simple sound shader player |
homepage | https://github.com/ytanimura/sound-shader |
repository | |
max_upload_size | |
id | 460204 |
size | 77,983 |
A simple CLI application for playing sound GLSL shader by Rust.
Clone repository, and run
cd sound-shader
mkdir workspace
cd workspace
cargo run -- --init
cargo run
There are some examples in examples
. A very cool sound shader by Inigo Quilez can be played with the following command!
cargo run -- examples/pirates.comp
sound-shader 0.1.0
Yoshinori Tanimura <yotabaito@gmail.com>
Simple sound shader player
USAGE:
sound-shader.exe [FLAGS] [OPTIONS] [--] [FILE]
FLAGS:
-h, --help Prints help information
--init init default config file "default.json" and prepare sample shader source "sample.comp"
-V, --version Prints version information
OPTIONS:
-c, --config <FILE> read configuration json
-o, --output <FILE> recording wav file
-r, --resources <FILE>... add audio resource, wav is supported.
-s, --silent <SECONDS> not play, just recording.
ARGS:
<FILE> run shader source
The json settings specified in --cofig
will be treated as the basic settings.
If other arguments are specified for shaders, resources, or output, the settings will be overridden at runtime.
For example, if only a different shader is specified in the other arguments, the result will be output to the destination specified json.
If no arguments are specified, default.json
will be loaded, but if other arguments are specified, they will be ignored;
if you want to use default.json
as the default setting, you must load it explicitly with --config
.
This crate is distributed under Apach-2.0. However, this repository contains some resources that are distributed on a non-commercial basis only. Specifically, the following files are distributed on a non-commercial basis.
resources/*.wav
examples/pirates.comp
The unit tests and examples are done on my Windows and Mac machines. Since this program using both GPU and audio devices, I haven't established a valid CI.