mesilliac / pulse-simple

Cgo bindings to PulseAudio's Simple API, for easily playing or capturing raw audio.
MIT License
24 stars 7 forks source link

Needs more examples. #1

Open mesilliac opened 9 years ago

mesilliac commented 9 years ago

It would be good to have a couple more complicated examples.

An "echo" example would be a good start, to demonstrate Capture() usage.

An example of advanced stream usage, such as setting channel mapping or buffer attributes manually, might be useful.

whyrusleeping commented 9 years ago

Could you possibly provide an example showing how to read data in from a stream? Looking for something to use to make a sort of music visualizer from

mesilliac commented 9 years ago

I've been a little busy, but this is still on my todo list. If anyone else wants to contribute examples i'll be sure to add them.

mesilliac commented 7 years ago

I've added a basic example of audio capture - it captures audio, displays a crude volume meter while capturing, and plays back the captured audio. It can be run with go run examples/echo.go.