mirror of https://github.com/odrling/Aegisub
Set ?audio to the path to the currently open audio file
Originally committed to SVN as r5658.
This commit is contained in:
parent
9fc0b33cdf
commit
74ae9189a2
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue