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

Commented Issue: Destination array was not long anough when reading mp3 file...

I've got this code static void Main(string[] args) { try { Mp3FileReader reader = new Mp3FileReader(@"C:\testAudio.mp3"); long count = reader.Length; if (count <= int.MaxValue) { byte[] info = new...

View Article


Commented Issue: Destination array was not long anough when reading mp3 file...

I've got this code static void Main(string[] args) { try { Mp3FileReader reader = new Mp3FileReader(@"C:\testAudio.mp3"); long count = reader.Length; if (count <= int.MaxValue) { byte[] info = new...

View Article


New Post: Repeated Start/StopRecording does not work

When I start/stop recordings, while a playback is running at the same time, NAudio hangs after some time. Down below you can find a small demo that shows the effect. The test-loop is expected to...

View Article

New Post: Couple Questions

Hello, Is it possible to play a wave file out of the left or right channels only, aka a balance control? What method returns the total length of a wave file? Thanks, kingneb

View Article

New Post: Probably Simple

OK, I placed my dispose code in the Visual Basic form close event. That took care of it. As far as the crackling was concerned, that was due to the sound cards being USB and run through a hub. Those...

View Article


New Post: 2 Output devices simultaneously?

Im currently trying to develop a multi room audio system and i want to accomplish this with multiple soundcards (1 for each room). The problem is, that i can't figure out how to play one audio file on...

View Article

New Post: 2 Output devices simultaneously?

I had a similar problem and I found out that JACK could sync the clocks of multiple soundcards. But I ended up using Virtual Audio Cable to replicate the audio with all the clocks synced, because I...

View Article

New Post: 2 Output devices simultaneously?

I also discovered VAC but i want to choose the output device/devices dynamically. 

View Article


New Post: 2 Output devices simultaneously?

No, I'm afraid that NAudio contains nothing special to do this. You simply would have to try to sync playback to both devices yourself. This is because the Windows API's NAudio is making use of do not...

View Article


New Post: Probably Simple

glad you found the cause in the end

View Article

Commented Issue: Destination array was not long anough when reading mp3 file...

I've got this code static void Main(string[] args) { try { Mp3FileReader reader = new Mp3FileReader(@"C:\testAudio.mp3"); long count = reader.Length; if (count <= int.MaxValue) { byte[] info = new...

View Article

New Post: Audio Format Conversion

yes, the Mp3FileReader already does this, and there is a WmaFileReader as well in the WMA assembly if you build from source.

View Article

New Post: 2 Output devices simultaneously?

From VAC help file: "...clock rates are calculated roughly because data amount is counted in portions (buffers)." So my guess is that, you could set WaveOut of each soundcard to use multiple buffers,...

View Article


New Post: Couple Questions

Anyone?

View Article

New Post: DirectSoundOut support for SetVolume and so on?

Ok i tried to implement it by myself. The strange thing is that it only works on MTA Threads. Do you have any ideas why?

View Article


New Post: Couple Questions

Yes, it is possible. I would use Multiplexing wave provider (Mark posted a tutorial on his blog: http://mark-dot-net.blogspot.com/). WaveStream class has Length property which will tell you the length...

View Article

New Post: Couple Questions

Legoless is right if you want to simply route signals to different outputs rather than mix the levels. I have a feeling that WaveChannel32 has a balance/pan implementation. It would also be easy to...

View Article


New Post: 24 bit WASAPI

Hello, I had hoped to use NAudio to access raw 24 bit WASAPI audio streams in exclusive mode, but find that AudioClient.IsFormatSupported() allows only 16 bit access to my particular sound cards....

View Article

New Post: Audio Format Conversion

ya ya i got it mark,thanks a lot

View Article

New Post: 24 bit WASAPI

Update: it's not an NAudio problem. Spent this afternoon hacking a C++ version (no NAudio involved) which gives the same result. But I would still like to know what causes the 16 bit limitation. Ian

View Article
Browsing all 5831 articles
Browse latest View live


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