Notes on next steps

This commit is contained in:
Thomas Wilkie 2023-09-30 00:10:16 +09:00
parent b755370d89
commit 419d045af7
2 changed files with 9 additions and 2 deletions

View File

@ -150,7 +150,9 @@ HRESULT IAudioSessionEventsOnSessionDisconnected(IAudioSessionEvents* this, Audi
printf("\nSession with control interface at %p disconnected.", castInterface->pParentAudioSessionControl);
// Delete the unused control interface from the array of interfaces
// It seems like the session is not disconnected generally, instead it is marked as inactive and IAudioSessionEventsOnStateChanged() is called
// Seems like the best option would be to have the control interface deleted and released when that is called and then just a confirmation when this function is called
// Supposedly releasing the interface in the state change callback should make this unnecessary but just in case I think it is worth doing
return S_OK;
}

View File

@ -1 +1,6 @@
This file keeps track of where I am up to and what the next steps are in this project.
This file keeps track of where I am up to and what the next steps are in this project.
When an audio session is finished it seems to just have the state changed to expired rather then being marked as disconnected.
The session control needs to be removed from the list on session disconnection/expiry.
Currently when sessions are created there is a memory out of bounds access error and the program crashes.
This was not previosuly happening, it seems to be occuring before the callback to IAudioSessionNotificaiton::OnSessionCreated().