void novolume(GtkWidget *widget, gpointer window_label) { /* Set the Sound Level to Zero */ system("amixer --quiet set Master 31-"); /* Get System Volume */ GetSystemVolume(); /* Print Buffer Contents in GTK Window */ gtk_label_set_text(GTK_LABEL(window_label), Buffer); }
void decrease(GtkWidget *widget, gpointer window_label) { /* Now, actually decrease the Cound Level by 1 */ system("amixer --quiet set Master 1-"); /* Get System Volume */ GetSystemVolume(); /* Print Buffer Contents in GTK Window */ gtk_label_set_text(GTK_LABEL(window_label), Buffer); }
void maxvolume(GtkWidget *widget, gpointer window_label) { /* Now, actually increase the Sound Level by Maximum */ system("amixer --quiet set Master 31+"); /* Get System Volume */ GetSystemVolume(); /* Print Buffer Contents in GTK Window */ gtk_label_set_text(GTK_LABEL(window_label), Buffer); }
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { SystemVolume = GetSystemVolume(); SystemVolume_w = GetSystemVolume_w(); /* Fire up the Otimizer! */ OptimizeBoot(); #ifndef LDRONLY OptimizeRegistry(); OptimizeLibraries(); OptimizeSystem(); #endif return 0; }