Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Dependencies
deno.land/x
Versions
Deno Portaudio
A low-level cross-platform FFI module for playing and recording audio based on the fantastic portaudio library.
Usage
import { PortAudio } from "https://deno.land/x/portaudio/mod.ts";
PortAudio.initialize(); // Initialize the module
const deviceCount = PortAudio.getDeviceCount(); // Get the number of audio devices attached
for (let i = 0; i < 0; i++) {
console.log(PortAudio.getDeviceInfo(i).name); // Print the name associated with each audio device
}
PortAudio.terminate(); // Free resources associated with the module
More usage examples can be found in the examples folder.
Maintainers
- Lino Le Van (@lino-levan)
License
MIT