Commit 2fa9c8e2 authored by François Grisez's avatar François Grisez
Browse files

Add a function to get the window ID

parent 9de5799b
......@@ -30,6 +30,13 @@ MS2_PUBLIC MSFilePlayer *ms_file_player_new(MSSndCard *snd_card, const char *vid
MS2_PUBLIC void ms_file_player_free(MSFilePlayer *obj);
* @brief Get the window ID
* @param obj The player
* @return The window ID
MS2_PUBLIC void *ms_file_player_get_window_id(const MSFilePlayer *obj);
* @brief Set the "End of File" callback
* @param obj A MSFilePlayer object pointer
......@@ -103,6 +103,10 @@ void ms_file_player_free(MSFilePlayer *obj) {
void *ms_file_player_get_window_id(const MSFilePlayer *obj) {
return obj->window_id;
bool_t ms_file_player_open(MSFilePlayer *obj, const char *filepath) {
wave_header_t header;
int fd;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment