Small Stuck(jerk) when Playing Audio File

Jun 27, 2013 at 7:48 AM
Edited Jun 27, 2013 at 7:51 AM
Hi,
When playing song in NAudio there is a small stuck(jerk) when minimize and maximize the application or any window in the system.

Is there any problem with my system configuration.

Please tell the solution for that.

Thanks in Advance

Regards,
Hinshin
Coordinator
Jun 27, 2013 at 10:21 AM
I think this happens because a garbage collection gets triggered. Are you working with low buffer sizes? Longer audio buffers may allow playback to continue uninterrupted
Jun 27, 2013 at 12:24 PM
Hi,
How i increase the buffer size.

Regards,
Hinshin
Jun 28, 2013 at 10:05 AM
Hi Sir,
   Please tell me How i increase the buffer size. 

Thanks in Advance
Regards,
Hinshin
Coordinator
Jun 28, 2013 at 10:12 AM
what output model are you using? Most of them contain a BufferSize property
Jul 18, 2013 at 1:00 PM
Hi Sir,
    When I play song in NAudio Demo(Audio File Playback) and press minimize and maximize button continuously, it will stuck (small jerk) and it playing.
Thanks in Advance.
Regards,
Hinshin
Coordinator
Jul 18, 2013 at 1:44 PM
As I said before, I think this is the garbage collector running, and interrupting playback. Not a lot can be done, except perhaps work with larger buffer sizes.
Jul 22, 2013 at 12:17 PM
Edited Jul 22, 2013 at 12:50 PM
Hi Sir,
   Thanks for your response, I was using WaveOut as output, please tell me, how to increase buffer size...
What is the Average Buffer Size for WaveOut.
Thanks & Regards,
Hinshin
Coordinator
Jul 26, 2013 at 11:14 AM
you can get or set buffer size on the WaveOut object. It's a public property