Comments (2)
Since Symphonia's AudioBuffer
stores audio in a planar format (1 buffer per audio channel), SampleBuffer
was added as a utility to easily interleave samples into another buffer. In v0.5.x, there is no way to take the underlying buffer backing the SampleBuffer
directly. The intention was to not create additional allocations. So you must copy the samples from it.
In v0.6, I am removing SampleBuffer
and will have methods directly on AudioBuffer
that will allow your to copy the samples into slices, vectors, etc., in planar or interleaved format.
For now, you can avoid this additional copy by accessing the samples in the AudioBuffer
directly via the planes
function. This function returns you a slice of samples for a particular audio channel. You can then interleave the samples yourself into your own buffer.
Hope this helps.
from symphonia.
This should now be easy to do with the dev-0.6
branch in f1722b6`. Might be a while yet before 0.6 is released though.
from symphonia.
Related Issues (20)
- verify_timebase test failing on i386 architecture HOT 3
- License clarification (for the SUN Microsystems part) HOT 3
- [Feature request] make it easier to detect what a track / codec type is HOT 2
- style: `symphonia_format_mkv::ebml` prints a lot of `element with tag: A3` HOT 1
- `seek(SeekMode::Accurate, x)` can jump onto a position that is after the requested seek position HOT 14
- README claims support of AAC profiles other than AAC-LC using non-existent feature flags HOT 2
- [Doc request] Multi-value tags in metadata HOT 2
- Update benchmarks following v0.5.4 HOT 1
- Issue parsing AIFF files: "invalid chunk-id, expected 'FORM'" and "FourCC contains invalid characters: 02 87 04 06" HOT 3
- isomp4: `CodecType` and `extra_data` missing from `avc1` track HOT 1
- Log flood HOT 3
- [mkv] How to obtain `InfoElement::title` (mkv segment title)? HOT 5
- mp3 Seeking has warnings in logs HOT 1
- Probe result fails for FLAC files above 96kHz
- Mkv/Webm seeking error HOT 5
- How to decode an async stream? HOT 2
- Mono MP3 audio is sped up when using symphonia-play
- Question about Converting Audio Samples to WAV Format and Retrieving Bits-Per-Sample HOT 1
- Probe: Actually return errors instead of logging them
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 symphonia.