If possible, detail how work each parameter in advancedsettings for us..
Hi Wanilton - glad it works for you. Here's a synopsis of my advancedsettings.xml:
<advancedsettings>
<audio>
<resample>0</resample>
<forceDirectSound>0</forceDirectSound>
<transcodeto>0</transcodeto>
<audiophile>1</audiophile>
<allchannelstereo>1</allchannelstereo>
<audiosinksizesharedmsec>120</audiosinksizesharedmsec>
<audiosinksizeexclusivemsec>100</audiosinksizeexclusivemsec>
</audio>
<gui>
<algorithmdirtyregions>1</algorithmdirtyregions>
<nofliptimeout>1000</nofliptimeout>
</gui>
<useddsfanart>true</useddsfanart>
<allowd3d9ex>true</allowd3d9ex>
</advancedsettings>
<resample>: force resampling at xxx khz. Use if your soundcard requires a certain sampling rate eg. 48000
<forceDirectSound>: as it states, even if WASAPI support is detected on your machine. I recommend leaving this off (0) unless you have trouble with WASAPI or are on Windows XP
<transcodeto>: forces transcoding of Dolby (AC3) to LPCM for devices which don't support it
<audiophile>: forces the output to remain true to the source and not be down-mixed or resampled. May cause delay in receiver switching to new formats, but purest reproduction of source
<allchannelstereo>: forces two-channel sources (CD, MP3, etc) to be output to all speakers per L/R mappings, with downmix for center and LFE. May be broken in this release as I had to revert some changes to avoid current bug
<audiosinksize(shared)(exclusive)msec>: the buffer duration in milliseconds for shared or exclusive modes. Can be increased to reduce discontinuities on slower hardware or decreased to reduce lag on skipping/fast-forwarding. Note that hard-coded minimums of 50msec override this value. Values under that ignored.
<algorithmdirtyregions>: can be 0-4. Different methods to reduce CPU load in repainting the GUI screen - see XBMC Wiki for details
<nofliptimeout>: Time in msec after which if no change occurs on the screen video buffer flipping stops - mostly good for battery usage
<useddsfanart>: hands over drawing of fanart images to DirectDraw for hardware acceleration and possible speed boost
<allowd3d9ex>: allows use of DirectX extensions for speed boost - not always compatible (as you found!)
Of primary use to folks here will be the <audiophile> settings if you have a lot of high-bitrate FLACS, etc and of course <audiosinksize(mode)msec> if you are experiencing sound dropouts during playback.
Cheers,
Damian