Giter Club home page Giter Club logo

akasha's People

Contributors

alextmjugador avatar alxpettit avatar

Stargazers

 avatar

Watchers

 avatar  avatar

akasha's Issues

Crash when writing OGG from multiple-channel mic on Windows

Tests on Windows show a crash when running akasha rec.

Err on a machine with dual microphone streams, on Windows.

InvalidAudioBlockChannelCount { expected: 1, actual: 2 }

Looks like upstream code expects an array of arrays of blocks, with one audio block per channel. For some reason, I expected the samples would just alternate, and I'd just need to recalculate the sample rate to get the same fidelity -- but it looks like I will need to dynamically build an array of arrays of blocks, and pass that around, which will require significant refactoring and rethinking of the asynchronous stream approach.

Edit:

Wow, good catch, me! Do you wanna just pass around a Vec<Vec<f32>> or something? The heap allocation isn't great, but it probably won't affect performance much, and earlier benchmarking suggested Vec was actually more performant than less heap-y alternatives, at least, without some ergonomic memory recycling.

Note: building a stream of a fixed size block, from an unknown size will require some slightly nontrivial logic to do efficiently. On the plus side, though, this might slightly reduce the overhead of whatever state machine nonsense async streams are doing behind the scenes. :D

Alternatively, we could just interleave the channels, but if the stream ever got interrupted we would have to make sure there was no ambiguity about which sample goes to which channel.

Edit 2: looks like maybe CPAL itself uses the interleaved format?

Also, I forgot this, but apparently I was already using Chunk objects, which are a wrapper around Vec<f32> if I remember rightly.

So, I'm going to have to un-interleave them. :/

No support for hostnames in file name

It would be useful when recording from multiple devices, for some use cases, to be able to combine all the files into one directory -- but there is a risk of file name collision. It would be ideal to have the file name terminate with a %HOSTNAME in the format string or somesuch.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.