Set ?audio to the path to the currently open audio file

Originally committed to SVN as r5658.
This commit is contained in:
Thomas Goyne 2011-09-28 19:51:26 +00:00
parent 9fc0b33cdf
commit 74ae9189a2

View file

@ -53,6 +53,7 @@
#include "include/aegisub/audio_provider.h"
#include "main.h"
#include "selection_controller.h"
#include "standard_paths.h"
#include "video_context.h"
class AudioMarkerKeyframe : public AudioMarker {
@ -272,6 +273,8 @@ void AudioController::OpenAudio(const wxString &url)
&fnf);
}
provider = AudioProviderFactory::GetProvider(url);
StandardPaths::SetPathValue("?audio", fn.GetPath());
}
try
@ -309,6 +312,8 @@ void AudioController::CloseAudio()
audio_url.clear();
StandardPaths::SetPathValue("?audio", "");
AnnounceAudioClose();
}