Ejemplo n.º 1
0
void AudioDriverCoreAudio::set_device(String device) {

	device_name = device;
	if (active) {
		_set_device(device_name);
	}
}
Ejemplo n.º 2
0
void AudioDriverCoreAudio::capture_set_device(const String &p_name) {

	capture_device_name = p_name;
	if (active) {
		_set_device(capture_device_name, true);
	}
}
Ejemplo n.º 3
0
int serial_start(struct serialsosurce *ss)
{
	int ret;
	ret = _open_device(ss, "/dev/ttyUSB0");
	assert(ret == 0);
	
	ret = _set_device(ss, 9600, '7', 'E', '1');
	assert(ret == 0);
	
	pthread_t tid_serial;
	ret = pthread_create(&tid_serial, NULL, thread_serialcomm, (void *)ss);
	assert(ret == 0);

	ss->tid_serial = tid_serial;
	
	return 0;
}