Skip to content

Commit

Permalink
FF7: Allow ambient effects to playback in fields that use movies as b…
Browse files Browse the repository at this point in the history
…ackground
  • Loading branch information
julianxhokaxhiu committed Aug 27, 2023
1 parent 0c331f2 commit 0c22bb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

- Full commit list since last stable release: https://github.com/julianxhokaxhiu/FFNx/compare/1.16.0...master

## FF7

- Ambient: Allow ambient effects to playback in fields that use movies as background

# 1.16.0

- Full commit list since last stable release: https://github.com/julianxhokaxhiu/FFNx/compare/1.15.0...1.16.0
Expand Down
4 changes: 2 additions & 2 deletions src/movies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ uint32_t ff7_start_movie()

ff7_externals.movie_object->is_playing = 1;

nxAudioEngine.pauseAmbient();
if (!is_movie_bgfield) nxAudioEngine.pauseAmbient();
nxAudioEngine.setMovieMasterVolume(ffmpeg_video_volume / 100.0f);
nxAudioEngine.playMovieAudio(movie_music_path, MovieAudioLayers::MUSIC);
nxAudioEngine.playMovieAudio(movie_voice_path, MovieAudioLayers::VOICE, 3.0f);
Expand All @@ -158,7 +158,7 @@ uint32_t ff7_stop_movie()

nxAudioEngine.stopMovieAudio(MovieAudioLayers::MUSIC);
nxAudioEngine.stopMovieAudio(MovieAudioLayers::VOICE);
nxAudioEngine.resumeAmbient();
if (!is_movie_bgfield) nxAudioEngine.resumeAmbient();
}

return true;
Expand Down

0 comments on commit 0c22bb9

Please sign in to comment.