![]() The normalized volume levels that are passed to this method are suitable to represent the positions of volume controls in application windows and on-screen displays.įor a code example that calls SetMasterVolumeLevelScalar, see Endpoint Volume Controls. For more information about audio-tapered curves, see Audio-Tapered Volume Controls. Note that the shape of the curve might change in future versions of Windows. Within this range, the relationship of the normalized volume level to the attenuation of signal amplitude is described by a nonlinear, audio-tapered curve. The volume level is normalized to the range from 0.0 to 1.0, where 0.0 is the minimum volume level and 1.0 is the maximum level. Parameter fLevel is outside the range from 0.0 to 1.0. If it fails, possible return codes include, but are not limited to, the values shown in the following table. If the caller supplies a NULL pointer for this parameter, the notification routine receives the context GUID value GUID_NULL. In its implementation of the OnNotify method, a client can inspect the event-context GUID to discover whether it or another client is the source of the volume-change event. If the SetMasterVolumeLevelScalar call changes the volume level of the endpoint, all clients that have registered IAudioEndpointVolumeCallback interfaces with that endpoint will receive notifications. This parameter points to an event-context GUID. Turn the VALUE dial or use the pedals to select patch 33-3 'American.' 2. The level is expressed as a normalized value in the range from 0.0 to 1.0.Ĭontext value for the IAudioEndpointVolumeCallback::OnNotify method. Use the following steps to assign Master Volume to be controlled by an external expression pedal (Roland EV-5) connected to the SUB EXP PEDAL jack: For this example lets use patch 33-3 'American.' 1. Syntax HRESULT SetMasterVolumeLevelScalar( The volume level is expressed as a normalized, audio-tapered value in the range from 0.0 to 1.0. The SetMasterVolumeLevelScalar method sets the master volume level of the audio stream that enters or leaves the audio endpoint device. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |