- Reestructuración de ficheros y directorios general
- merge v0.01 --> Añadido fileselector - Añadidas fuentes de Gem y Pure Data - pix2jpg incluído en Gem. Archivos de construcción de Gem modificados. - Añadido fichero ompiling.txt con instrucciones de compilación
This commit is contained in:
parent
c9adfd020b
commit
e85d191b46
3100 changed files with 775434 additions and 3073 deletions
60
pd-0.44-2/portmidi/pm_linux/pmlinux.c
Executable file
60
pd-0.44-2/portmidi/pm_linux/pmlinux.c
Executable file
|
@ -0,0 +1,60 @@
|
|||
/* pmlinux.c -- PortMidi os-dependent code */
|
||||
|
||||
/* This file only needs to implement pm_init(), which calls various
|
||||
routines to register the available midi devices. This file must
|
||||
be separate from the main portmidi.c file because it is system
|
||||
dependent, and it is separate from, pmlinuxalsa.c, because it
|
||||
might need to register non-alsa devices as well.
|
||||
|
||||
NOTE: if you add non-ALSA support, you need to fix :alsa_poll()
|
||||
in pmlinuxalsa.c, which assumes all input devices are ALSA.
|
||||
*/
|
||||
|
||||
#include "stdlib.h"
|
||||
#include "portmidi.h"
|
||||
#ifdef PMALSA
|
||||
#include "pmlinuxalsa.h"
|
||||
#endif
|
||||
|
||||
#ifdef PMNULL
|
||||
#include "pmlinuxnull.h"
|
||||
#endif
|
||||
|
||||
PmError 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
|
||||
return pmNoError;
|
||||
}
|
||||
|
||||
void pm_term(void)
|
||||
{
|
||||
#ifdef PMALSA
|
||||
pm_linuxalsa_term();
|
||||
#endif
|
||||
}
|
||||
|
||||
PmDeviceID pm_default_input_device_id = -1;
|
||||
PmDeviceID pm_default_output_device_id = -1;
|
||||
|
||||
PmDeviceID Pm_GetDefaultInputDeviceID() {
|
||||
return pm_default_input_device_id;
|
||||
}
|
||||
|
||||
PmDeviceID Pm_GetDefaultOutputDeviceID() {
|
||||
return pm_default_output_device_id;
|
||||
}
|
||||
|
||||
void *pm_alloc(size_t s) { return malloc(s); }
|
||||
|
||||
void pm_free(void *ptr) { free(ptr); }
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue