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 ArticleCommented 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew Post: 2 Output devices simultaneously?
I also discovered VAC but i want to choose the output device/devices dynamically.
View ArticleNew 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 ArticleCommented 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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