mp3splt-gtk

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Functions | Variables
gstreamer_control.c File Reference
`#include <stdlib.h>`
`#include <gtk/gtk.h>`
`#include <glib/gi18n.h>`
`#include <time.h>`
`#include <unistd.h>`
`#include <string.h>`
`#include <gst/gst.h>`
`#include "gstreamer_control.h"`
`#include "player.h"`
`#include "main_win.h"`
`#include "utilities.h"`
`#include "player_tab.h"`
`#include "mp3splt-gtk.h"`
Include dependency graph for gstreamer_control.c:

Go to the source code of this file.

## Functions

void | add_playlist_file (const gchar *name)
void | gstreamer_add_files (GList *list)
gchar * | gstreamer_get_filename ()
gint | gstreamer_get_playlist_number ()
void | gstreamer_get_song_infos (gchar *total_infos)
gint | gstreamer_get_time_elapsed ()
gchar * | gstreamer_get_title_song ()
gint | gstreamer_get_total_time ()
gint | gstreamer_get_volume ()
gint | gstreamer_is_paused ()
gint | gstreamer_is_playing ()
gint | gstreamer_is_running ()
void | gstreamer_jump (gint position)
void | gstreamer_next ()
void | gstreamer_pause ()
void | gstreamer_play ()
void | gstreamer_play_last_file ()
void | gstreamer_prev ()
void | gstreamer_quit ()
void | gstreamer_select_last_file ()
void | gstreamer_set_volume (gint volume)
void | gstreamer_start ()
void | gstreamer_start_with_songs (GList *list)
void | gstreamer_stop ()

## Variables

gint | _gstreamer_is_running = FALSE
GstBus * | bus = NULL
GstElement * | play = NULL
GtkWidget * | player_vbox
GtkWidget * | playlist_box
gint | rate = 0
int | selected_player
const gchar * | song_artist = NULL
const gchar * | song_title = NULL

## Detailed Description

Control the gstreamer framework

this file has functions to control the 'internal'

- gstreamer player

Definition in file gstreamer_control.c.

## Function Documentation

void add_playlist_file | ( | const gchar * | name | ) |

add a row to the table

Definition at line 3309 of file player_tab.c.

References get_real_name_from_filename(), is_filee(), and tree_view.

Referenced by gstreamer_add_files().

Here is the call graph for this function:

Here is the caller graph for this function:

void gstreamer_add_files | ( | GList * | list | ) |

add files to the gstreamer playlist

Definition at line 430 of file gstreamer_control.c.

References add_playlist_file().

Referenced by gstreamer_start(), gstreamer_start_with_songs(), player_add_files(), and player_add_files_and_select().

Here is the call graph for this function:

Here is the caller graph for this function:

gchar* gstreamer_get_filename | ( |  | ) |

returns the filename

The result must be g_free'd after use.

Definition at line 279 of file gstreamer_control.c.

References inputfilename_get().

Referenced by gstreamer_get_title_song(), and player_get_filename().

Here is the call graph for this function:

Here is the caller graph for this function:

gint gstreamer_get_playlist_number | ( |  | ) |

returns the number of songs of the playlist

Definition at line 285 of file gstreamer_control.c.

Referenced by player_get_playlist_number().

Here is the caller graph for this function:

void gstreamer_get_song_infos | ( | gchar * | total_infos | ) |

Gets information about the< song.

Definition at line 205 of file gstreamer_control.c.

Referenced by player_get_song_infos().

Here is the caller graph for this function:

gint gstreamer_get_time_elapsed | ( |  | ) |

returns elapsed time

Definition at line 354 of file gstreamer_control.c.

Referenced by player_get_elapsed_time().

Here is the caller graph for this function:

gchar* gstreamer_get_title_song | ( |  | ) |

returns the title of the song

The result must be g_free'd after use

Definition at line 294 of file gstreamer_control.c.

References gstreamer_get_filename().

Referenced by player_get_title().

Here is the call graph for this function:

Here is the caller graph for this function:

