SlySoft Forum   SlySoft Home

Go Back   SlySoft Forum > Software Talk (english) > ReClock

Reply
 
Thread Tools Display Modes
  #1  
Old 24th July 2012, 03:01
Srenard27 Srenard27 is offline
Junior Member
 
Join Date: May 2008
Posts: 6
Default Wasapi bug

Hello,
as it is explained in this forum : http://wiki.jriver.com/index.php/WASAPI , due to a bug in Microsoft's WASAPI system itself, some devices (USB DAC's) will start stuttering during playback when using WASAPI. You can find an example : http://hotfile.com/dl/66831334/61260...Flac.flac.html
I have this problem using Reclock with WASAPI EXCLUSIVE and a DAC. It happens very rarely but sometimes the sound begins to slutter as in the example above. It is impossible to determine when it happens, you can watch the same movie several times, it may not happen or it may happen one or twice (I had this problem with TMT5 and KM Player , I have tried many different settings before I discovered it was due to WASAPI itself ). If you stop the movie and start again, the sound is normal again.
Is there a way to avoid this problem using WASAPI with Reclock? I had to go back to Direct Sound to fix that and I still wonder if there is another solution with Reclock.
Best regards,
Sylvain
Reply With Quote
  #2  
Old 24th July 2012, 21:14
namaiki namaiki is offline
Senior Member
 
Join Date: Jul 2009
Posts: 166
Default

Try make the buffer setting in ReClock Configuration larger.
Reply With Quote
  #3  
Old 25th July 2012, 05:02
Srenard27 Srenard27 is offline
Junior Member
 
Join Date: May 2008
Posts: 6
Default

Quote:
Originally Posted by namaiki View Post
Try make the buffer setting in ReClock Configuration larger.
Thank you for your answer. I tried 1000 ms instead of 500 ms, but with this setting, image and sound are not synchronised any more . The voice is heard a few moment after the lips begin to move...
Reply With Quote
  #4  
Old 25th July 2012, 05:15
namaiki namaiki is offline
Senior Member
 
Join Date: Jul 2009
Posts: 166
Default

Quote:
Originally Posted by Srenard27 View Post
Thank you for your answer. I tried 1000 ms instead of 500 ms, but with this setting, image and sound are not synchronised any more . The voice is heard a few moment after the lips begin to move...
I don't recall experiencing such a bug. Did you only change the "Sound pre-buffer" setting?
Reply With Quote
  #5  
Old 25th July 2012, 07:58
Srenard27 Srenard27 is offline
Junior Member
 
Join Date: May 2008
Posts: 6
Default

Quote:
Originally Posted by namaiki View Post
I don't recall experiencing such a bug. Did you only change the "Sound pre-buffer" setting?
Absolutely. With 500 ms it's perfect. With 1000 ms, sound is delayed with Direct Sound and Wasapi exclusive, with a display rate of 25 Hz or 24 Hz, this problem is still here.
And I can easely hear that the value of pre-buffer has changed, because at the beginning of the movie, if the frequency of the movie is accelerated from 23,976 Hz to 25 Hz for instance, you briefly hear the sound at the normal pitch then a silence and then the sound comes back at a faster pitch. With 100 ms the silence is short, with 1000 ms the silence is about 1 s. It "works" but sound is delayed.
1000 ms is the maximum you can set.
Reply With Quote
  #6  
Old 25th July 2012, 12:15
James James is offline
SlySoft Development Team
 
Join Date: Oct 2005
Posts: 15,649
Default

Quote:
Originally Posted by namaiki View Post
Try make the buffer setting in ReClock Configuration larger.
This doesn't change the Wasapi buffer size. But there is a registry value for this:
DWORD WasapiBufferSize (Default=100)

If change was successfull, you'll see it in the logfile

"Requested WASAPI bufferDuration ... ms"
__________________
My responses tend to represent myself only and do not necessarily represent the views of SlySoft, Inc. PLEASE POST ALL TECHNICAL PROBLEMS ON THE FORUMS. Thank you.
Reply With Quote
  #7  
Old 26th July 2012, 09:55
Srenard27 Srenard27 is offline
Junior Member
 
Join Date: May 2008
Posts: 6
Default

Quote:
Originally Posted by James View Post
This doesn't change the Wasapi buffer size. But there is a registry value for this:
DWORD WasapiBufferSize (Default=100)

If change was successfull, you'll see it in the logfile

"Requested WASAPI bufferDuration ... ms"
Thank you James.
I have modified the registry as you told me. After that, in the log file, I could read :

Requested WASAPI bufferDuration 200 ms
.......
WasapiClient Audio Buffsize (ms): 200
......

It seems OK but a few lines after there is :

WARNING WASAPI buffer overflow!
WARNING WASAPI buffer overflow!

I will try other values...
Reply With Quote
  #8  
Old 27th July 2012, 03:31
Srenard27 Srenard27 is offline
Junior Member
 
Join Date: May 2008
Posts: 6
Default

Quote:
Originally Posted by Srenard27 View Post
I will try other values...
634 ms is the maximum I can set.
With 635 ms or more I get this message in the log file (+ a message in a little window and no sound) :

ERROR Initialize WasapiClient failed hr=88890016

Now I will watch all movies with a 634 ms buffer size and see if the sluttering sound occurs agains.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:52.


All trademarks are the property of their respective owners.
© 2007–2013 SlySoft Inc.