Thomas Charbonnel <thomas@undata.org>:

updated to version 1.2.
This commit is contained in:
Takashi Iwai 2003-11-03 19:09:32 +00:00
parent a66f2e98b6
commit 6498fd396f
39 changed files with 1155 additions and 158 deletions

View file

@ -37,6 +37,8 @@ void spdif_in_cb(Fl_Widget *w, void *arg)
in = 1;
} else if (source == si->internal) {
in = 2;
} else if (source == si->aes) {
in = 3;
}
snprintf(card_name, 6, "hw:%i", pane->alsa_index);
snd_ctl_elem_value_alloca(&ctl);
@ -63,15 +65,19 @@ void spdif_in_cb(Fl_Widget *w, void *arg)
HC_SpdifIn::HC_SpdifIn(int x, int y, int w, int h):Fl_Group(x, y, w, h, "SPDIF In")
{
int i = 0;
int v_step = (int)(h/3.0f);
source = 0;
box(FL_ENGRAVED_FRAME);;
label("SPDIF In");
labelsize(10);
align(FL_ALIGN_TOP|FL_ALIGN_LEFT);
adat1 = new Fl_Round_Button(x+15, y+v_step*i++, w-30, v_step, "ADAT1");
coaxial = new Fl_Round_Button(x+15, y+v_step*i++, w-30, v_step, "Coaxial");
internal = new Fl_Round_Button(x+15, y+v_step*i++, w-30, v_step, "Internal");
adat1 = new Fl_Round_Button(x+10, y+V_STEP*i++, w-20, V_STEP, "Optical");
coaxial = new Fl_Round_Button(x+10, y+V_STEP*i++, w-20, V_STEP, "Coaxial");
internal = new Fl_Round_Button(x+10, y+V_STEP*i++, w-20, V_STEP, "Internal");
if (((HC_CardPane *)parent())->type == H9632) {
aes = new Fl_Round_Button(x+10, y+V_STEP*i++, w-20, V_STEP, "AES");
aes->labelsize(10);
aes->type(FL_RADIO_BUTTON);
aes->callback(spdif_in_cb, (void *)this);
}
adat1->labelsize(10);
adat1->type(FL_RADIO_BUTTON);
adat1->callback(spdif_in_cb, (void *)this);