Code Monkey home page Code Monkey logo

portaudio-rs-demos's Introduction

portaudio-rs Demos

Copyright (c) 2018 Bart Massey

This collection of demos is an alternative to those provided with the source code to the portaudio-rs PortAudio bindings crate.

As someone new to PortAudio and portaudio-rs, I found the existing demos to be overly complex and mysterious. This code builds up from a series of minimal examples. It is also a bit more Rustic.

Demos

  • nbsquare.rs: Emit a monophonic square wave on audio output using the PulseAudio non-blocking interface.

  • bsquare.rs: Emit a monophonic square wave on audio output using the PulseAudio blocking interface.

  • bsine.rs: Emit a monophonic sine wave on audio output using the PulseAudio blocking interface.

  • bwhite2.rs: Emit stereo white noise from a wavetable on audio output using the PulseAudio blocking interface.

  • brecord.rs: Read monaural audio input using the PulseAudio blocking interface and write it to stdout as signed 16-bit big-endian samples. On Linux, you can save the output in a file named "test.s16" and play it with the SoX play command: play -B -r 44100 test.s16.

  • bfuzz.rw: Read audio input from a WAV file and play it "fuzzed" using PortAudio's blocking interfaces.

Note To Contributors

These demos share a lot of code: they are fairly copy-and-paste. This is intentional: I want the demos to be self-contained without going to fancy structuring that might obscure the function. If you make a change to one of the demos, please check the others to see if your change should also be made there.

License

This program is licensed under the "MIT License". Please see the file LICENSE in this distribution for license terms.

portaudio-rs-demos's People

Contributors

bartmassey avatar

Stargazers

Abraham Tugalov avatar Nate avatar Matthew Boman avatar GAURAV avatar Andrew Prentice avatar

Watchers

 avatar James Cloos avatar  avatar

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.