Skip to content

Commit

Permalink
CAM-3 Fix demo audio cutting out randomly.
Browse files Browse the repository at this point in the history
  • Loading branch information
AshtonMemer committed Jan 19, 2024
1 parent 1bb924f commit bd96c69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Managers/AudioManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace CustomAlbums.Managers
{
// TODO: fix audio cut bug
public static class AudioManager
{
public const int AsyncReadSpeed = 4096;
Expand All @@ -19,7 +18,9 @@ public static class AudioManager

public static bool SwitchLoad(string name)
{
if (!Coroutines.TryGetValue(name, out _currentCoroutine)) return false;
if (!Coroutines.TryGetValue(name, out var routine)) return false;
_currentCoroutine = routine;

Logger.Msg($"Switching to async load of {name}");
return true;
}
Expand Down
1 change: 0 additions & 1 deletion Utilities/Backup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ internal class Backup

internal static void InitBackups()
{
// TODO: FIX THIS c:
Directory.CreateDirectory(BackupPath);

CompressBackups();
Expand Down

0 comments on commit bd96c69

Please sign in to comment.