aboutsummaryrefslogtreecommitdiff
path: root/include/VideoPlayer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/VideoPlayer.hpp')
-rw-r--r--include/VideoPlayer.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp
index 1d15aff..341c686 100644
--- a/include/VideoPlayer.hpp
+++ b/include/VideoPlayer.hpp
@@ -40,7 +40,8 @@ namespace QuickMedia {
VideoPlayer(const VideoPlayer&) = delete;
VideoPlayer& operator=(const VideoPlayer&) = delete;
- Error load_video(const char *path, sf::WindowHandle parent_window, const std::string &plugin_name, const std::string &title);
+ // |audio_path| is only set when video and audio are separate files/urls
+ Error load_video(const char *path, const char *audio_path, sf::WindowHandle parent_window, const std::string &plugin_name, const std::string &title);
// Should be called every update frame
Error update();
@@ -55,7 +56,7 @@ namespace QuickMedia {
int exit_status;
private:
Error send_command(const char *cmd, size_t size);
- Error launch_video_process(const char *path, sf::WindowHandle parent_window, const std::string &plugin_name, const std::string &title);
+ Error launch_video_process(const char *path, const char *audio_path, sf::WindowHandle parent_window, const std::string &plugin_name, const std::string &title);
VideoPlayer::Error read_ipc_func();
private:
bool no_video;