forked from mia/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
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,7 @@
|
||||||
#include "include/aegisub/audio_provider.h"
|
#include "include/aegisub/audio_provider.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "selection_controller.h"
|
#include "selection_controller.h"
|
||||||
|
#include "standard_paths.h"
|
||||||
#include "video_context.h"
|
#include "video_context.h"
|
||||||
|
|
||||||
class AudioMarkerKeyframe : public AudioMarker {
|
class AudioMarkerKeyframe : public AudioMarker {
|
||||||
|
@ -272,6 +273,8 @@ void AudioController::OpenAudio(const wxString &url)
|
||||||
&fnf);
|
&fnf);
|
||||||
}
|
}
|
||||||
provider = AudioProviderFactory::GetProvider(url);
|
provider = AudioProviderFactory::GetProvider(url);
|
||||||
|
|
||||||
|
StandardPaths::SetPathValue("?audio", fn.GetPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -309,6 +312,8 @@ void AudioController::CloseAudio()
|
||||||
|
|
||||||
audio_url.clear();
|
audio_url.clear();
|
||||||
|
|
||||||
|
StandardPaths::SetPathValue("?audio", "");
|
||||||
|
|
||||||
AnnounceAudioClose();
|
AnnounceAudioClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue