portaudio-d 0.1.0
D bindings for the PortAudio library
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Dub binding portaudio for D
D bindings for the C library PortAudio, permettant de générer ou traiter de l'audio en temps réel avec le langage D.
🚀 Installation
Create a new D project with dub
:
dub init test_portaudio
cd test_portaudio
dub add portaudio-d
Make sure PortAudio is installed on your system :
macOS :
brew install portaudio
Linux (Debian/Ubuntu) :
sudo apt install libportaudio2 libportaudio-dev
Windows :
Download and build PortAudio manually, or use MSYS2 or vcpkg..
🧪 Minimal Example
import std.stdio;
import portaudio.stream;
void main() {
try {
auto stream = Stream(440.0f); // 440 Hz
writeln("Playing a 440 Hz sine wave...");
stream.play(500); // 500 ms
writeln("Finished.");
} catch (Throwable e) {
stderr.writeln("Erreur : ", e.msg);
}
}
Compile and run with:
dub run
or
dub
📦 Package Info
Package name: portaudio-d License: MIT Author: AudioNiceMicroController Repository: GitHub
✅ Status
✔️ Basic bindings working 🛠️ Ready for extensions (microphone input, streaming, etc.)
You can test the example
bash
dub run -c example440hz
- 0.1.0 released 2 days ago
- AudioNiceMicroController/binding_portaudio_for_dlang
- github.com/AudioNiceMicroController/binding_portaudio_for_dlang
- MIT
- Authors:
- Dependencies:
- none
- Versions:
-
0.1.0 2025-Jul-10 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
0 downloads total
-
- Score:
- 0.0
- Short URL:
- portaudio-d.dub.pm