void SACM_A1800FAT_SeekTime(long offset, int dir) { /* if (dir == FORWARD_SKIP) { */ if (dir == 0) { audio_seek(&__gaudio, offset, SEEK_CUR); } else { audio_seek(&__gaudio, -offset, SEEK_CUR); } }
/* This function is called when the slider changes its position. We perform a seek to the * new position here. */ static void slider_cb (GtkRange *range, CustomData *data) { gchar *time; gdouble value = gtk_range_get_value (GTK_RANGE (data->slider)); time = g_strdup_printf("%" HMS_TIME_FORMAT, HMS_TIME_ARGS((gint64)(value * GST_SECOND))); update_timelabel(data, time); g_free (time); audio_seek(data, value); }
/* Handle CMD_SEEK, return 1 if ok or 0 on error */ static int req_seek (struct client *cli) { int sec; if (!get_int(cli->socket, &sec)) return 0; logit ("Seeking %ds", sec); audio_seek (sec); return 1; }
void audio_pseudo_stop(CustomData *data) { audio_seek (data, 0.0); audio_pause_player (data); }
void User_SetDecodeLength(unsigned long l) { audio_seek(&__gaudio, l, SEEK_SET); }