Questions tagged [naudio]
NAudio is an open source audio library for .NET, supporting audio playback, recording and sample manipulation as well as reading and writing various audio file formats.
naudio
1,581
questions
-1
votes
0
answers
53
views
Maui MP3 file duration - MediaElement Duration reads 00:00
I am using the new dotnet maui MediaElement, and before letting my user pick an MP3 file to play, I want to list the tracks and their durations - in my case MP3 files. However unless you get the ...
0
votes
0
answers
10
views
How can I record internal computer sound joined with input sound and save all in one file?
I want to write a client and server in c#, client will record internal sound + input sound (microphone) and stream it to the server, how can I achieve the join effect, to stream their both without any ...
0
votes
0
answers
10
views
NAudio AudioSessionManager.RefreshSessions throws not implemented
In some clients' machines this code
var appsList = new Dictionary<string, ActiveAudioDevice>();
MMDeviceEnumerator enumerator = new MMDeviceEnumerator();
foreach (MMDevice device in enumerator....
0
votes
0
answers
26
views
How do i add Wheel Scrolling?
I have a project that converts MIDI inputs into keyboard actions, specifically optimized for Minecraft. However, I'm struggling with implementing a scrolling function. I've tried various solutions, ...
0
votes
1
answer
30
views
naudio input device receives no correct data
I want to record some sounds to a wave file on a windows 11 PC with Bitdefender.
So far I use this 2 methodes:
private MMDevice SetCurrentDevice(DataFlow dataFlow, string deviceName)
{
var ...
0
votes
0
answers
32
views
NAudio stream WasapiLoopbackCapture
I am trying to write a simple remote speaker audio capture app using NAudio.
There is a winforms client app that captures the audio and sends it with HttpRequests to a winforms server app.
I have ...
0
votes
0
answers
33
views
How to build screen recorder Winform GUI app which also records the sound of system at the same time
I wanted to build a screen recorder app which should record the screen and at the same time it should record the audio of system. So I tried to use AI tools to do this, they suggested me using NAudio ...
0
votes
0
answers
64
views
How do I reliably play a wav resource in a cross-platform Avalonia app?
I am using Avalonia to write a very simple game featuring some short simple sounds I prefer to store in the application resources (assembly assets - I just put them in the Assets folder in the ...
1
vote
0
answers
34
views
NAudio - Start mp3 while other mp3 still running
Let's assume we have an endless list of mp3's. At a given point each mp3 fades out (different for each mp3), and the next mp3 starts. So for a short period of time there are the new mp3 and the fading ...
0
votes
0
answers
73
views
Alternative to NAudio for reading soundfiles in C#?
I am using NAudio to read a file stream of an audiofile and using the resulting double[] vector to create a spectrogram:
private List<double[]> CreateFFTs(double[] audio, int sampleRate)
{
...
5
votes
0
answers
308
views
How can I play a Musical Note using NAudio (Or Otherwise) in C#?
I Nugetted NAudio for Winforms. Does anybody have an example of how to play a note using NAudio (or by some other means)? I would hope it'd be something easy similar to:
NAudio.PlayNote(28, 100); // ...
0
votes
0
answers
21
views
Capturing Application Audio for Manipulation and Streaming
I am working on an application in Unity which needs to be able to do the following:
get the audio data from the active applications on the local machine
filter out audio so that only specific audio ...
1
vote
1
answer
110
views
Play Audio from file share in Blazor
I want to play audio(.wav) file on a button click from a file share location: myabc.com/mysharedfolder/mysharedfile.wav.
When I try to access it using the below code, I get an error in the console.
&...
0
votes
0
answers
54
views
Having issues with NAudio when trying to use AudioSessionManager2 in C#
When referencing AudioSessionManager2 I'm getting the error:
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'AudioSessionManager2' ...
0
votes
0
answers
33
views
How to change output device using asioOut
Currently working on an audio processor, and I have a small settings menu to change input and output devices, input is simple enough, but I'm not sure how to change the output device. I'm using NAudio,...