Skipping AUDIO: Couldn't create secondary buffer (DSERR_CONTROLUNAVAIL)
#1
This bug has been buging me Smile since a while now:

Couldn't create secondary buffer (DSERR_CONTROLUNAVAIL)

Since using +/- SVN 17000+ I have problems playing mp3 or flacs, and apple trailers. Sound seems to skip 2-4 seconds.

I posted a bugreport on trac but there has not been a solution yet.

With this post I am trying to find out if more people are having this problem.

At this moment (SVN as of 20-08-2009) it looks like the 5.1 switch to downmix has no influence on the bug.

Log:
00:28:01 T:1180 M:1162219520 DEBUG: CFileCache::Open - opening <F:\Music\Muziek\Albums Flac\John Mayer\(2001) - John Mayer - Room for

Squares [995Kbit]\04 - Your Body Is A Wonderland.flac> using cache
00:28:01 T:368 M:1162190848 DEBUG: thread start, auto delete: 0
00:28:01 T:1180 M:1161801728 INFO: PAPlayer: Playing F:\Music\Muziek\Albums Flac\John Mayer\(2001) - John Mayer - Room for Squares

[995Kbit]\04 - Your Body Is A Wonderland.flac
00:28:01 T:1180 M:1161793536 DEBUG: PAPlayer: Creating new audio renderer
00:28:01 T:1180 M:1161539584 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: Primary Sound Driver
00:28:01 T:1180 M:1161539584 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: Delta AP 1/2
00:28:01 T:1180 M:1161539584 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: Delta AP SPDIF
00:28:01 T:1180 M:1161113600 DEBUG: CWin32DirectSound::Initialize: Packet Size = 12384. Avg Bytes Per Second = 176400.
00:28:01 T:1180 M:1161101312 DEBUG: CWin32DirectSound::Initialize: Couldn't create secondary buffer (DSERR_CONTROLUNAVAIL). Trying

without LOCHARDWARE.
00:28:01 T:1180 M:1160904704 DEBUG: CWin32DirectSound::Initialize: secondary buffer created
00:28:01 T:1180 M:1160859648 DEBUG: CApplication::OnPlayBackStarted - Playback has started
00:28:01 T:1180 M:1160859648 INFO: PARTY MODE MANAGER: Playing song at 0
00:28:01 T:832 M:1160859648 DEBUG: thread start, auto delete: 0
00:28:01 T:832 M:1160859648 DEBUG: PAPlayer: Thread started
00:28:01 T:1180 M:1160663040 DEBUG: Activating window ID: 10500
00:28:01 T:1180 M:1160663040 DEBUG: Checking if window ID 10500 is locked.

TRAC:
http://trac.xbmc.org/ticket/6488

Does anyone have some insight in this bug ?

Do more people have this bug?
MBP late 2009 - TimeCapsule 2TB - Harmony One+ - Readynas NV+ 8TB RAID5 - Mac Mini late 2009 with 10.9.0 and VDA - Panasonic TX-PG420ES -
Reply
#2
You'll be more likely to have luck getting help if you post your full debug log. See my signature for more details.
Reply
#3
DSERR_CONTROLUNAVAIL isn't bug it just says that you HW doesn't support volume, pan, and so on and therefore XBMC creates the buffer without it. Being no sound expert I'm just guessing but if you choose digital out it's normal that you can't control the volume level as you send the bit stream directly to your receiver.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#4
Ok, sorry about the bug post, I thought that the trac post had enought infomation.

Here goes:

1. Built on Aug 18 2009 (SVN:22242, compiler 1500)
2. Windows XP SP3 all patches
3. AMD X2 3800+
4. 1GB RAM
5. AMD 3850 Catalyst 9.1
6. M-audio Audiophile 2496 Delta_V32_5.10.00.5069v3 (http://www.m-audio.com/products/en_us/Au...e2496.html)
7. MCE receiver
8. Built on Aug 18 2009 (SVN:22242, compiler 1500)
9. The music skips.
10. Debug log:
http://pastebin.com/f30fe5c94


I downloaded the most recent driver of my soundcard. The card does not have the ability to change volume. So that is where the first error came from. I do not use digital output, only analoge.

I changed the soundcard inside XBMC into a different one and now the error is gone and playing music does not skip.

However, it still skips in party mode. So playing a full album plays fine, until a party mode has been played. Playing in party mode makes the music skip 1-2 seconds every 30 seconds or so. Playing a full album from now on makes the music skip about every 30 seconds 1 second.

To recap:
Changing the soundcard did not solve the problem, it merely reduced a bit

playing an album at first does not make the music skip

playing in partymode makes music skip and from that moment on, even albums skip.

It kind of gradualling keeps getting worse and worse and if I played say 12 track from an album the sound is almost 50% skipped and garbled up while playing the last 12th track
MBP late 2009 - TimeCapsule 2TB - Harmony One+ - Readynas NV+ 8TB RAID5 - Mac Mini late 2009 with 10.9.0 and VDA - Panasonic TX-PG420ES -
Reply
#5
I have the same issue with an M-audio Audiophile 2496. The first song plays fine and the second song on skips every few seconds. XBMC is the stable version, freshly installed.
Reply
#6
Ok, I uninstalled the M-Audio driver and enabled the on board audio. The skipping disappeared. It looks like the problem is a conflict with the M-Audio driver since the card is still installed but has no driver.
Reply
#7
I can confirm issues with the M-Audio as well. My problem is playing videos. as soon as I skip forward, the entire streams goes out of whack. It starts playing faster and the slower and it never gets fixed until you stop and restart.

I did the same as you. Enabled the onboard soundcard and it started working fine.

I also have the latest drivers for M-Audio so there has to be some type of bug on XMBC with M-Audio
Reply

Logout Mark Read Team Forum Stats Members Help
Skipping AUDIO: Couldn't create secondary buffer (DSERR_CONTROLUNAVAIL)0