Exemplo n.º 1
0
PmError pm_init()
{
    #ifdef PMALSA
	return pm_linuxalsa_init();
    #endif
    #ifdef PMNULL
        return pm_linuxnull_init();
    #endif
}
Exemplo n.º 2
0
PmError pm_init()
{
    #ifdef PMALSA
	pm_linuxalsa_init();
    #endif
    #ifdef PMNULL
        pm_linuxnull_init();
    #endif
    return pmNoError;
}
Exemplo n.º 3
0
void pm_init()
{
    /* Note: it is not an error for PMALSA to fail to initialize.
     * It may be a design error that the client cannot query what subsystems
     * are working properly other than by looking at the list of available
     * devices.
     */
    #ifdef PMALSA
        pm_linuxalsa_init();
    #endif
    #ifdef PMNULL
        pm_linuxnull_init();
    #endif
    // this is set when we return to Pm_Initialize, but we need it
    // now in order to (successfully) call Pm_CountDevices()
    pm_initialized = TRUE;
    pm_default_input_device_id = find_default_device(
        "/PortMidi/PM_RECOMMENDED_INPUT_DEVICE", TRUE,
        pm_default_input_device_id);
    pm_default_output_device_id = find_default_device(
        "/PortMidi/PM_RECOMMENDED_OUTPUT_DEVICE", FALSE,
        pm_default_output_device_id);
}