gint gstreamer_get_total_time | ( |  | ) |

returns total time of the current song

Definition at line 604 of file gstreamer_control.c.

Referenced by player_get_total_time().

Here is the caller graph for this function:

gint gstreamer_get_volume | ( |  | ) |

returns volume

Definition at line 481 of file gstreamer_control.c.

Referenced by player_get_volume().

Here is the caller graph for this function:

gint gstreamer_is_paused | ( |  | ) |

returns TRUE if gstreamer is paused, if not, FALSE

Definition at line 513 of file gstreamer_control.c.

Referenced by player_is_paused().

Here is the caller graph for this function:

gint gstreamer_is_playing | ( |  | ) |

returns TRUE if gstreamer is playing, else FALSE

Definition at line 629 of file gstreamer_control.c.

Referenced by player_is_playing().

Here is the caller graph for this function:

gint gstreamer_is_running | ( |  | ) |

returns TRUE if gstreamer is running; if not, FALSE

Definition at line 507 of file gstreamer_control.c.

Referenced by player_is_running().

Here is the caller graph for this function:

void gstreamer_jump | ( | gint | position | ) |

jump to time

Definition at line 593 of file gstreamer_control.c.

Referenced by gstreamer_play(), and player_jump().

Here is the caller graph for this function:

void gstreamer_next | ( |  | ) |

changes to next song

Definition at line 583 of file gstreamer_control.c.

Referenced by player_next().

Here is the caller graph for this function:

void gstreamer_pause | ( |  | ) |

pause a song

Definition at line 564 of file gstreamer_control.c.

References gstreamer_play().

Referenced by player_pause().

Here is the call graph for this function:

Here is the caller graph for this function:

void gstreamer_play | ( |  | ) |

plays a song

Definition at line 536 of file gstreamer_control.c.

References gstreamer_jump().

Referenced by gstreamer_pause(), gstreamer_play_last_file(), gstreamer_start_with_songs(), and player_play().

Here is the call graph for this function:

Here is the caller graph for this function:

void gstreamer_play_last_file | ( |  | ) |

plays the last file of the playlist

Definition at line 423 of file gstreamer_control.c.

References gstreamer_play(), and gstreamer_stop().

Referenced by player_add_play_files(), and player_start_play_with_songs().

Here is the call graph for this function:

Here is the caller graph for this function:

void gstreamer_prev | ( |  | ) |

changes to previous song

Definition at line 588 of file gstreamer_control.c.

Referenced by player_prev().

Here is the caller graph for this function:

void gstreamer_quit | ( |  | ) |

quits player

Definition at line 652 of file gstreamer_control.c.

Referenced by gstreamer_start(), and player_quit().

Here is the caller graph for this function:

void gstreamer_select_last_file | ( |  | ) |

selects the last file in the playlist

Definition at line 418 of file gstreamer_control.c.

Referenced by player_add_files_and_select().

Here is the caller graph for this function:

void gstreamer_set_volume | ( | gint | volume | ) |

sets volume

Definition at line 470 of file gstreamer_control.c.

Referenced by player_set_volume().

Here is the caller graph for this function:

void gstreamer_start | ( |  | ) |

starts gstreamer

Definition at line 377 of file gstreamer_control.c.

References gstreamer_add_files(), gstreamer_quit(), inputfilename_get(), and put_status_message().

Referenced by gstreamer_start_with_songs(), and player_start().

Here is the call graph for this function:

Here is the caller graph for this function:

void gstreamer_start_with_songs | ( | GList * | list | ) |

starts gstreamer with songs

Definition at line 499 of file gstreamer_control.c.

References gstreamer_add_files(), gstreamer_play(), and gstreamer_start().

Referenced by player_start_add_files(), and player_start_play_with_songs().

Here is the call graph for this function:

Here is the caller graph for this function:

void gstreamer_stop | ( |  | ) |

stops a song

Definition at line 555 of file gstreamer_control.c.

Referenced by gstreamer_play_last_file(), and player_stop().

Here is the caller graph for this function: