Store the URL of opened audio files

Originally committed to SVN as r4908.
This commit is contained in:
Thomas Goyne 2010-12-08 08:09:25 +00:00
parent 3345797ff6
commit b134428668
2 changed files with 8 additions and 2 deletions

View File

@ -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)

View File

@ -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,