.gitignore | ||
AudioSessionEvents.c | ||
AudioSessionEvents.h | ||
AudioSessions_framework.c | ||
AudioSesssions_framework.h | ||
CLSIDs_and_IIDs.h | ||
IAudioSessionEvents.c | ||
IAudioSessionEvents.h | ||
IAudioSessionNotification.c | ||
IAudioSessionNotification.h | ||
IUknownInterface.c | ||
IUknownInterface.cpp | ||
IUknownInterface.h | ||
main.c | ||
README.md | ||
TODO.txt | ||
WASAPI Notification Interfaces.sln | ||
WASAPI Notification Interfaces.vcxproj | ||
WASAPI Notification Interfaces.vcxproj.filters | ||
WASAPI Notification Interfaces.vcxproj.user | ||
windows-win32-api-_coreaudio.pdf |
WASAPI Notification Interfaces
This is to implement the IAudioSessionEvents
and IAudioSessionNotification
interfaces found inthe Windows Core Audio API's Audiopolicy.h
file.
The IAudioSessionNotification
interface is used purely to register a function to be called when a new session is created and added to the audio stream:
IAudioSessionEvents
can do a multitude of things, the ones initially being implemented are:
IAudioSessionEvents::OnSessionDisconnected()
and
IAudioSessionEvents::OnSimpleVolumeChanged()
With the latter being called when the session volume is changed.