Skip to content

Airudit/alsa.net

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALSA.NET

Simple .Net Standard Wrapper for the Advanced Linux Sound Architecture (ASLA).

Dependencies

Make sure to have the following libary installed on your target device:

sudo apt-get install libasound2-dev

First Steps

  1. Create your custom device settings or use the systems defaults
var soundDeviceSettings = new SoundDeviceSettings();
  1. Build your sound device interface
using var alsaDevice = AlsaDeviceBuilder.Create(soundDeviceSettings);
  1. Record 10 seconds of Audio to a file
alsaDevice.Record(10, "output.wav");
  1. Play a Wav file
alsaDevice.Play("output.wav");

Ensure to look into the example projects for more details on how to use this package.

Thank you

Thanks to ZhangGaoxing for the initial work on the ALSA Native Bindings.

Releases

No releases published

Packages

No packages published

Languages

  • C# 98.5%
  • Batchfile 1.5%