Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Sound & Audio

Vista - Capture device names truncated on Vista SP1

Reply
 
Old 06-20-2008   #1 (permalink)


32bit
 
 

Capture device names truncated on Vista SP1

Hello,

We are having an issue with DirectSound on Vista Service Pack 1. We use DirectSound API to enumerate audio devices. Returned audio capture devices have all their device names truncated to 31 characters. Playback devices are correct, meaning that the names are complete.

Using the same application on Vista without Service Pack 1, the device names appear fine.

The test application has been built on XP and linked with March 2008 DirectX SDK. We tried both Visual Studio 6 and Visual Studio 2008.

Here’s the source code:

// TestDirectSound.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "stdio.h"
#include "Dsound.h"

int g_numDevices = 1;

BOOL CALLBACK DSEnumCallbackAll(LPGUID lpGuid, LPCSTR lpcstrDescription, LPCSTR lpcstrModule, LPVOID lpContext);

int main(int argc, char* argv[])
{
printf("Capture devices:\n");
DirectSoundCaptureEnumerate(DSEnumCallbackAll, NULL);

g_numDevices = 1;
printf("\nPlayback devices:\n");
DirectSoundEnumerate(DSEnumCallbackAll, NULL);

return 0;
}

BOOL CALLBACK DSEnumCallbackAll(LPGUID lpGuid, LPCSTR lpcstrDescription, LPCSTR lpcstrModule, LPVOID lpContext)
{
printf("Device %i is %s\n", g_numDevices++, lpcstrDescription);

return TRUE;
}

Here’s a sample output:

Capture devices:
Device 1 is Primary Sound Capture Driver
Device 2 is Aux (Realtek High Definition Au
Device 3 is Headset Microphone (Plantronics

Playback devices:
Device 1 is Primary Sound Driver
Device 2 is Speakers (Realtek High Definition Audio)
Device 3 is Headset Earphone (Plantronics Headset)

Here are the versions of dsound.dll:

Vista: 6.0.6000.16386
Vista SP1: 6.0.6001.18000

We tried copying 6.0.6000.16386 version (Vista without SP1) to where the test application is located. We got exactly the same results.

We wrote a small python program that does the same thing. The results were identical, namely capture devices were all truncated. However copying 6.0.6000.16386 version (Vista without SP1) to where the test application is located now resulted in a correct output. It implies that Python application used the local dsound.dll and it fixes the enumeration problem.

We conclude that Vista’s dsound.dll (6.0.6001.18000) has an issue with enumerating capture devices.

Has anyone encountered the same problem?

Sam.

My System SpecsSystem Spec
Old 05-20-2009   #2 (permalink)


Vista Enterprise
 
 

Re: Capture device names truncated on Vista SP1

Sam,

Did you ever resolve this issue? I'm seeing the exact same problem?

Cheers,
Glen
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Video Capture Device Graphic cards
Truncated desktop file and folder names? Vista General
Anyone found a good video capture device? Sound & Audio
analog capture device Vista music pictures video
Audio Capture Device Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46