Comments (3)
All right! I've uploaded audio
and audio-core
version 0.2.0
.
from audio.
Sure, are you working on something using the APIs?
from audio.
Thanks! I'm working on my type conversion traits (related to #34). I want as much as possible to work with the audio buffers, and I need the latest version to make stuff like this work for example:
let data: [u8; 12] = [0, 0, 0, 128, 0, 64, 0, 192, 0, 32, 0, 224];
let data_view = byte_slice_as_type!(data, I16LE);
let buffer = wrap::interleaved(data_view, 2);
assert_eq!(buffer.read_sample(0, 0).unwrap().to_scaled_float::<f32>(), 0.0);
assert_eq!(buffer.read_sample(1, 0).unwrap().to_scaled_float::<f32>(), -1.0);
assert_eq!(buffer.read_sample(0, 1).unwrap().to_scaled_float::<f32>(), 0.5);
assert_eq!(buffer.read_sample(1, 1).unwrap().to_scaled_float::<f32>(), -0.5);
assert_eq!(buffer.read_sample(0, 2).unwrap().to_scaled_float::<f32>(), 0.25);
assert_eq!(buffer.read_sample(1, 2).unwrap().to_scaled_float::<f32>(), -0.25);
Now I use the latest version from git, but I would like to publish this thing on crates.io at some point and then that's not allowed.
from audio.
Related Issues (19)
- example does not build HOT 2
- Frame access and manipulation HOT 9
- Unify documentation under a few common concepts
- Conversions cause distortion HOT 3
- 0.2.0 release? HOT 4
- Are Buf::skip and Buf::tail redundant? HOT 2
- consider renaming Sequential and Dynamic HOT 5
- SmallVec-style optimization HOT 3
- no_std support HOT 1
- Vet API against third party projects HOT 4
- interleaved <--> sequential conversions HOT 1
- lib.rs documentation links to docs.rs
- Add copy_within method on ChannelMut?
- What to do about ExactSizeBuf and wrap::Dynamic? HOT 12
- Implement `Buf` and `BufMut` directly on wrapped dynamic types instead of providing wrappers? HOT 3
- Topology struct?
- shrink_to_fit method on BufMut HOT 1
- Abstracting over sample format? HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audio.