Quantcast
Channel: NAudio
Viewing all 5831 articles
Browse latest View live

New Post: EncodeToAAC

$
0
0
the MFShutdown API should be called once at the end of the application. Are you actually calling MediaFoundationApi.Startup() at the beginning of your program?

New Post: Getting System.AccessViolationException in getting DeviceCount property of NAudio

$
0
0
Hi,

I am getting below mentioned exception randomly when trying to get DeviceCount property of NAudio Lib in C#.

2015/05/11 Sound - GetDevices failed due to unexpected error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at NAudio.Wave.WaveInterop.waveOutGetNumDevs()
at Sound.GetDevices()

Code Snip in c# is given below:

private void GetDevices()
  {
      var deviceCount = NAudio.Wave.WaveOut.DeviceCount;
  }
Could somebody help us to identify the root cause of this issue and how can we solve it?

New Post: Seting WaveOut buffersize directly to a number of samples

$
0
0
No solution for me either, as I as well as many others, don´t have asio drivers installed.

For best compability to the system I want to stay on WaveOut. I wonder that it isn´t possible to set a buffer size here.

New Post: Getting System.AccessViolationException in getting DeviceCount property of NAudio

$
0
0
I'd be surprised if this was the method that was causing the underlying issue. What have you done before calling this method?
What's the simplest program you can write that reproduces this fault?

New Post: Getting System.AccessViolationException in getting DeviceCount property of NAudio

$
0
0
Hi Markheath,

In below mentioned code portion, exception is coming in the second line in which we are trying to get device count.
     List<string> devices= new List<string>();
     var deviceCount = WaveOut.DeviceCount;
     for (int j = 0; j < deviceCount ; j++)
     {            
        try
        {
           devices.Add(WaveOut.GetCapabilities(j).ProductName);
        }
        catch
        {
        }
     }
This exception happens very randomly and can't be reproduced.

New Post: play audio in external process

$
0
0
Hello,

I'm facing some audio freeze because of Garbage Collection.

I'm thinking of create another process that will be in charge to play the audio.
The idea is to use Event to manage basic function such as Play, Pause, Stop, and, in order to know the audio position or some data about the audio file to play a non persistant Memory Shared File.

Doe's someone have tried this ? Do you think this can be achieved ?

My application is time sensitive and I really need to know the current position of the audio file with precision (100 ms of delay would be acceptable). How many time it should take to write and read this data in Memory Shared File ?

Thank you

New Post: play audio in external process

$
0
0
Done,

No more audio freeze because of the Garbage Collector and I retrieve current position approximatively every 50ms...
If you are facing this problem, external process is your solution...

New Post: Wasapiloopbackcapture speeds up console beeps

$
0
0
Hi I am using wasapi loop back capture in my application to record pure console beeps out putted by the sound card. It's able to record the beeps but it records the console beeps at a quicker duration than set. Does anyone know what the problem may be and is there a solution to this?

Created Unassigned: Get number of channels for DirectSoundOut [16486]

$
0
0
When I use a WaveOut device, I get a nice property called Channels, which tell me the number of output channels. Presumably, I don't need such one for AsioOut, as they all are mono (right?). But DirectSoundOut could have a different number of channels - and I see no way of figuring this out.

New Post: Wasapiloopbackcapture speeds up console beeps

$
0
0
With quicker duration you mean higher playbackrate?

I think you either handle the recorded data incorrectly (most likely) or your device is set to a higher playbackrate (some hardware might provide this feature). Another option could be, you resample the input and change Playbackrate this way (e.g. with WDLresamplingsampleprovider).

New Post: Wasapiloopbackcapture speeds up console beeps

$
0
0
Yeah it has a higher playback rate than from what I have set the console beeps too. I also use WaveIn to record the console beeps with noise and the playback of each beeps duration is correct.

I have set up the loop back capture as shown on pluralsight and from what people say on stackoverflow. However I sill cannot work out the problem that when its recording its speeding up the beeps when it should not be doing this. If WDLresamplingsampleprovider allows me to resample the rate of the beeps then I will give this a go and see if it works.

New Post: Support for AIFC in AiffFileReader

$
0
0
Will there be any AIFC support in the AiffFileReader in the near future? Really would like to see this feature being implemented.

In the meantime, is there any workaround to read AIFC somehow?

New Post: Play Audio File on InputDevice (Microphone)

$
0
0
Hi,

I have already developed an audio player. I wish I could play the sounds by the microphone (RecordingDevice) for use my application on all Voice/Cam Apps (Skype and other).

It's possible ?

Regard,

New Post: Support for AIFC in AiffFileReader

$
0
0
Sorry, no active work is planned in this area at the moment.

New Post: Play Audio File on InputDevice (Microphone)

$
0
0
Sadly, this type of things is not possible without using a "Virtual Audio Cable" which allows you to effectively connect the output of one sound device to the input of another.

New Post: Getting System.AccessViolationException in getting DeviceCount property of NAudio

$
0
0
I suspect that the memory has been corrupted by something else before you call this method

New Post: Pipe audio between separate applications/processes

$
0
0
Is it possible to pipe audio from one application to another in real-time or would this need to be implemented at a lower level, i.e. in the Windows driver stack somewhere?

An example would be a patchbay application which exposes audio end-points to a collection of other applications similar to jack in Linux.

New Post: Unmanaged memory keeps growing

$
0
0
I have an application that plays mp3 or wav files using NAudio and overtime the unmanaged memory usage of my app consistently keeps growing. I have used a memory profiler and it appears the MSACM32.dll (Microsoft ACM Audio Filter) is the cause of the unmanaged memory growth. If I remove the audio playback code I do not see the unmanaged memory usage grow (My app also uses NAudio to record audio from 1 or more sound cards and that works fine). This is on a Windows 7 64-bit machine running 32-bit code.

My app plays lots of unique audio clips normally in the 30-60 second range. In the past 2 days it has played just over 10,000 mp3 files and MSACM32 is using 36MB of unmanaged memory and growing.
Managed Heap memory usage over that same 2 day time frame grew by 143KB and totals 3.8MB.

I have tried various different code implementations to play the mp3 files always making sure any AudioFileReader and WaveOutEvent objects are disposed of and nothing seems to make a difference after many thousands of files.

I'm currently using the "Fire and Forget Audio Playback" from http://mark-dot-net.blogspot.com/2014/02/fire-and-forget-audio-playback-with.html, but I'm still seeing the Unmanaged memory usage keep growing.

As a test instead of reading the mp3 or wav file with an AudioFileReader I used a SignalGenerator to generate a tone for a few seconds. The Unmanaged memory usage did not grow so that leaves me to believe the issue is in the AudioFileReader area.

Has anyone ever ran into this issue playing back a large number of files?

New Post: MixingSampleProvider to Output

$
0
0
Thank you!

I managed to do what i wanted - It's great to see how much dedication you put in this project!

One more question - I want to play/pause different channels on their own, is that possible with the MixingSampleProvider?

New Post: Play Audio File on InputDevice (Microphone)

$
0
0
Ok,

Can you make this driver?
If so what would your price?

I made an audio player, I want the sounds are played on the "Virtual Audio Cable" and the latter returns the sound on the mic by default.

You think's it's possible ?

Regard
Viewing all 5831 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>