Пример #1
0
static void
prefs_fragsize_changed (GtkSpinButton *w,
			alsa_driver *d)
{
    d->p_fragsize = gtk_spin_button_get_value_as_int(w);
    prefs_update_estimate(d);
}
Пример #2
0
static void
prefs_mixfreq_changed (void *a,
		       alsa_driver *d)
{
    d->p_mixfreq = mixfreqs[find_current_toggle(d->prefs_mixfreq_w, 4)];
    prefs_update_estimate(d);
}
Пример #3
0
static void
prefs_resolution_changed (void *a,
			  alsa_driver *d)
{
    d->p_resolution = (find_current_toggle(d->prefs_resolution_w, 2) + 1) * 8;
    prefs_update_estimate(d);
}
Пример #4
0
static void
prefs_channels_changed (void *a,
			alsa_driver *d)
{
    d->p_channels = find_current_toggle(d->prefs_channels_w, 2) + 1;
    prefs_update_estimate(d);
}
Пример #5
0
static void
prefs_fragsize_changed (GtkSpinButton *w,
			oss_driver *d)
{
    char buf[64];

    d->p_fragsize = gtk_spin_button_get_value_as_int(w);

    g_sprintf(buf, _("(%d samples)"), 1 << d->p_fragsize);
    gtk_label_set_text(GTK_LABEL(d->bufsizelabel_w), buf);
    prefs_update_estimate(d);
}