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

New Post: When playback ends

Now I'm using waveOut instead od DirectSoundOut. But PlaybackStopped event still doesn't fire, when playback actually ends itself.

View Article


New Post: When playback ends

it may be that the waveprovider you gave to waveOut never stops returning data from the Read function. this is quite possible as some streams pad with zeroes. you can simply test it by setting up a...

View Article


New Post: Play position

Now, I'm using WaveOut. I noticed that it has DesiredLatency property default set to 300. So I tried higher values. Even 2000. In the beginning everything seems to hear good, although the indicator...

View Article

New Post: Use of WaveViewer control with raw streams

I am trying to use the WaveViewer control to visualize a raw stream with 8bit, 8k data. The issue I am having is that the WaveViewer displays a nearly all black waveform (appears like extreme...

View Article

New Post: Use of WaveViewer control with raw streams

I found the source code to the control and saw what my problem is. The control is expecting 16 bit data and I was feeding it 8 bit data. I used WaveFormatConversionStream plotStream = new...

View Article


New Post: WaveIn to SoundPlayer issue.

NAudio has its own playback mechanisms so if you are using NAudio, you would not normally also use SoundPlayer. You could use WaveFileWriter to create a WAV file in a MemoryStream, but you can't append...

View Article

New Post: PlaybackState remains at Playing once finished

probably you have passed a never-ending stream in. Your code looks based on very old sample code. The new MP3FileReader doesn't need the use of BlockAlignReduction stream or an additional...

View Article

New Post: Use of WaveViewer control with raw streams

glad you got it working. Sorry about lack of documentation. NAudio is just a spare time hobby project for me and for the first 7 years I was the only person to use it, so there was no point writing...

View Article


New Post: Play position

If you are getting weird playback problems, use the WaveFileWriter to dump your output waveprovider to a WAV file and then check that the WAV file has the audio you expect. That will tell you whether...

View Article


New Post: Server-side microphone capture in ASP.NET/ C#

first of all, you are playing audio on the server, not on the clients. NAudio cannot be used to play audio in the browser of the people visiting your page. Secondly, you can't feed WaveOut from WaveIn...

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: Use of WaveViewer control with raw streams

I really appreciate your efforts to develop this and I think others who have a good handle on how to use the objects could help provide highly simplified code examples and class descriptions to...

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


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: NAudio Recording Performance

I'm using NAudio to record audio. It seems to work well on my new desktop machine, which is a 4 core i7, but on my 3 year old laptop, the recorded audio has all sorts of "popping" noises. I suspect...

View Article

New Post: PlaybackState remains at Playing once finished

Thanks for your answer. I stripped BlockAlignReduction and WaveFormatConversionStream from the code, but now I realize that you are saying they are not necessary for MP3FileReader whereas in the code I...

View Article


New Post: PlaybackState remains at Playing once finished

unless you are playing compressed WAV files (e.g. G.711 then no WaveFormatConversionStream step is necessary)

View Article

New Post: NAudio Recording Performance

The best way round popping is either to increase the latency (buffer sizes) or to find ways to optimise your playback code. Some of the NAudio playback models do create background threads, so you could...

View Article

New Post: Sending and playing MP3 frames

Hi I'm trying to get a simple mp3 stream (server -> client) going. At the moment I have a server which 1. Opens the mp3 file 2. Reads one frame 3. Sends the frame to the client a) More data? Go to...

View Article
Browsing all 5831 articles
Browse latest View live


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