Skip to content

Commit

Permalink
Room State Changed Event, Reconnection Fixes, Fixed broken blueprint …
Browse files Browse the repository at this point in the history
…nodes

- Now allows disconnecting events to be fired, when manually calling destroy local room handle
- Added newer Room State Changed Event to also broadcast reason for disconnect. Old Event is marked as deprecated.
- Added IsConnected Function to Odin Room object
- OdinRoom now recognizes reconnects after loosing connection temporarily and automatically sets up Capture Stream again.
- Fixed broken blueprint nodes issue, due to late loading of the plugin
  • Loading branch information
DavidLiebemann committed Jun 28, 2024
1 parent 18205e9 commit a46ff9f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Odin.uplugin
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"FileVersion": 2,
"Version": 407,
"Version": 413,
"WhitelistPlatforms": [ "Win64", "Mac", "IOS", "Linux", "LinuxArm64", "Android" ],
"VersionName": "1.8.8",
"FriendlyName": "4Players ODIN",
Expand Down
2 changes: 1 addition & 1 deletion Source/Odin/Private/Odin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ void FOdinModule::ShutdownModule()

#undef LOCTEXT_NAMESPACE

IMPLEMENT_GAME_MODULE(FOdinModule, Odin)
IMPLEMENT_MODULE(FOdinModule, Odin)
2 changes: 1 addition & 1 deletion Source/Odin/Private/OdinFunctionLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ UOdinAudioCapture* UOdinFunctionLibrary::CreateOdinAudioCapture(UObject* WorldCo
TEXT("No World Context provided when creating Odin Audio Capture. Audio Capture "
"will not be able to react to capture devices being removed."));
}
UOdinAudioCapture* OdinAudioCapture = NewObject<UOdinAudioCapture>(World);
UOdinAudioCapture* OdinAudioCapture = NewObject<UOdinAudioCapture>(WorldContextObject);
if (OdinAudioCapture->RestartCapturing(false)) {
return OdinAudioCapture;
}
Expand Down
5 changes: 5 additions & 0 deletions Source/Odin/Private/OdinSubmixListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ void UOdinSubmixListener::StopSubmixListener()
return;

FAudioDeviceHandle AudioDevice = GEngine->GetActiveAudioDevice();
if (!AudioDevice.IsValid())
return;

if (!SubmixBufferListener.IsValid())
return;

#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 4
AudioDevice->UnregisterSubmixBufferListener(SubmixBufferListener.ToSharedRef(),
Expand Down

0 comments on commit a46ff9f

Please sign in to comment.