Поделиться через


Waveform Audio Registry Settings (Windows Embedded CE 6.0)

1/6/2010

The registry stores information necessary to configure the system for applications and hardware devices. The registry also contains information that the operating system continually references during operation.

Note

The default registry values vary depending on which Catalog items are included in your OS design. For more information, see Default Registry Settings.

Customizing Device Sound Files

The operating system uses the registry to locate wave resources in a DLL for system sounds. These sounds can be customized by adding a new resource DLL containing customized sounds, and then adding a registry entry to use these new sounds.

You can customize sound effects with the registry subkey HKEY_LOCAL_MACHINE\Drivers\Builtin\WAPIMAN\Clicks.

The following code example shows how this registry subkey can be used to load custom sounds from a resource DLL, in this case WavClick.dll:

[HKEY_LOCAL_MACHINE\Drivers\Builtin\WAPIMAN\Clicks]
    "ClickDLL"="WavClick.dll"    <name of dll to load resources from>
    "KeyLoud"=dword:64           <resource ID of this sound>
    "KeySoft"=dword:65
    "TouchLoud"=dword:66
    "TouchSoft"=dword:67

Control Panel Settings

You can affect the volume of waveform audio output with the registry subkey HKEY_CURRENT_USER\ControlPanel\Volume.

The following table shows the named values for this subkey.

Value : type Description

Volume : DWORD

The default setting is 0xFFFFFFFF.

This value sets the default volume level that each waveform audio device is initialized to.

The allowable range for this value is from 0 to 0xFFFFFFFF.

PlaySound : DWORD

The default setting is 0xFFFFFFFF.

This value set the initial volume level for the function PlaySound.

The allowable range for this value is from 0 to 0xFFFFFFFF.

Mute : DWORD

The default value is 7, which means all sounds are enabled.

This value identifies which types of sounds are enabled. It is a bitwise OR of the following values.

  • 1 - Notification sounds are enabled.
  • 2 - Application sounds are enabled.
  • 4 - Event sounds are enabled.

Screen : DWORD

The default setting is 2.

This value sets the volume level for screen taps. It can be set to one of the following values.

  • 0 - Muted
  • 1 - Soft
  • 2 - Loud

Key : DWORD

The default setting is 2.

This value sets the volume of taps on the soft keyboard. It can be set to one of the following values.

  • 0 - Muted
  • 1 - Soft
  • 2 - Loud

Disabling audio recording

This feature allows you to optionally turn off the recording capabilities of your device. This feature is provided by the registry key: HKEY_LOCAL_MACHINE \System\AudioRecording.

The following table shows the named values for this key.

Value : type Description

Enabled : DWORD

The absence of this key indicates that audio recording is ENABLED.

The presence of this key with a value of anything other than 0 indicates that audio recording is ENABLED.

The presence of this key with a value of 0 indicates that audio recording is DISABLED.

This registry setting changes the behavior of the following applications:

  • The Audio Toolbar
    Disabling audio recording will remove the recording button from the Audio Toolbar.
  • Notes
    Disabling audio recording will cause the "View Recording Toolbar" menu item to disappear.
  • Messaging
    Disabling audio recording will cause the "Insert Voice Note" menu item to disappear.
  • Button settings
    The option to assign the Record program to a button is removed. If a button is already assigned to Record when the registry key is set, the button assignment is changed to <None>.

See Also

Other Resources

Waveform Audio