Пример #1
0
void MIDIOut::init()
{
	m_alsa = NULL;
	m_address = NULL;

	/* Initialize ALSA stuff */
	initALSA();

	/* Find out what devices we have */
	rescanDevices();
}
Пример #2
0
Boolean WISInput::initialize(UsageEnvironment& env) {
  do {
    if (!openFiles(env)) break;
    if (!initALSA(env)) break;
    if (!initV4L(env)) break;

    return True;
  } while (0);

  // An error occurred
  return False;
}
Пример #3
0
void MIDIInput::init()
{
	m_alsa = NULL;
	m_address = NULL;

	/* Create the poller thread */
	m_poller = new MIDIPoller(this);

	/* Initialize ALSA stuff */
	initALSA();

	/* Find out what devices we have */
	rescanDevices();
}