View Issue Details

IDProjectCategoryView StatusLast Update
0006702MMW v4Playerpublic2010-12-10 05:11
Reporterrusty Assigned To 
PriorityimmediateSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version4.0 
Target Version4.0Fixed in Version4.0 
Summary0006702: WASAPI output plugin stutters
DescriptionThe wasapi output plugin stutters whenever any other activity takes place on the test system.

e.g. play a track in MediaMonkey, and
1) Open windows explorer to a directory containing many files and scroll
2) Double-click a jpg file so that a graphics viewer/editor opens

--> Stuttering

Note: switching to the DS output plugin solves this problem.
TagsNo tags attached.
Fixed in build1333

Relationships

related to 0006469 closedLudek Make WASAPI output plug-in default, with a fall-back to DS 

Activities

jiri

2010-11-22 11:10

administrator   ~0021403

Fixed in build 1327.
 - The playback thread should now be better scheduled by Windows, which is supposed to prevent any playback problems.

rusty

2010-11-22 23:35

administrator   ~0021435

Tested 1327 and the issue remains. Note that it doesn't occur immediately--it takes several minutes of opening and closing windows, and scrolling, and switching folders in Explorer, but at a certain point MM start stuttering incessantly.

jiri

2010-11-23 10:24

administrator   ~0021436

After such a heavy use, out_MMDS doesn't have any problem?
Could you also try to disable in_mfaudio? Its handling of mp3s will be disabled in favor of in_wmp3.dll, so we should test its handling of playback (which is supposed to be the same as in previous versions).

rusty

2010-12-02 15:46

administrator   ~0021552

Tested 1329.
The bug does not occur at all with out_MMDS.
Disabling in_mfaudio has no effect. Note that the bug occurs with all audio formats (mp3, ogg, m4a,).

Note that it's easier to reproduce the bug than I though. Either of the follow consistently replicates it:
a) continually click 'firefox' in the taskbar so that it opens and closes
b) open a large excel file and scroll

jiri

2010-12-03 16:55

administrator   ~0021596

Fixed in build 1331.
 - I wasn't able to reproduce using the suggested steps, but I found out that it can be easily reproducible on my machine when a conversion is started in MM, thus CPU gets to 100% and then there's the described problem. I increased the internal buffer and made some more tweaks and now I works flawlessly even in very heavy load on my machine.
 - Note that due to the nature of the WASAPI interface and some specific features of the plug-in, it's a little vulnerable to such a problem, however after the recent changes no stuttering should occur, unless possibly on very slow machines under a very heavy load.

rusty

2010-12-05 06:19

administrator   ~0021601

Tested on 1331 and it's _much_ better, however, I'm still able to replicate the problem by minimizing/maximizing the MM window repetitively. As to whether the problem will occur under normal usage, I'll test further.

rusty

2010-12-06 19:31

administrator   ~0021623

In regular usage (i.e. running MM while working in firefox, MS office, etc.) any time CPU usage spikes for an extended period (e.g. for 30 seconds) MM stutters.

It's much better than before, but it's still problematic.

jiri

2010-12-09 16:25

administrator   ~0021703

Last edited: 2010-12-09 16:26

Fixed in build 1333.
 - I further increased the default buffer size to 350ms and also made this value configurable (100-2000ms) so that every user can configure according to machine requirements. For me anything around 150-300ms works fine and prevents any playback issues even under _very_ heavy load.
 - Note that it's desirable to have this value as low as possible, because then various playback related events have lower latency (seek, crossfading, changing equalizer settings, ...)

 - I also added correct reactions to equalizer changes to this plug-in, so that it reacts almost immediately (as out_MMDS has always done). Also few problems, particularly in the Exclusive mode were fixed.

rusty

2010-12-10 05:11

administrator   ~0021708

Verified 1333.