mirror of https://github.com/odrling/Aegisub
Store the URL of opened audio files
Originally committed to SVN as r4908.
This commit is contained in:
parent
3345797ff6
commit
b134428668
|
@ -275,6 +275,8 @@ void AudioController::OpenAudio(const wxString &url)
|
|||
throw;
|
||||
}
|
||||
|
||||
audio_url = url;
|
||||
|
||||
// Tell listeners about this.
|
||||
AnnounceAudioOpen(provider);
|
||||
}
|
||||
|
@ -289,6 +291,8 @@ void AudioController::CloseAudio()
|
|||
player = 0;
|
||||
provider = 0;
|
||||
|
||||
audio_url.clear();
|
||||
|
||||
AnnounceAudioClose();
|
||||
}
|
||||
|
||||
|
@ -301,8 +305,7 @@ bool AudioController::IsAudioOpen() const
|
|||
|
||||
wxString AudioController::GetAudioURL() const
|
||||
{
|
||||
/// @todo figure out how to get the url
|
||||
return _T("");
|
||||
return audio_url;
|
||||
}
|
||||
|
||||
void AudioController::SetTimingController(AudioTimingController *new_controller)
|
||||
|
|
|
@ -179,6 +179,9 @@ private:
|
|||
/// Provide keyframe data for audio displays
|
||||
agi::scoped_ptr<AudioMarkerProvider> keyframes_marker_provider;
|
||||
|
||||
/// The URL of the currently open audio, if any
|
||||
wxString audio_url;
|
||||
|
||||
|
||||
enum PlaybackMode {
|
||||
PM_NotPlaying,
|
||||
|
|
Loading…
Reference in New Issue