38#ifndef PLAYER_WINDOW_H
40#define PLAYER_WINDOW_H
42#include "all_includes.h"
44#define ICON_EXT ".svg"
46#define DEFAULT_TIMEOUT_VALUE 200
48#define DEFAULT_GSTREAMER_STOP_BEFORE_END_VALUE 200
50#define DEFAULT_SMALL_SEEK_JUMP_VALUE 300
51#define DEFAULT_SEEK_JUMP_VALUE 0
52#define DEFAULT_BIG_SEEK_JUMP_VALUE 0
54#define DEFAULT_SILENCE_WAVE_NUMBER_OF_POINTS_THRESHOLD 4000
59#define HUNDR_SECONDS 1
60#define TENS_OF_SECONDS 10
62#define TEN_SECONDS 1000
64#define TEN_MINUTES 60000
82void file_chooser_ok_event(
const gchar *fname,
ui_state *ui);
90void restart_player_timer(
ui_state *ui);
92void compute_douglas_peucker_filters(
ui_state *ui);
95 gint interpolation_text_x, gint interpolation_text_y,
96 gfloat draw_time, gint width_drawing_area, gint y_margin,
97 gfloat current_time, gfloat total_time, gfloat zoom_coeff,
98 GtkWidget *da, cairo_t *gc,
ui_state *ui);
100void get_current_splitpoints_time_left_right(gint *time_left, gint *time_right,
101 gint *splitpoint_left,
ui_state *ui);
102void player_key_actions_set_sensitivity(gboolean sensitivity,
gui_state *gui);
103void adjust_zoom_coeff(
ui_infos *infos);
107void set_preview_start_position_safe(gint value,
ui_state *ui);
108gint get_preview_start_position_safe(
ui_state *ui);
110void set_quick_preview_end_splitpoint_safe(gint value,
ui_state *ui);
111gint get_quick_preview_end_splitpoint_safe(
ui_state *ui);
113void set_currently_scanning_for_silence_safe(gint value,
ui_state *ui);
114gint get_currently_scanning_for_silence_safe(
ui_state *ui);
116void clear_previous_distances(
ui_state *ui);
gfloat get_left_drawing_time(gfloat current_time, gfloat total_time, gfloat zoom_coeff)
returns the value of the left drawing area
void show_connect_button(gui_state *gui)
Show the connect button.
gfloat get_right_drawing_time(gfloat current_time, gfloat total_time, gfloat zoom_coeff)
returns the value of the right drawing area
void change_current_filename(const gchar *fname, ui_state *ui)
Change the name of the song that is to be cut and played.
GtkWidget * create_player_playlist_frame(ui_state *ui)
creates the playlist of the player
void enable_player_buttons(ui_state *ui)
enables the buttons of the player
GtkWidget * create_player_control_frame(ui_state *ui)
creates the control player frame, stop button, play button, etc.
void player_quick_preview(gint splitpoint_to_preview, ui_state *ui)
makes a preview of the song
void disconnect_button_event(GtkWidget *widget, ui_state *ui)
disconnect button event
void pause_event(GtkWidget *widget, ui_state *ui)
pause button event
void check_update_down_progress_bar(ui_state *ui)
updates bottom progress bar
void add_playlist_file(const gchar *name, ui_state *ui)
add a row to the table
void hide_connect_button(gui_state *gui)
Hide the connect button.
gint draw_silence_wave(gint left_mark, gint right_mark, gint interpolation_text_x, gint interpolation_text_y, gfloat draw_time, gint width_drawing_area, gint y_margin, gfloat current_time, gfloat total_time, gfloat zoom_coeff, GtkWidget *da, cairo_t *gc, ui_state *ui)
Draws the silence wave.
void connect_button_event(GtkWidget *widget, ui_state *ui)
play button event
void cancel_quick_preview(gui_status *status)
cancels preview
void cancel_quick_preview_all(ui_state *ui)
full cancel of the preview
void connect_to_player_with_song(gint i, ui_state *ui)
connects to player with the song from the filename entry