Coder Social home page Coder Social logo

omegaframe / alsa.net Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhanggaoxing/alsa.net

10.0 10.0 8.0 1.04 MB

Simple ALSA Wrapper for .NET Standard

Home Page: http://omegaframe.com/opensource/alsa.net

License: Other

C# 98.85% Batchfile 1.15%

alsa.net's People

Contributors

aloncatz avatar omegaframe avatar zeroexploit avatar zhanggaoxing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

alsa.net's Issues

[Improvement]

Hi,

I wanna use the library but I need to play song for time limit from ms to minutes. Did you know if it's possible with Alsa and if you will be implement it on your lib ?

Regards

Can not open recording device

Hi

I am getting the following error.

I am using this library in .net C# project on a RaspberryPi. The aim is to capture audio. from a USB mic.

How can I specify the USB mic or get a list of device to connect with?

An unhandled exception of type 'Alsa.Net.Internal.AlsaDeviceException' occurred in Alsa.Net.dll: 'Alsa Error: Can not open recording device. Error -2. No such file or directory.'
   at Alsa.Net.Internal.UnixSoundDevice.ThrowErrorMessage(Int32 errorNum, String message)
   at Alsa.Net.Internal.UnixSoundDevice.OpenRecordingPcm()
   at Alsa.Net.Internal.UnixSoundDevice.Record(Stream saveStream, CancellationToken token)
   at Alsa.Net.Internal.UnixSoundDevice.Record(UInt32 second, Stream saveStream)
   at Alsa.Net.Internal.UnixSoundDevice.Record(UInt32 second, String savePath)
   at Program.Main(String[] args) in /home/dotnet.core.iot.csharp/Program.cs:line 12

Calling Set/GetSystemVolume on 64-bit Linux throws an Invalid Argument exception

Using 64-bit Debian, if we attempt to call SetSystemVolume or GetSystemVolume, we get the following exception:

SetSystemVolume error: Alsa.Net.Internal.AlsaDeviceException: Alsa Error: Volume error
Error -22. Invalid argument.
at Alsa.Net.Internal.UnixSoundDevice.ThrowErrorMessage(Int32 errorNum, String message)
at Alsa.Net.Internal.UnixSoundDevice.SetPlaybackVolume(Int64 volume)
at Alsa.Net.Internal.UnixSoundDevice.set_PlaybackVolume(Int64 value)

The same code works as expected on 32-bit, for example on a Raspberry Pi running a 32-bit OS.

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.