1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
/*
PsychToolbox3/Source/Common/PsychPortAudio/RegisterProject.c
PROJECTS: PsychPortAudio only.
AUTHORS:
Mario Kleiner mk mario.kleiner at tuebingen.mpg.de
PLATFORMS: This file should compile on all platforms.
HISTORY:
21.3.2007 mk Created.
TARGET LOCATION:
DoNothing.mexmac resides in:
PsychToolbox/PsychBasic/
To change the target location modify the script:
Psychtoolbox/Tools/Scripts/CopyOutMexFiles/DoNothing_CopyOut.sh
*/
#include "Psych.h"
#include "RegisterProject.h"
#include "PsychPortAudio.h"
PsychError PsychModuleInit(void)
{
//register the project exit function
PsychErrorExit(PsychRegisterExit(&PsychPortAudioExit));
// Register the project function which is called when the module
// is invoked with no arguments:
PsychErrorExit(PsychRegister(NULL, &PSYCHPORTAUDIODisplaySynopsis));
// Report the version
PsychErrorExit(PsychRegister("Version", &MODULEVersion));
// Register the module name
PsychErrorExit(PsychRegister("PsychPortAudio", NULL));
// Register synopsis and named subfunctions.
PsychErrorExit(PsychRegister("Verbosity", &PSYCHPORTAUDIOVerbosity));
PsychErrorExit(PsychRegister("Open", &PSYCHPORTAUDIOOpen));
PsychErrorExit(PsychRegister("OpenSlave", &PSYCHPORTAUDIOOpenSlave));
PsychErrorExit(PsychRegister("Close", &PSYCHPORTAUDIOClose));
PsychErrorExit(PsychRegister("Start", &PSYCHPORTAUDIOStartAudioDevice));
PsychErrorExit(PsychRegister("RescheduleStart", &PSYCHPORTAUDIORescheduleStart));
PsychErrorExit(PsychRegister("Stop", &PSYCHPORTAUDIOStopAudioDevice));
PsychErrorExit(PsychRegister("FillBuffer", &PSYCHPORTAUDIOFillAudioBuffer));
PsychErrorExit(PsychRegister("RefillBuffer", &PSYCHPORTAUDIORefillBuffer));
PsychErrorExit(PsychRegister("GetDevices", &PSYCHPORTAUDIOGetDevices));
PsychErrorExit(PsychRegister("GetStatus", &PSYCHPORTAUDIOGetStatus));
PsychErrorExit(PsychRegister("LatencyBias", &PSYCHPORTAUDIOLatencyBias));
PsychErrorExit(PsychRegister("GetAudioData", &PSYCHPORTAUDIOGetAudioData));
PsychErrorExit(PsychRegister("RunMode", &PSYCHPORTAUDIORunMode));
PsychErrorExit(PsychRegister("SetLoop", &PSYCHPORTAUDIOSetLoop));
PsychErrorExit(PsychRegister("EngineTunables", &PSYCHPORTAUDIOEngineTunables));
PsychErrorExit(PsychRegister("GetOpenDeviceCount", &PSYCHPORTAUDIOGetOpenDeviceCount));
PsychErrorExit(PsychRegister("UseSchedule", &PSYCHPORTAUDIOUseSchedule));
PsychErrorExit(PsychRegister("AddToSchedule", &PSYCHPORTAUDIOAddToSchedule));
PsychErrorExit(PsychRegister("CreateBuffer", &PSYCHPORTAUDIOCreateBuffer));
PsychErrorExit(PsychRegister("DeleteBuffer", &PSYCHPORTAUDIODeleteBuffer));
PsychErrorExit(PsychRegister("SetOpMode", &PSYCHPORTAUDIOSetOpMode));
PsychErrorExit(PsychRegister("DirectInputMonitoring", &PSYCHPORTAUDIODirectInputMonitoring));
PsychErrorExit(PsychRegister("Volume", &PSYCHPORTAUDIOVolume));
// Setup synopsis help strings:
InitializeSynopsis(); //Scripting glue won't require this if the function takes no arguments.
// Setup module author:
PsychSetModuleAuthorByInitials("mk");
// Call wait-routine for 0.1 secs: This to initialize the time glue on MS-Windows,
// so the first call to a timing function won't delay:
PsychWaitIntervalSeconds(0.1);
// Startup finished.
return(PsychError_none);
}
|