Skip to content

Commit 420fe8d

Browse files
chammoruclaude
andcommitted
Viewer: close audio player when loading a new source
Without this, mHasAudio retained the previous file's value until the first Play() on the new file, so the volume/mute controls reflected the last-played file instead of the current one. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e3800ae commit 420fe8d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Viewer/ViewerDoc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ void CViewerDoc::LoadSourceImage(bool adjustWindow)
194194
mBufferQueue->destroy();
195195

196196
pView->KillPlayTimer();
197+
pView->mAudioPlayer.Close();
197198
pView->mSelRegions.clear();
198199

199200
int w = mW, h = mH;

0 commit comments

Comments
 (0)