What's New for Core Audio APIs in Windows 7
Collapse the table of content
Expand the table of content

What's New for Core Audio APIs in Windows 7

The Core Audio APIs were introduced in Windows Vista, which provided a new set of user-mode audio components that a client application can use to render or capture audio streams with improved audio capabilities. For a general overview of this API set, see About the Windows Core Audio APIs.

The Core Audio APIs have been improved in Windows 7. The following table summarizes the new features and the improvements to the Core Audio APIs:

FeatureDescription
Generic improvementsThe following features have been improved in Windows 7:
  • In Windows 7 share mode streams run in low-latency mode. The audio engine runs in pull mode with a significant reduction in latency. This is very useful for communication applications that require low audio stream latency for faster streaming.
  • Windows 7 provides better device role detection when a new device is added to the system. For more information, see Working with Device Roles.
  • In Windows 7 you can listen to music from your portable media player through your computer speakers. You can use this Capture Monitor feature by plugging a portable media player into your computer with an analog audio cable. In the past some OEMs have provided this functionality in the audio driver by using a hardware loopback. In Windows 7, this functionality has been added to the operating system. Because this is in the system and not the driver, you can use this for any other device connected to the system, such as a USB headset.
  • HDMI audio has been enhanced in Windows 7, which provides support for high-bit-rate format. With this improvement, you can support multichannel audio and compressed audio formats over an HDMI connector to an audio receiver.
  • In Windows Vista, Windows Media Player plays music only through the default audio device, which cannot be changed by the user. For Windows Media Player to render audio to a particular device, the default device must be changed in the Sounds control panel. In Windows 7, Windows Media Player provides APIs that enable an application to render to any device selected by the user and not just the default device.
  • In Windows Vista, if a computer that is playing audio switches to the power-save mode, the computer is locked, and if the user wants to interrupt the playback, the user must log on and press the stop key to stop the playback. In Windows 7, if the computer is locked, you can still control the playback by using the HID control on the keyboard.
  • Windows 7 reduces power consumption for any application that uses DirectSound and DirectShow to render media. In addition, the Multimedia Class Scheduler Service enables glitch-resilient audio and uses less power while the audio samples are being generated.
Communication device (New)In this release a new device type has been added to the Sounds control panel: Communications device. This device is used primarily for communications, that is, to place or receive phone calls on the computer. A communication application can use Core Audio components to get a reference to the endpoint of the default communication device and render audio streams for communication purposes. The operating system considers the stream opened on a communication device to be a communication stream. The WASAPI operations on a communication stream are similar to any other audio stream. For more information, see Working with Device Roles.
Stream attenuation or audio ducking (New)Automatic ducking or Stream Attenuation is a new feature in Windows 7 that is intended for VoIP and Unified Communication applications. By default, the operating system reduces the intensity of an audio stream when a communication stream, such as a phone call, is received on the communication device through the computer. The volume options are set by the user in the Sound control panel.

New APIs have been added in the Windows SDK that enable applications to replace the default ducking behavior. For more information about implementing a custom ducking feature, see Providing a Custom Ducking Behavior.

Stream routing (New)In Windows 7, the Core Audio APIs have been improved to transfer an audio stream seamlessly from an existing device to a new default audio endpoint. High-level audio API sets that use Core Audio APIs, such as Media Foundation, DirectSound, and WAVE APIs, implement the stream routing feature. Media applications that use these API sets to play or capture a stream use the default implementation and do not have to modify the application. However, if your media application uses Core Audio APIs directly, the application needs to provide the stream routing implementation. To do so, the application must handle new events that have been added that notify a WASAPI client when the default device is connected or removed. For more information about this feature, see Stream Routing.
Protected User Mode Audio (PUMA) (Improved)PUMA has been updated for Windows 7 to provide the following features:
  • Setting Serial Copying Management System (SCMS) bits on S/PDIF endpoints and High-bandwidth Digital Content Protection (HDCP) bits on High-Definition Multimedia Interface (HDMI) endpoints.
  • Enabling SCMS and HDMI protection controls outside of a Protected Environment (PE).

For more information about the improvements, see Protected User Mode Audio (PUMA).

The WAVEFORMATEXTENSIBLE structure has been extended to the WAVEFORMATEXTENSIBLE_IEC61937 structure (New)In Windows 7, a new structure has been added to support IEC 61937 transmissions. WAVEFORMATEXTENSIBLE_IEC61937 extends the WAVEFORMATEXTENSIBLE structure to store two sets of audio stream characteristics: the encoded audio format before transmission and characteristics of the audio stream after it has been decoded. The new structure explicitly specifies the effective number of channels, sample size, and data rate of a non-PCM format. With this information, an application can infer the quality level of the non-PCM stream after it is decompressed and played.

For more information, see Representing Formats for IEC 61937 Transmissions.

IAudioClient::Initialize (Improved)The IAudioClient::Initialize method has been improved to indicate specific errors that might occur while opening an audio stream. The new error codes are:
  • AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED
  • AUDCLNT_E_BUFFER_SIZE_ERROR
  • AUDCLNT_E_INVALID_DEVICE_PERIOD

For more information about these errors, see the Return Value section in IAudioClient::Initialize.

IAudioCaptureClient::GetBuffer and IAudioRenderClient::GetBuffer (Improved) IAudioCaptureClient::GetBuffer and IAudioRenderClient::GetBuffer methods have been improved to return the AUDCLNT_E_BUFFER_ERROR error code that indicates that the endpoint buffer in the exclusive mode was not retrieved. For more information, see Remarks in IAudioCaptureClient::GetBuffer and IAudioRenderClient::GetBuffer.
Jack detection capability (Improved)A new interface in Windows 7, IKsJackDescription2, extends IKsJackDescription. By using the new interface, the audio stack or an application can get additional jack information. This includes the jack's detection capability and whether the format of the device has changed dynamically.
Windows Samples (New)New samples have been added to the Windows SDK that demonstrate the use of the Core Audio APIs. For more information, see SDK Samples That Use the Core Audio APIs.

 

Major New Interfaces

The following interfaces are new for Windows 7:

Related topics

About the Windows Core Audio APIs

 

 

Show:
© 2016 Microsoft