Warning: session_start(): open(/var/lib/php/sessions/sess_ddeem332nn6h5dpuu4tmccf2ik, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
import javax.sound.sampled.*;
static /*Target*/DataLine currentLine;
p-substance {
final L lines = allTargetDataLines();
L lineNames = allToString(lines);
ButtonGroup buttons = showUnselectedRadioButtons("Input Audio Lines", lineNames);
JFrame frame = minFrameWidth(300, packFrame(buttons));
final JLabel lblLevel = jcenteredBoldLabel("Level: ");
addToWindowAndPack(frame, lblLevel);
awtEvery(lblLevel, 100, r {
S text = "Level: ";
if (currentLine != null) try {
text += currentLine.getLevel();
} catch e {
text += str(e);
printStackTrace(e);
}
lblLevel.setText(text);
});
onRadioButtonChange(buttons, voidfunc(int i) {
if (i < 0) ret;
AudioLine line = lines.get(i);
currentLine = (DataLine) line.open();
thread {
print("Capturing");
captureAudioFromLine(currentLine, sphinxAudioFormat());
print("Capture done");
}
});
}