Skip to content

Commit 2e092bf

Browse files
authored
Update data member name (#637)
1 parent 8a7b958 commit 2e092bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/CSFBAudioEngine/Player/AudioPlayer.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void AVAudioSessionInterruptionNotificationCallback(CFNotificationCenterRef cent
298298
{
299299
const auto isRunning = engine_.isRunning;
300300
#if DEBUG
301-
assert(static_cast<bool>(flags_.load(std::memory_order_acquire) & static_cast<unsigned int>(Flags::engineIsRunning)) == isRunning && "Cached value for mEngine.isRunning invalid");
301+
assert(static_cast<bool>(flags_.load(std::memory_order_acquire) & static_cast<unsigned int>(Flags::engineIsRunning)) == isRunning && "Cached value for engine_.isRunning invalid");
302302
#endif /* DEBUG */
303303
return isRunning;
304304
}
@@ -525,7 +525,7 @@ void AVAudioSessionInterruptionNotificationCallback(CFNotificationCenterRef cent
525525
// However, Flags::engineIsRunning indicates if the engine was running before the interruption
526526
if(flags_.load(std::memory_order_acquire) & static_cast<unsigned int>(Flags::engineIsRunning)) {
527527
flags_.fetch_and(~static_cast<unsigned int>(Flags::engineIsRunning), std::memory_order_acq_rel);
528-
if(NSError *error = nil; ![mEngine startAndReturnError:&error]) {
528+
if(NSError *error = nil; ![engine_ startAndReturnError:&error]) {
529529
os_log_error(sLog, "Error starting AVAudioEngine: %{public}@", error);
530530
return;
531531
}

0 commit comments

Comments
 (0)