You can subscribe to this list here.
| 2004 |
Jan
(65) |
Feb
(85) |
Mar
(34) |
Apr
(24) |
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
|---|
|
From: Johnny P. <ele...@us...> - 2004-10-01 04:07:18
|
Update of /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/PandaModule.xcode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8297/MACOSX/Core/PandaModule.xcode Modified Files: johnny.pbxuser project.pbxproj Log Message: update Index: project.pbxproj =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/PandaModule.xcode/project.pbxproj,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** project.pbxproj 23 Apr 2004 14:28:33 -0000 1.9 --- project.pbxproj 1 Oct 2004 04:06:59 -0000 1.10 *************** *** 28,31 **** --- 28,32 ---- GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_OPTIMIZATION_LEVEL = 3; + PREBINDING = NO; ZERO_LINK = NO; }; *************** *** 423,427 **** OPTIMIZATION_CFLAGS = "-O3"; OTHER_CFLAGS = "-Wno-long-double"; - OTHER_LDFLAGS = ""; OTHER_LIBTOOL_FLAGS = ""; OTHER_REZFLAGS = ""; --- 424,427 ---- Index: johnny.pbxuser =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/PandaModule.xcode/johnny.pbxuser,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** johnny.pbxuser 23 Apr 2004 14:28:32 -0000 1.12 --- johnny.pbxuser 1 Oct 2004 04:06:59 -0000 1.13 *************** *** 42,48 **** PBXFileTableDataSourceColumnWidthsKey = ( 20, ! 843, 20, ! 148, 43, 43, --- 42,48 ---- PBXFileTableDataSourceColumnWidthsKey = ( 20, [...1264 lines suppressed...] rLen = 0; ! rLoc = 3678; rType = 0; vrLen = 0; *************** *** 2076,2078 **** --- 1961,1973 ---- activeExec = 0; }; + B2FCEB04066B803400252FE1 = { + fRef = B29088EF057F9C0200700DDE; + isa = PBXTextBookmark; + name = "panda.h: 94"; + rLen = 0; + rLoc = 2291; + rType = 0; + vrLen = 952; + vrLoc = 1802; + }; } |
|
From: Johnny P. <ele...@us...> - 2004-10-01 04:07:17
|
Update of /cvsroot/xpanda/Panda/Framework-Library/MACOSX In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8297/MACOSX Modified Files: .DS_Store Log Message: update Index: .DS_Store =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/.DS_Store,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 Binary files /tmp/cvs6JFZG1 and /tmp/cvsxt7vZL differ |
|
From: Johnny P. <ele...@us...> - 2004-10-01 04:07:17
|
Update of /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8297/MACOSX/Core Modified Files: PandaModule.cpp PandaModule.h moduleloader.cpp moduleloader.hpp Log Message: update Index: PandaModule.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/PandaModule.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PandaModule.h 23 Apr 2004 14:28:32 -0000 1.7 --- PandaModule.h 1 Oct 2004 04:06:58 -0000 1.8 *************** *** 77,80 **** --- 77,90 ---- void deleteAudioEngine(); + void Sleep_SetBPM(double bpm); + + double Sleep_GetBPM(); + + void Sleep_SetResolution(int res); + + int Sleep_GetResolution(); + + void Sleep_ForTicks(long ticks); + void HELP(int ID); Index: moduleloader.cpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/moduleloader.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** moduleloader.cpp 23 Apr 2004 14:28:32 -0000 1.11 --- moduleloader.cpp 1 Oct 2004 04:06:58 -0000 1.12 *************** *** 45,52 **** #endif - #ifndef MAXPATHLEN - #define MAXPATHLEN 1024 - #endif - list<ModuleLoader*> ModuleLoader::Audio_StartPoints; list<ModuleLoader*> ModuleLoader::Audio_ADCs; --- 45,48 ---- *************** *** 64,67 **** --- 60,64 ---- isStartPoint = false; isADC = false; + needsStartPoint = false; int nameLen = strlen(name); char modName2Arr[nameLen+10]; *************** *** 81,91 **** loadBundle(ID,argc,argv); Connection::addModule(ID,this); ! if(strcmp(name,"Audio/StartPoint")==0 || strcmp(name,"audio/startpoint")==0) { ! ModuleLoader::Audio_StartPoints.push_back(this); ! isStartPoint = true; } ! if(strcmp(name,"Audio/ADC")==0 || strcmp(name,"audio/adc")==0) { ! ModuleLoader::Audio_ADCs.push_back(this); ! isADC = true; } modName = (char*)calloc(strlen(name)+2,sizeof(char)); --- 78,88 ---- loadBundle(ID,argc,argv); Connection::addModule(ID,this); ! if(functs.GetParameterListPtr(data).subType=='PSPO') { ! ModuleLoader::Audio_StartPoints.push_back(this); ! isStartPoint = true; } ! if(functs.GetParameterListPtr(data).subType=='PADC') { ! ModuleLoader::Audio_ADCs.push_back(this); ! isADC = true; } modName = (char*)calloc(strlen(name)+2,sizeof(char)); *************** *** 114,118 **** if(ModuleLoader::s_modules_extension) strcat(modName2,ModuleLoader::s_modules_extension); ! else strcat(modName2,".panda"); char *bundleName = modName2; --- 111,115 ---- if(ModuleLoader::s_modules_extension) strcat(modName2,ModuleLoader::s_modules_extension); ! else strcat(modName2,".panda"); char *bundleName = modName2; *************** *** 305,312 **** audio_outlets = functs.GetParameterListPtr(data).audio_outlets; audio_inlets = functs.GetParameterListPtr(data).audio_inlets; if(audio_inlets>0) { functs.AllocInletsPtr = (float** (*)(MyData*,long int,int*)) dlsym(module,"AllocInlets"); inletsBufferList.buffers = functs.AllocInletsPtr(data,GetPandaBufferSize(),&inletsBufferList.manyBuffers); ! } else printf("cannot call AllocInlets\n"); break; case ONLY_PARAMETERS: --- 302,310 ---- audio_outlets = functs.GetParameterListPtr(data).audio_outlets; audio_inlets = functs.GetParameterListPtr(data).audio_inlets; + needsStartPoint = c_bool(functs.GetParameterListPtr(data).audio_startpoint); if(audio_inlets>0) { functs.AllocInletsPtr = (float** (*)(MyData*,long int,int*)) dlsym(module,"AllocInlets"); inletsBufferList.buffers = functs.AllocInletsPtr(data,GetPandaBufferSize(),&inletsBufferList.manyBuffers); ! } break; case ONLY_PARAMETERS: *************** *** 415,422 **** audio_outlets = functs.GetParameterListPtr(data).audio_outlets; audio_inlets = functs.GetParameterListPtr(data).audio_inlets; if(audio_inlets>0) { functs.AllocInletsPtr = (float** (*)(MyData*,long int,int*)) loadlib_func(module,"AllocInlets"); inletsBufferList.buffers = functs.AllocInletsPtr(data,GetPandaBufferSize(),&inletsBufferList.manyBuffers); ! } else printf("cannot call AllocInlets\n"); break; case ONLY_PARAMETERS: --- 413,421 ---- audio_outlets = functs.GetParameterListPtr(data).audio_outlets; audio_inlets = functs.GetParameterListPtr(data).audio_inlets; + needsStartPoint = c_bool(functs.GetParameterListPtr(data).audio_startpoint); if(audio_inlets>0) { functs.AllocInletsPtr = (float** (*)(MyData*,long int,int*)) loadlib_func(module,"AllocInlets"); inletsBufferList.buffers = functs.AllocInletsPtr(data,GetPandaBufferSize(),&inletsBufferList.manyBuffers); ! } break; case ONLY_PARAMETERS: *************** *** 448,452 **** *theBundle = CFBundleCreate(kCFAllocatorDefault,bundleURL); CFRelease(bundleURL); ! } if(!bundleURL || *theBundle==NULL) { CFRelease(stringa); --- 447,452 ---- *theBundle = CFBundleCreate(kCFAllocatorDefault,bundleURL); CFRelease(bundleURL); ! } ! if(ModuleLoader::s_modules_directory) return noErr; if(!bundleURL || *theBundle==NULL) { CFRelease(stringa); *************** *** 506,510 **** if(!bundleURL || *theBundle==NULL) return -55; ! return noErr; --- 506,518 ---- if(!bundleURL || *theBundle==NULL) return -55; ! CFURLRef resURL = CFBundleCopyResourcesDirectoryURL(*theBundle); ! if(resURL) { ! memset(&resourcePath[0],0x0,sizeof(char)*1024); ! UInt8 *buf = (UInt8*)&resourcePath[0]; ! CFURLGetFileSystemRepresentation(resURL,true,buf,1024); ! CFRelease(resURL); ! strcat(&resourcePath[0],"/"); ! } ! return noErr; *************** *** 541,548 **** audio_outlets = functs.GetParameterListPtr(data).audio_outlets; audio_inlets = functs.GetParameterListPtr(data).audio_inlets; if(audio_inlets>0) { functs.AllocInletsPtr = (float** (*)(MyData*,long int,int*)) CFBundleGetFunctionPointerForName(module, CFSTR("AllocInlets")); inletsBufferList.buffers = functs.AllocInletsPtr(data,GetPandaBufferSize(),&inletsBufferList.manyBuffers); ! } else printf("cannot call AllocInlets\n"); break; case ONLY_PARAMETERS: --- 549,557 ---- audio_outlets = functs.GetParameterListPtr(data).audio_outlets; audio_inlets = functs.GetParameterListPtr(data).audio_inlets; + needsStartPoint = c_bool(functs.GetParameterListPtr(data).audio_startpoint); if(audio_inlets>0) { functs.AllocInletsPtr = (float** (*)(MyData*,long int,int*)) CFBundleGetFunctionPointerForName(module, CFSTR("AllocInlets")); inletsBufferList.buffers = functs.AllocInletsPtr(data,GetPandaBufferSize(),&inletsBufferList.manyBuffers); ! } break; case ONLY_PARAMETERS: *************** *** 647,845 **** #endif - //EXTERN "C" - - char * GetModuleResourcesPath(int ID) { - ModuleLoader *module = Connection::moduleFromID(ID); - return &module->resourcePath[0]; - } - - #if defined (__LINUX__) || (__WIN32__) - void * GetModuleBundleFromID(int ID) { - return ModuleLoader::GetModuleBundle(ID); - } - #else - CFBundleRef GetModuleBundleFromID(int ID) { - return ModuleLoader::GetModuleBundle(ID); - } - #endif - - void * GetModuleVoidPtr(int ID) { - return (void*)Connection::moduleFromID(ID); - } - - int GetManyModules() { - return Connection::modules.size(); - } - - list<S_SharedPtr> keysList; - - int setSharedPointer(char *key,void *ptr) { - S_SharedPtr newItem; - strcpy(&newItem.key[0],key); - newItem.ptr = ptr; - - keysList.push_back(newItem); - - return TRUE; - } - - void *sharedPointer(char *key) { - list<S_SharedPtr>::iterator i; - for(i=keysList.begin(); i!=keysList.end();++i) { - S_SharedPtr item = *i; - if(strcmp(&item.key[0],key)==0) { - return item.ptr; - } - } - - return NULL; - } - - void removeSharedPointer(char *key) { - list<S_SharedPtr>::iterator i; - for(i=keysList.begin(); i!=keysList.end();++i) { - S_SharedPtr item = *i; - if(strcmp(&item.key[0],key)==0) { - keysList.erase(i); - return; - } - } - } - - void PandaLog(char *fmt,...) { - va_list ap; - va_start(ap, fmt); - fprintf(stderr,"PandaLog: "); - vfprintf(stderr, fmt, ap); - va_end(ap); - } - - void outletCall(int ID, int outletNumber, void * values) { - Var *variables = (Var*)values; - Connection::executeConnected(ID,outletNumber,variables); - } - - int audio_StartPointCall(int ID, int outletNumber,long bufferSize) { - return Connection::audio_executeConnected(ID,outletNumber,bufferSize); - } - - int audio_DoRenderAtModule(int ID,long bufferSize) { - ModuleLoader *module = Connection::moduleFromID(ID); - if(module) return module->audio_executeMethod(bufferSize); - return 0; - } - - InletsBuffers2 GetOutletBuffers(int ID, int outletNumber) { - InletsBuffers2 buffersList; - Connection::getBuffersConnected(ID,outletNumber,&buffersList); - return buffersList; - } - - float **GetADCBuffers(int *channels) { - *channels = AudioRender::gInputChannels; - return AudioRender::getADC(); - } - - float **GetDACBuffers(int *channels) { - *channels = AudioRender::gOutputChannels; - return AudioRender::getDAC(); - } - - void setADC(float **buffers) { - AudioRender::setADC(buffers); - } - - void setDAC(float **buffers) { - AudioRender::setDAC(buffers); - } - - long GetBufferSize() { - return GetPandaBufferSize(); - } - - long GetPandaBufferSize() { - return glBufferSize; - } - - void SetPandaBufferSize(long nframes) { // useful for multiple buffer size zones. this must be set with the more higher value of the zones. - if(nframes>glBufferSize) { - glBufferSize = nframes; - } - } - - void SetPandaSampleRate(float newSR) { - AudioRender::gSampleRate = newSR; - } - - void SetPandaInChannels(int inChannels) { - AudioRender::gInputChannels = inChannels; - } - - void SetPandaOutChannels(int outChannels) { - AudioRender::gOutputChannels = outChannels; - } - - float GetSampleRate() { - float res = AudioRender::gSampleRate; - return res; - } - int GetDeviceInputChannels() { - int res = AudioRender::gInputChannels; - return res; - } - int GetDeviceOutputChannels() { - int res = AudioRender::gOutputChannels; - return res; - } - - float **GetPluginADCBuffers(char *istanceName) { - return P_AudioUnitRender::getADC(istanceName); - } - - float **GetPluginDACBuffers(char *istanceName) { - return P_AudioUnitRender::getDAC(istanceName); - } - - P_BOOL GetPluginAudioConfiguration(char *istanceName,float *outSR,long *outBSize,int *outInCh,int *outOutCh) { - return P_AudioUnitRender::getAudioConfiguration(istanceName,outSR,outBSize,outInCh,outOutCh); - } - - int c_bool(P_BOOL the_p_bool) { - if(the_p_bool==B_YES) return TRUE; - return FALSE; - } - - P_BOOL p_bool(int c_cond) { - if(c_cond) return B_YES; - return B_NO; - } - - int addThread(void *callerData,ThreadFunctionPtr ThreadFunction) { - return Thread::newThread(callerData,ThreadFunction); - } - - void removeThread(int ThreadReference) { - Thread::deleteThread(ThreadReference); - } - - int changeThreadPriority(int ThreadReference,int priority) { - return Thread::changePriority(ThreadReference,priority); - } - - void doPandaRender(long nframes) { - list<ModuleLoader*>::iterator i; - for(i=ModuleLoader::Audio_StartPoints.begin(); i!=ModuleLoader::Audio_StartPoints.end();++i) { - ModuleLoader *theConn = *i; - theConn->audio_executeMethod(nframes); - } - - for(i=ModuleLoader::Audio_ADCs.begin(); i!=ModuleLoader::Audio_ADCs.end();++i) { - ModuleLoader *theConn = *i; - theConn->audio_executeMethod(nframes); - } - } - - //END EXTERN "C" - //class connection --- 656,659 ---- *************** *** 856,860 **** bool Connection::connect(int fromID,int fromOutlet,int toID,int toInlet) { ModuleLoader *module = Connection::moduleFromID(fromID); ! if(!module) return false; list<Connection*>::iterator i; for(i=module->connections.begin(); i!=module->connections.end();++i) { --- 670,677 ---- bool Connection::connect(int fromID,int fromOutlet,int toID,int toInlet) { ModuleLoader *module = Connection::moduleFromID(fromID); ! ModuleLoader *toModule = Connection::moduleFromID(toID); ! if(!module || !toModule) return false; ! if(fromOutlet>=module->outlets) return false; ! if(toInlet>=toModule->inlets) return false; list<Connection*>::iterator i; for(i=module->connections.begin(); i!=module->connections.end();++i) { *************** *** 884,888 **** bool Connection::audio_connect(int fromID,int fromOutlet,int toID,int toInlet) { ModuleLoader *module = Connection::moduleFromID(fromID); ! if(!module) return false; list<Connection*>::iterator i; for(i=module->audio_connections.begin(); i!=module->audio_connections.end();++i) { --- 701,712 ---- bool Connection::audio_connect(int fromID,int fromOutlet,int toID,int toInlet) { ModuleLoader *module = Connection::moduleFromID(fromID); ! ModuleLoader *toModule = Connection::moduleFromID(toID); ! if(!module || !toModule) return false; ! if(fromOutlet>=module->audio_outlets) return false; ! if(toInlet>=toModule->audio_inlets) { ! if(!(toInlet==0 && toModule->needsStartPoint)) { ! return false; ! } ! } list<Connection*>::iterator i; for(i=module->audio_connections.begin(); i!=module->audio_connections.end();++i) { *************** *** 946,950 **** } ! bool isDone(int toID,int *array, int many) { int i; for(i=0;i<many;i++) { --- 770,774 ---- } ! bool Connection::isDone(int toID,int *array, int many) { int i; for(i=0;i<many;i++) { *************** *** 1699,1702 **** --- 1523,1565 ---- #endif + // PandaSleep CLASS + + double PandaSleep::bpm = 60.0; + int PandaSleep::res = PandaSleep::res1_4; + + void PandaSleep::WaitForTicks(long ticks) { + // unit us (microseconds) + double ms_meas_time = (60.0/PandaSleep::bpm)*1000000.0; + double tick_time = 0.0; + switch(PandaSleep::res) { + case PandaSleep::res1_4: + tick_time = ms_meas_time; + break; + case PandaSleep::res1_8: + tick_time = ms_meas_time/4.0; + break; + case PandaSleep::res1_16: + tick_time = ms_meas_time/8.0; + break; + case PandaSleep::res1_32: + tick_time = ms_meas_time/16.0; + break; + case PandaSleep::res1_64: + tick_time = ms_meas_time/32.0; + break; + case PandaSleep::res1_128: + tick_time = ms_meas_time/64.0; + break; + default: + return; + } + long time_to_sleep = ticks * (long)floor(tick_time); + #ifndef __WIN32__ + usleep(time_to_sleep); + #else + Sleep(time_to_sleep/1000); //I'm not a win32 developer, so I don't know an usleep like function..... + #endif + } + //Audio render CLASS *************** *** 1726,1730 **** #endif ! if(!driver_bundle) { PandaLog("driver NULL\n"); status = false; return; } #if defined (__LINUX__) || (__WIN32__) --- 1589,1593 ---- #endif ! if(!driver_bundle) { PandaLog("Cannot find or load requested Panda audio driver.\n"); status = false; return; } #if defined (__LINUX__) || (__WIN32__) *************** *** 1807,1810 **** --- 1670,1679 ---- } + if(!driver_bundle && ModuleLoader::s_modules_directory) { + strcpy(&loadPathArr[0],ModuleLoader::s_modules_directory); + strcat(&loadPathArr[0],moduleExcPath); + driver_bundle = dlopen (&loadPathArr[0], RTLD_NOW|RTLD_GLOBAL); + } + return driver_bundle ? TRUE : FALSE; } *************** *** 1890,1893 **** --- 1759,1768 ---- } + if(!driver_bundle && ModuleLoader::s_modules_directory) { + strcpy(&loadPathArr[0],ModuleLoader::s_modules_directory); + strcat(&loadPathArr[0],moduleExcPath); + driver_bundle = dlopen (&loadPathArr[0], RTLD_NOW|RTLD_GLOBAL); + } + return driver_bundle ? TRUE : FALSE; } *************** *** 1941,1945 **** *theBundle = CFBundleCreate(kCFAllocatorDefault,bundleURL); CFRelease(bundleURL); ! } else return -22; } --- 1816,1833 ---- *theBundle = CFBundleCreate(kCFAllocatorDefault,bundleURL); CFRelease(bundleURL); ! } else { ! CFRelease(stringa); ! strcpy(&homeName[0],ModuleLoader::s_modules_directory); ! strcat(&homeName[0],bundleName); ! ! stringa = CFStringCreateWithCString(kCFAllocatorDefault,&homeName[0],NULL); ! ! bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault,stringa,kCFURLPOSIXPathStyle,true); ! ! if(bundleURL) { ! *theBundle = CFBundleCreate(kCFAllocatorDefault,bundleURL); ! CFRelease(bundleURL); ! } else { CFRelease(stringa); return -22; } ! } } *************** *** 2031,2035 **** } ! float **AudioRender::getDAC() { if(AudioRender::theRender==NULL) return NULL; return AudioRender::theRender->outBuffers; --- 1919,1923 ---- } ! float **AudioRender::getDAC() { if(AudioRender::theRender==NULL) return NULL; return AudioRender::theRender->outBuffers; *************** *** 2052,2058 **** strcpy(&name[0],istanceName); theAu = theAU; if(vInChannels>0) inBuffers = (float**)malloc(sizeof(float*)*vInChannels); else inBuffers = NULL; ! if(vChannels>0) outBuffers = (float**)malloc(sizeof(float*)*vChannels); else outBuffers = NULL; --- 1940,1948 ---- strcpy(&name[0],istanceName); theAu = theAU; + if(vInChannels>0) inBuffers = (float**)malloc(sizeof(float*)*vInChannels); else inBuffers = NULL; ! ! if(vChannels>0) outBuffers = (float**)malloc(sizeof(float*)*vChannels); else outBuffers = NULL; *************** *** 2082,2086 **** free(inBuffers[i]); } ! free(inBuffers); } --- 1972,1976 ---- free(inBuffers[i]); } ! if(inBuffers) free(inBuffers); } *************** *** 2089,2093 **** free(outBuffers[i]); } ! free(outBuffers); } --- 1979,1983 ---- free(outBuffers[i]); } ! if(outBuffers) free(outBuffers); } *************** *** 2120,2127 **** if(i->second) { P_AudioUnitRender *au = i->second; ! *outSR = au->vSampleRate; ! *outBSize = au->vBufferSize; ! *outInCh = au->vInChannels; ! *outOutCh = au->vChannels; return B_YES; } --- 2010,2017 ---- if(i->second) { P_AudioUnitRender *au = i->second; ! if(outSR) *outSR = au->vSampleRate; ! if(outBSize) *outBSize = au->vBufferSize; ! if(outInCh) *outInCh = au->vInChannels; ! if(outOutCh) *outOutCh = au->vChannels; return B_YES; } *************** *** 2134,2137 **** --- 2024,2039 ---- if(i->second) { P_AudioUnitRender *au = i->second; + ModuleLoader *mod = Connection::moduleFromID(moduleID); + switch(mod->functs.GetParameterListPtr(mod->data).subType) { + case 'PSPO': + au->addStartPoint(instance,mod); + break; + case 'PLAD': + au->addADC(instance,mod); + break; + case 'PADC': + case 'PDAC': + return; + } au->modulesInThis.push_back(moduleID); } *************** *** 2147,2151 **** int ID = *it; if(ID!=-1) { - printf("trying to release module: %d\n",ID); ModuleLoader *theModule = Connection::moduleFromID(ID); if(theModule!=NULL) delete theModule; --- 2049,2052 ---- *************** *** 2169,2173 **** theConn->audio_executeMethod(nframes); } - for(i=au->p_ADC.begin(); i!=au->p_ADC.end();++i) { ModuleLoader *theConn = *i; --- 2070,2073 ---- *************** *** 2197,2199 **** --- 2097,2294 ---- } + //EXTERN "C" + + char * GetModuleResourcesPath(int ID) { + ModuleLoader *module = Connection::moduleFromID(ID); + return &module->resourcePath[0]; + } + + #if defined (__LINUX__) || (__WIN32__) + void * GetModuleBundleFromID(int ID) { + return ModuleLoader::GetModuleBundle(ID); + } + #else + CFBundleRef GetModuleBundleFromID(int ID) { + return ModuleLoader::GetModuleBundle(ID); + } + #endif + + void * GetModuleVoidPtr(int ID) { + return (void*)Connection::moduleFromID(ID); + } + + int GetManyModules() { + return Connection::modules.size(); + } + + list<S_SharedPtr> keysList; + + int setSharedPointer(char *key,void *ptr) { + S_SharedPtr newItem; + strcpy(&newItem.key[0],key); + newItem.ptr = ptr; + + keysList.push_back(newItem); + + return TRUE; + } + + void *sharedPointer(char *key) { + list<S_SharedPtr>::iterator i; + for(i=keysList.begin(); i!=keysList.end();++i) { + S_SharedPtr item = *i; + if(strcmp(&item.key[0],key)==0) { + return item.ptr; + } + } + + return NULL; + } + + void removeSharedPointer(char *key) { + list<S_SharedPtr>::iterator i; + for(i=keysList.begin(); i!=keysList.end();++i) { + S_SharedPtr item = *i; + if(strcmp(&item.key[0],key)==0) { + keysList.erase(i); + return; + } + } + } + + void PandaLog(char *fmt,...) { + va_list ap; + va_start(ap, fmt); + fprintf(stderr,"PandaLog: "); + vfprintf(stderr, fmt, ap); + va_end(ap); + } + + void outletCall(int ID, int outletNumber, void * values) { + Var *variables = (Var*)values; + Connection::executeConnected(ID,outletNumber,variables); + } + + int audio_StartPointCall(int ID, int outletNumber,long bufferSize) { + return Connection::audio_executeConnected(ID,outletNumber,bufferSize); + } + + int audio_DoRenderAtModule(int ID,long bufferSize) { + ModuleLoader *module = Connection::moduleFromID(ID); + if(module) return module->audio_executeMethod(bufferSize); + return 0; + } + + InletsBuffers2 GetOutletBuffers(int ID, int outletNumber) { + InletsBuffers2 buffersList; + Connection::getBuffersConnected(ID,outletNumber,&buffersList); + return buffersList; + } + + float **GetADCBuffers(int *channels) { + *channels = AudioRender::gInputChannels; + return AudioRender::getADC(); + } + + float **GetDACBuffers(int *channels) { + *channels = AudioRender::gOutputChannels; + return AudioRender::getDAC(); + } + + void setADC(float **buffers) { + AudioRender::setADC(buffers); + } + + void setDAC(float **buffers) { + AudioRender::setDAC(buffers); + } + + long GetBufferSize() { + return GetPandaBufferSize(); + } + + long GetPandaBufferSize() { + return glBufferSize; + } + + void SetPandaBufferSize(long nframes) { // useful for multiple buffer size zones. this must be set with the more higher value of the zones. + if(nframes>glBufferSize) { + glBufferSize = nframes; + } + } + + void SetPandaSampleRate(float newSR) { + AudioRender::gSampleRate = newSR; + } + + void SetPandaInChannels(int inChannels) { + AudioRender::gInputChannels = inChannels; + } + + void SetPandaOutChannels(int outChannels) { + AudioRender::gOutputChannels = outChannels; + } + + float GetSampleRate() { + float res = AudioRender::gSampleRate; + return res; + } + int GetDeviceInputChannels() { + int res = AudioRender::gInputChannels; + return res; + } + int GetDeviceOutputChannels() { + int res = AudioRender::gOutputChannels; + return res; + } + + float **GetPluginADCBuffers(char *istanceName) { + return P_AudioUnitRender::getADC(istanceName); + } + + float **GetPluginDACBuffers(char *istanceName) { + return P_AudioUnitRender::getDAC(istanceName); + } + + P_BOOL GetPluginAudioConfiguration(char *istanceName,float *outSR,long *outBSize,int *outInCh,int *outOutCh) { + return P_AudioUnitRender::getAudioConfiguration(istanceName,outSR,outBSize,outInCh,outOutCh); + } + + int c_bool(P_BOOL the_p_bool) { + if(the_p_bool==B_YES) return TRUE; + return FALSE; + } + + P_BOOL p_bool(int c_cond) { + if(c_cond) return B_YES; + return B_NO; + } + + int addThread(void *callerData,ThreadFunctionPtr ThreadFunction) { + return Thread::newThread(callerData,ThreadFunction); + } + + void removeThread(int ThreadReference) { + Thread::deleteThread(ThreadReference); + } + + int changeThreadPriority(int ThreadReference,int priority) { + return Thread::changePriority(ThreadReference,priority); + } + + void doPandaRender(long nframes) { + list<ModuleLoader*>::iterator i; + for(i=ModuleLoader::Audio_StartPoints.begin(); i!=ModuleLoader::Audio_StartPoints.end();++i) { + ModuleLoader *theConn = *i; + theConn->audio_executeMethod(nframes); + } + + for(i=ModuleLoader::Audio_ADCs.begin(); i!=ModuleLoader::Audio_ADCs.end();++i) { + ModuleLoader *theConn = *i; + theConn->audio_executeMethod(nframes); + } + } + + //END EXTERN "C" + Index: PandaModule.cpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/PandaModule.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** PandaModule.cpp 23 Apr 2004 14:28:32 -0000 1.6 --- PandaModule.cpp 1 Oct 2004 04:06:58 -0000 1.7 *************** *** 81,84 **** --- 81,85 ---- if(fromID==-1 || toID==-1)return FALSE; bool res = Connection::connect(fromID,fromOutlet,toID,toInlet); + if(!res) PandaLog("Cannot: Connect(%d,%d,%d,%d)\n",fromID,fromOutlet,toID,toInlet); if(res) return TRUE; else return FALSE; *************** *** 95,98 **** --- 96,100 ---- if(fromID==-1 || toID==-1)return FALSE; bool res = Connection::audio_connect(fromID,fromOutlet,toID,toInlet); + if(!res) PandaLog("Cannot: Audio_Connect(%d,%d,%d,%d)\n",fromID,fromOutlet,toID,toInlet); if(res) return TRUE; else return FALSE; *************** *** 209,212 **** --- 211,236 ---- } + //------ + + void Sleep_SetBPM(double bpm) { + PandaSleep::SetBpm(bpm); + } + + double Sleep_GetBPM() { + return PandaSleep::GetBpm(); + } + + void Sleep_SetResolution(int res) { + PandaSleep::SetResolution(res); + } + + int Sleep_GetResolution() { + return PandaSleep::GetResolution(); + } + + void Sleep_ForTicks(long ticks) { + PandaSleep::WaitForTicks(ticks); + } + //------- *************** *** 263,270 **** void changeModulesSearchDirectory(char *newDirectory) { ! if(!newDirectory && ModuleLoader::s_modules_directory) { ! free(ModuleLoader::s_modules_directory); ModuleLoader::s_modules_directory = NULL; ! } else if(newDirectory && !ModuleLoader::s_modules_directory) { long len = strlen(newDirectory); ModuleLoader::s_modules_directory = (char*)calloc(len+2,sizeof(char)); --- 287,295 ---- void changeModulesSearchDirectory(char *newDirectory) { ! if(newDirectory==NULL) { ! if(ModuleLoader::s_modules_directory) free(ModuleLoader::s_modules_directory); ModuleLoader::s_modules_directory = NULL; ! } else { ! if(ModuleLoader::s_modules_directory) free(ModuleLoader::s_modules_directory); long len = strlen(newDirectory); ModuleLoader::s_modules_directory = (char*)calloc(len+2,sizeof(char)); *************** *** 274,281 **** void changeModulesBundleExtension(char *newExtension) { ! if(!newExtension && ModuleLoader::s_modules_extension) { ! free(ModuleLoader::s_modules_extension); ModuleLoader::s_modules_extension = NULL; ! } else if(newExtension && !ModuleLoader::s_modules_extension) { long len = strlen(newExtension); ModuleLoader::s_modules_extension = (char*)calloc(len+2,sizeof(char)); --- 299,307 ---- void changeModulesBundleExtension(char *newExtension) { ! if(newExtension==NULL) { ! if(ModuleLoader::s_modules_extension) free(ModuleLoader::s_modules_extension); ModuleLoader::s_modules_extension = NULL; ! } else { ! if(ModuleLoader::s_modules_extension) free(ModuleLoader::s_modules_extension); long len = strlen(newExtension); ModuleLoader::s_modules_extension = (char*)calloc(len+2,sizeof(char)); Index: moduleloader.hpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/moduleloader.hpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** moduleloader.hpp 23 Apr 2004 14:28:32 -0000 1.9 --- moduleloader.hpp 1 Oct 2004 04:06:58 -0000 1.10 *************** *** 37,47 **** #ifndef __WIN32__ #include <pthread.h> - #else - #endif #include "loadlib.h" ! #define TEST PandaLog("TEST\n") using namespace std; --- 37,47 ---- #ifndef __WIN32__ #include <pthread.h> #endif #include "loadlib.h" ! #ifndef MAXPATHLEN ! #define MAXPATHLEN 1024 ! #endif using namespace std; *************** *** 90,94 **** list<Connection*> connections; list<Connection*> audio_connections; ! char resourcePath[256]; private: bool isStartPoint; --- 90,96 ---- list<Connection*> connections; list<Connection*> audio_connections; ! char resourcePath[MAXPATHLEN]; ! int outlets,inlets,audio_outlets,audio_inlets; ! bool needsStartPoint; private: bool isStartPoint; *************** *** 105,109 **** int status; int ID; - int outlets,inlets,audio_outlets,audio_inlets; }; --- 107,110 ---- *************** *** 133,136 **** --- 134,138 ---- static list<Connection*> audio_connections; static map<int,ModuleLoader*>::iterator pos; + static bool isDone(int toID,int *array, int many); }; *************** *** 157,160 **** --- 159,175 ---- }; + class PandaSleep { + public: + enum { res1_4,res1_8,res1_16,res1_32,res1_64,res1_128 }; + static void SetBpm(double newBpmValue) { bpm = newBpmValue; } + static void SetResolution(int resolution) { res = resolution; } + static double GetBpm() { return bpm; } + static int GetResolution() { return res; } + static void WaitForTicks(long ticks); + private: + static double bpm; + static int res; + }; + class AudioRender { public: |
|
From: Johnny P. <ele...@us...> - 2004-10-01 04:07:17
|
Update of /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8297/MACOSX/Headers Modified Files: panda.h panda_h.h panda_modules.h Log Message: update Index: panda_h.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Headers/panda_h.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** panda_h.h 23 Apr 2004 14:28:33 -0000 1.8 --- panda_h.h 1 Oct 2004 04:06:59 -0000 1.9 *************** *** 174,177 **** --- 174,191 ---- int c_bool(P_BOOL the_p_bool); P_BOOL p_bool(int c_cond); + #ifdef PANDA_LOCK_MALLOC + inline static void *paLockMalloc(size_t size) { + void *res = malloc(size); + int err = mlock(res,size); + if(err!=0) PandaLog("Warining: cannot lock memory.\n"); + return res; + } + + inline static void paUlockFree(void *addr,size_t size) { + int err = munlock(addr,size); + if(err!=0) PandaLog("Warning: cannot unlock memory.\n"); + free(addr); + } + #endif Index: panda_modules.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Headers/panda_modules.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** panda_modules.h 23 Apr 2004 14:28:33 -0000 1.6 --- panda_modules.h 1 Oct 2004 04:06:59 -0000 1.7 *************** *** 49,52 **** --- 49,55 ---- }; + #define NO_AUDIO_OUTPUT -55 + #define AUDIO_OUTPUT 0 + typedef unsigned char P_BOOL; typedef unsigned char P_BYTE; *************** *** 131,134 **** --- 134,151 ---- extern int c_bool(P_BOOL the_p_bool); extern P_BOOL p_bool(int c_cond); + #ifdef PANDA_LOCK_MALLOC + inline static void *paLockMalloc(size_t size) { + void *res = malloc(size); + int err = mlock(res,size); + if(err!=0) PandaLog("Warning: cannot lock memory.\n"); + return res; + } + + inline static void paUlockFree(void *addr,size_t size) { + int err = munlock(addr,size); + if(err!=0) PandaLog("Warning: cannot unlock memory.\n"); + free(addr); + } + #endif //THREADS *************** *** 137,140 **** --- 154,238 ---- int changeThreadPriority(int ThreadReference,int priority); + // LIFOs AND FIFOs: + typedef struct _PaLifo { + void *obj_self; + struct _PaLifo *prev; + } PaLifo; + + #define PaLifoNEW(_q1) { \ + _q1 = (PaLifo*)malloc(sizeof(PaLifo)); \ + _q1->obj_self = NULL; \ + _q1->prev = NULL; \ + } + + #define PaLifoINIT(_q1,_q2) { \ + _q1 = (PaLifo*)malloc(sizeof(PaLifo)); \ + _q1->obj_self = (void*)_q2; \ + _q1->prev = NULL; \ + } + + #define PaLifoPUSH(_q,_puz) { \ + PaLifo *___q; \ + PaLifoINIT(___q,_puz); \ + ___q->prev = _q; \ + _q = ___q; \ + } + + #define PaLifoFRONT(_q) _q->obj_self + + #define PaLifoPOP(_q) { \ + PaLifo *___q; \ + if(_q->obj_self) { \ + ___q = _q->prev; \ + free(_q); \ + _q = ___q; \ + } \ + } + + + typedef struct _PaFifo { + void *obj_self; + struct _PaFifo *next; + struct _PaFifo *begin; + } PaFifo; + + #define PaFifoNEW(_q1) { \ + _q1 = (PaFifo*)malloc(sizeof(PaFifo)); \ + _q1->obj_self = NULL; \ + _q1->next = NULL; \ + _q1->begin = NULL; \ + } + + #define PaFifoINIT(_q1,__object) { \ + _q1 = (PaFifo*)malloc(sizeof(PaFifo)); \ + _q1->obj_self = (void*)__object; \ + _q1->next = NULL; \ + _q1->begin = NULL; \ + } + + #define PaFifoPUSH(__fifo,__obj_to_push) { \ + if(__fifo->begin) { \ + PaFifo *___q; \ + PaFifoINIT(___q,__obj_to_push); \ + __fifo->next = ___q; \ + ___q->begin = __fifo->begin; \ + __fifo = ___q; \ + } else { \ + __fifo->obj_self = __obj_to_push; \ + __fifo->next = NULL; \ + __fifo->begin = __fifo; \ + } \ + } + + #define PaFifoFRONT(__fifo) __fifo->begin->obj_self + + #define PaFifoPOP(__fifo) { \ + PaFifo *__b = __fifo->begin; \ + if(__b->next) { \ + __fifo->begin = __b->next; \ + free(__b); \ + } else __fifo->begin = NULL; \ + } + #ifdef __cplusplus } Index: panda.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Headers/panda.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** panda.h 23 Apr 2004 14:28:33 -0000 1.5 --- panda.h 1 Oct 2004 04:06:59 -0000 1.6 *************** *** 90,93 **** --- 90,109 ---- //-------------------------- + // Panda Timing/Sleep functions: + + enum { RES1_4,RES1_8,RES1_16,RES1_32,RES1_64,RES1_128 }; + + void Sleep_SetBPM(double bpm); + + double Sleep_GetBPM(); + + void Sleep_SetResolution(int res); + + int Sleep_GetResolution(); + + void Sleep_ForTicks(long ticks); + + //--------------------------- + // Panda such a Plugin stuff: |
|
From: Johnny P. <ele...@us...> - 2004-07-12 23:42:43
|
Update of /cvsroot/xpanda/libNetPanda/NetPanda.xcode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14332/NetPanda.xcode Modified Files: johnny.pbxuser Log Message: some little fix Index: johnny.pbxuser =================================================================== RCS file: /cvsroot/xpanda/libNetPanda/NetPanda.xcode/johnny.pbxuser,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** johnny.pbxuser 7 Jul 2004 18:13:41 -0000 1.1.1.1 --- johnny.pbxuser 12 Jul 2004 23:42:34 -0000 1.2 *************** *** 81,85 **** ); }; ! PBXPerProjectTemplateStateSaveDate = 110916458; PBXPrepackagedSmartGroups_v2 = ( { --- 81,85 ---- ); }; ! PBXPerProjectTemplateStateSaveDate = 111368227; PBXPrepackagedSmartGroups_v2 = ( { *************** *** 271,275 **** PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B2699526069C73AE00C9FC9C; history = ( B2F3451605D261F70079BDBD, --- 271,275 ---- PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B28ED05306A3591900A4EF25; history = ( B2F3451605D261F70079BDBD, *************** *** 279,283 **** B2FFC75106938D5B00323EEA, B2FFC75806938D6F00323EEA, - B2FFC7A1069393B300323EEA, B21CF68B069937BB00C8D8BA, B21CF691069937CA00C8D8BA, --- 279,282 ---- *************** *** 287,295 **** B2C8EBE0069ADB3C00482CB0, B225D9C6069B00210071DB77, - B225D9D4069B00820071DB77, B269950E069C737800C9FC9C, B2699517069C739100C9FC9C, ! B269951B069C739200C9FC9C, ! B2699513069C737D00C9FC9C, ); prevStack = ( --- 286,297 ---- B2C8EBE0069ADB3C00482CB0, B225D9C6069B00210071DB77, B269950E069C737800C9FC9C, B2699517069C739100C9FC9C, ! B28ED01E06A3582D00A4EF25, ! B28ED02206A3582F00A4EF25, ! B28ED03406A3583600A4EF25, ! B28ED03906A3584000A4EF25, ! B28ED03E06A3584D00A4EF25, ! B28ED01A06A3582A00A4EF25, ); prevStack = ( *************** *** 311,318 **** B225D9CD069B007F0071DB77, B2A723BD069B06610086D4A9, ! B269950F069C737800C9FC9C, ! B2699514069C737D00C9FC9C, ! B2699518069C739100C9FC9C, ! B269951C069C739200C9FC9C, ); }; --- 313,322 ---- B225D9CD069B007F0071DB77, B2A723BD069B06610086D4A9, ! B28ED01B06A3582A00A4EF25, ! B28ED01F06A3582D00A4EF25, ! B28ED02306A3582F00A4EF25, ! B28ED03606A3583600A4EF25, ! B28ED03B06A3584000A4EF25, ! B28ED03F06A3584D00A4EF25, ); }; *************** *** 356,359 **** --- 360,364 ---- PBXSmartGroupTreeModuleOutlineStateKey_v7 = { PBXSmartGroupTreeModuleOutlineStateExpansionKey = ( + 08FB7794FE84155DC02AAC07, 1C37FABC05509CD000000102, ); *************** *** 405,409 **** PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B2947760069B15F500ADEFAE; history = ( B2F3451605D261F70079BDBD, --- 410,414 ---- PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B27CE49006A01B2500CB9659; history = ( B2F3451605D261F70079BDBD, *************** *** 422,430 **** B225D9C6069B00210071DB77, B225D9D4069B00820071DB77, ! B2A72394069B02190086D4A9, ! B2947734069B14AC00ADEFAE, ! B294774F069B155900ADEFAE, ! B294775C069B15EB00ADEFAE, ! B2947758069B15E400ADEFAE, ); prevStack = ( --- 427,434 ---- B225D9C6069B00210071DB77, B225D9D4069B00820071DB77, ! B269950E069C737800C9FC9C, ! B2699517069C739100C9FC9C, ! B27CE48D06A01AB200CB9659, ! B269951B069C739200C9FC9C, ); prevStack = ( *************** *** 446,460 **** B225D9CD069B007F0071DB77, B2A723BD069B06610086D4A9, ! B2947717069B146700ADEFAE, ! B294772D069B14A000ADEFAE, ! B2947731069B14A400ADEFAE, ! B2947735069B14AC00ADEFAE, ! B2947739069B14E100ADEFAE, ! B2947740069B151C00ADEFAE, ! B2947744069B152E00ADEFAE, ! B294774C069B155000ADEFAE, ! B2947750069B155900ADEFAE, ! B2947759069B15E400ADEFAE, ! B294775D069B15EB00ADEFAE, ); }; --- 450,454 ---- B225D9CD069B007F0071DB77, B2A723BD069B06610086D4A9, ! B27CE48E06A01AB200CB9659, ); }; *************** *** 500,512 **** 08FB7794FE84155DC02AAC07, 08FB7795FE84155DC02AAC07, - C6A0FF2B0290797F04C91782, - B2947720069B148C00ADEFAE, - B2947723069B148C00ADEFAE, - 1C37FBAC04509CD000000102, 1C37FABC05509CD000000102, ); PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( ( ! 6, 1, 0, --- 494,502 ---- 08FB7794FE84155DC02AAC07, 08FB7795FE84155DC02AAC07, 1C37FABC05509CD000000102, ); PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( ( ! 7, 1, 0, *************** *** 553,557 **** RubberWindowFrame = "0 122 1280 710 0 0 1280 832 "; }; ! PBXWorkspaceStateSaveDate = 110916458; }; perUserProjectItems = { --- 543,547 ---- RubberWindowFrame = "0 122 1280 710 0 0 1280 832 "; }; ! PBXWorkspaceStateSaveDate = 111368227; }; perUserProjectItems = { *************** *** 564,581 **** B225D9C6069B00210071DB77 = B225D9C6069B00210071DB77; B225D9CD069B007F0071DB77 = B225D9CD069B007F0071DB77; - B225D9D4069B00820071DB77 = B225D9D4069B00820071DB77; B255FF3D06997A6500F2CD4C = B255FF3D06997A6500F2CD4C; B255FF3E06997A6500F2CD4C = B255FF3E06997A6500F2CD4C; B269950E069C737800C9FC9C = B269950E069C737800C9FC9C; - B269950F069C737800C9FC9C = B269950F069C737800C9FC9C; - B2699513069C737D00C9FC9C = B2699513069C737D00C9FC9C; - B2699514069C737D00C9FC9C = B2699514069C737D00C9FC9C; B2699517069C739100C9FC9C = B2699517069C739100C9FC9C; - B2699518069C739100C9FC9C = B2699518069C739100C9FC9C; - B269951B069C739200C9FC9C = B269951B069C739200C9FC9C; - B269951C069C739200C9FC9C = B269951C069C739200C9FC9C; - B2699526069C73AE00C9FC9C = B2699526069C73AE00C9FC9C; B2737DA005DC055800F38E23 = B2737DA005DC055800F38E23; B277FD6F05D7F86700A57D63 = B277FD6F05D7F86700A57D63; B2A723BD069B06610086D4A9 = B2A723BD069B06610086D4A9; B2C31CC006941B1800998BDC = B2C31CC006941B1800998BDC; --- 554,576 ---- B225D9C6069B00210071DB77 = B225D9C6069B00210071DB77; B225D9CD069B007F0071DB77 = B225D9CD069B007F0071DB77; B255FF3D06997A6500F2CD4C = B255FF3D06997A6500F2CD4C; B255FF3E06997A6500F2CD4C = B255FF3E06997A6500F2CD4C; B269950E069C737800C9FC9C = B269950E069C737800C9FC9C; B2699517069C739100C9FC9C = B2699517069C739100C9FC9C; B2737DA005DC055800F38E23 = B2737DA005DC055800F38E23; B277FD6F05D7F86700A57D63 = B277FD6F05D7F86700A57D63; + B28ED01A06A3582A00A4EF25 = B28ED01A06A3582A00A4EF25; + B28ED01B06A3582A00A4EF25 = B28ED01B06A3582A00A4EF25; + B28ED01E06A3582D00A4EF25 = B28ED01E06A3582D00A4EF25; + B28ED01F06A3582D00A4EF25 = B28ED01F06A3582D00A4EF25; + B28ED02206A3582F00A4EF25 = B28ED02206A3582F00A4EF25; + B28ED02306A3582F00A4EF25 = B28ED02306A3582F00A4EF25; + B28ED03406A3583600A4EF25 = B28ED03406A3583600A4EF25; + B28ED03606A3583600A4EF25 = B28ED03606A3583600A4EF25; + B28ED03906A3584000A4EF25 = B28ED03906A3584000A4EF25; + B28ED03B06A3584000A4EF25 = B28ED03B06A3584000A4EF25; + B28ED03E06A3584D00A4EF25 = B28ED03E06A3584D00A4EF25; + B28ED03F06A3584D00A4EF25 = B28ED03F06A3584D00A4EF25; + B28ED05306A3591900A4EF25 = B28ED05306A3591900A4EF25; B2A723BD069B06610086D4A9 = B2A723BD069B06610086D4A9; B2C31CC006941B1800998BDC = B2C31CC006941B1800998BDC; *************** *** 596,600 **** B2FFC75806938D6F00323EEA = B2FFC75806938D6F00323EEA; B2FFC75906938D6F00323EEA = B2FFC75906938D6F00323EEA; - B2FFC7A1069393B300323EEA = B2FFC7A1069393B300323EEA; }; sourceControlManager = B28B056705CA491600B3764D; --- 591,594 ---- *************** *** 685,703 **** name = NetPanda; rLen = 8; ! rLoc = 7862; rType = 0; vrLen = 1083; vrLoc = 7451; }; - B225D9D4069B00820071DB77 = { - fRef = B2F3441605D25CB80079BDBD; - isa = PBXTextBookmark; - name = "pThreadUtilities.h: 1"; - rLen = 0; - rLoc = 0; - rType = 0; - vrLen = 2673; - vrLoc = 0; - }; B255FF3D06997A6500F2CD4C = { fRef = B255FF4006997A8300F2CD4C; --- 679,687 ---- name = NetPanda; rLen = 8; ! rLoc = 7846; rType = 0; vrLen = 1083; vrLoc = 7451; }; B255FF3D06997A6500F2CD4C = { fRef = B255FF4006997A8300F2CD4C; *************** *** 739,790 **** isa = PBXTargetBookmark; trg = B277FD5D05D7F84000A57D63; - uiCtxt = { - TOCViewDetailVisibleRect = "{{0, 0}, {737, 244}}"; - TOCViewExpandedItems = ( - "com.apple.target-editor-pane.settings", - "com.apple.target-editor-pane.settings.simple", - "com.apple.target-editor-pane.buildphases", - ); - TOCViewMasterVisibleRect = "{{0, 0}, {296, 619}}"; - TOCViewSelectedItems = ( - "com.apple.target-editor-pane.settings.expert", - ); - }; - }; - B269950F069C737800C9FC9C = { - isa = PBXTargetBookmark; - trg = B277FD5D05D7F84000A57D63; - uiCtxt = { - TOCViewDetailVisibleRect = "{{0, 0}, {737, 244}}"; - TOCViewExpandedItems = ( - "com.apple.target-editor-pane.settings", - "com.apple.target-editor-pane.settings.simple", - "com.apple.target-editor-pane.buildphases", - ); - TOCViewMasterVisibleRect = "{{0, 0}, {296, 619}}"; - TOCViewSelectedItems = ( - "com.apple.target-editor-pane.settings.expert", - ); - }; - }; - B2699513069C737D00C9FC9C = { - fRef = B2A723B2069B06450086D4A9; - isa = PBXTextBookmark; - name = "\n\t}\n\tretu"; - rLen = 9; - rLoc = 2990; - rType = 0; - vrLen = 1434; - vrLoc = 2930; - }; - B2699514069C737D00C9FC9C = { - fRef = B2A723B2069B06450086D4A9; - isa = PBXTextBookmark; - name = "\n\t}\n\tretu"; - rLen = 9; - rLoc = 2990; - rType = 0; - vrLen = 1434; - vrLoc = 2930; }; B2699517069C739100C9FC9C = { --- 723,726 ---- *************** *** 798,841 **** vrLoc = 2129; }; - B2699518069C739100C9FC9C = { - fRef = B2F3459305D266B30079BDBD; - isa = PBXTextBookmark; - name = "NetPanda.h: createNewStream"; - rLen = 0; - rLoc = 1734; - rType = 0; - vrLen = 1217; - vrLoc = 2129; - }; - B269951B069C739200C9FC9C = { - fRef = B28B058805CA49C000B3764D; - isa = PBXTextBookmark; - name = "audio.udp.c: 208"; - rLen = 0; - rLoc = 6005; - rType = 0; - vrLen = 1034; - vrLoc = 7778; - }; - B269951C069C739200C9FC9C = { - fRef = B28B058805CA49C000B3764D; - isa = PBXTextBookmark; - name = "audio.udp.c: 208"; - rLen = 0; - rLoc = 6005; - rType = 0; - vrLen = 1034; - vrLoc = 7778; - }; - B2699526069C73AE00C9FC9C = { - fRef = B2A723B2069B06450086D4A9; - isa = PBXTextBookmark; - name = "data.udp.c: 111"; - rLen = 0; - rLoc = 3007; - rType = 0; - vrLen = 907; - vrLoc = 4676; - }; B2737DA005DC055800F38E23 = { fRef = B2737DA305DC057600F38E23; --- 734,737 ---- *************** *** 893,907 **** B28B058805CA49C000B3764D = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1033, 4563}}"; ! sepNavSelRange = "{6005, 0}"; ! sepNavVisRect = "{{0, 3893}, {1033, 636}}"; sepNavWindowFrame = "{{61, 273}, {750, 558}}"; }; }; B2A723B2069B06450086D4A9 = { uiCtxt = { sepNavIntBoundsRect = "{{0, 0}, {1033, 2953}}"; ! sepNavSelRange = "{3007, 0}"; ! sepNavVisRect = "{{0, 2317}, {1033, 636}}"; }; }; --- 789,961 ---- B28B058805CA49C000B3764D = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1033, 4619}}"; ! sepNavSelRange = "{2077, 22}"; ! sepNavVisRect = "{{0, 3983}, {1033, 636}}"; sepNavWindowFrame = "{{61, 273}, {750, 558}}"; }; }; + B28ED01A06A3582A00A4EF25 = { + fRef = B28B058805CA49C000B3764D; + isa = PBXTextBookmark; + name = "audio.udp.c: 52"; + rLen = 0; + rLoc = 1619; + rType = 0; + vrLen = 998; + vrLoc = 1009; + }; + B28ED01B06A3582A00A4EF25 = { + fRef = B28B058805CA49C000B3764D; + isa = PBXTextBookmark; + name = "audio.udp.c: 52"; + rLen = 0; + rLoc = 1619; + rType = 0; + vrLen = 998; + vrLoc = 1009; + }; + B28ED01E06A3582D00A4EF25 = { + fRef = B2A723B2069B06450086D4A9; + isa = PBXTextBookmark; + name = "data.udp.c: "; + rLen = 0; + rLoc = 1560; + rType = 0; + vrLen = 909; + vrLoc = 1352; + }; + B28ED01F06A3582D00A4EF25 = { + fRef = B2A723B2069B06450086D4A9; + isa = PBXTextBookmark; + name = "data.udp.c: "; + rLen = 0; + rLoc = 1560; + rType = 0; + vrLen = 909; + vrLoc = 1352; + }; + B28ED02206A3582F00A4EF25 = { + fRef = B2F3441605D25CB80079BDBD; + isa = PBXTextBookmark; + name = "pThreadUtilities.h: 1"; + rLen = 0; + rLoc = 0; + rType = 0; + vrLen = 2673; + vrLoc = 0; + }; + B28ED02306A3582F00A4EF25 = { + fRef = B2F3441605D25CB80079BDBD; + isa = PBXTextBookmark; + name = "pThreadUtilities.h: 1"; + rLen = 0; + rLoc = 0; + rType = 0; + vrLen = 2673; + vrLoc = 0; + }; + B28ED03406A3583600A4EF25 = { + fRef = B2F344EB05D261BB0079BDBD; + isa = PBXTextBookmark; + name = setThreadToPriority; + rLen = 19; + rLoc = 2791; + rType = 0; + vrLen = 2074; + vrLoc = 2682; + }; + B28ED03606A3583600A4EF25 = { + fRef = B2F344EB05D261BB0079BDBD; + isa = PBXTextBookmark; + name = setThreadToPriority; + rLen = 19; + rLoc = 2791; + rType = 0; + vrLen = 2074; + vrLoc = 2682; + }; + B28ED03906A3584000A4EF25 = { + fRef = B28ED04506A3586B00A4EF25; + isa = PBXTextBookmark; + name = "(null): 1"; + rLen = 0; + rLoc = 0; + rType = 0; + vrLen = 1013; + vrLoc = 1195; + }; + B28ED03B06A3584000A4EF25 = { + fRef = B28ED04606A3586B00A4EF25; + isa = PBXTextBookmark; + name = "(null): 1"; + rLen = 0; + rLoc = 0; + rType = 0; + vrLen = 1013; + vrLoc = 1195; + }; + B28ED03E06A3584D00A4EF25 = { + fRef = B28ED04406A3586B00A4EF25; + isa = PBXTextBookmark; + name = addThread; + rLen = 9; + rLoc = 4706; + rType = 0; + vrLen = 1432; + vrLoc = 4004; + }; + B28ED03F06A3584D00A4EF25 = { + fRef = B28ED04106A3586B00A4EF25; + isa = PBXTextBookmark; + name = addThread; + rLen = 9; + rLoc = 4706; + rType = 0; + vrLen = 1432; + vrLoc = 4004; + }; + B28ED04106A3586B00A4EF25 = { + isa = PBXFileReference; + name = panda_modules.h; + path = /Library/Frameworks/Panda.framework/Headers/panda_modules.h; + refType = 0; + sourceTree = "<absolute>"; + }; + B28ED04406A3586B00A4EF25 = { + isa = PBXFileReference; + name = panda_modules.h; + path = /Library/Frameworks/Panda.framework/Headers/panda_modules.h; + refType = 0; + sourceTree = "<absolute>"; + }; + B28ED04506A3586B00A4EF25 = { + isa = PBXFileReference; + name = panda.h; + path = /Library/Frameworks/Panda.framework/Headers/panda.h; + refType = 0; + sourceTree = "<absolute>"; + }; + B28ED04606A3586B00A4EF25 = { + isa = PBXFileReference; + name = panda.h; + path = /Library/Frameworks/Panda.framework/Headers/panda.h; + refType = 0; + sourceTree = "<absolute>"; + }; + B28ED05306A3591900A4EF25 = { + fRef = B28B058805CA49C000B3764D; + isa = PBXTextBookmark; + name = set_my_thread_priority; + rLen = 22; + rLoc = 2077; + rType = 0; + vrLen = 1002; + vrLoc = 7831; + }; B2A723B2069B06450086D4A9 = { uiCtxt = { sepNavIntBoundsRect = "{{0, 0}, {1033, 2953}}"; ! sepNavSelRange = "{1560, 0}"; ! sepNavVisRect = "{{0, 573}, {1033, 636}}"; }; }; *************** *** 993,997 **** sepNavIntBoundsRect = "{{0, 0}, {1033, 2225}}"; sepNavSelRange = "{2791, 19}"; ! sepNavVisRect = "{{0, 685}, {1033, 652}}"; }; }; --- 1047,1051 ---- sepNavIntBoundsRect = "{{0, 0}, {1033, 2225}}"; sepNavSelRange = "{2791, 19}"; ! sepNavVisRect = "{{0, 672}, {1033, 636}}"; }; }; *************** *** 1260,1272 **** sourceTree = "<absolute>"; }; - B2FFC7A1069393B300323EEA = { - fRef = B2F344EB05D261BB0079BDBD; - isa = PBXTextBookmark; - name = setThreadToPriority; - rLen = 19; - rLoc = 2791; - rType = 0; - vrLen = 2211; - vrLoc = 2682; - }; } --- 1314,1316 ---- |
|
From: Johnny P. <ele...@us...> - 2004-07-12 23:42:43
|
Update of /cvsroot/xpanda/libNetPanda In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14332 Modified Files: audio.udp.c Log Message: some little fix Index: audio.udp.c =================================================================== RCS file: /cvsroot/xpanda/libNetPanda/audio.udp.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** audio.udp.c 7 Jul 2004 18:13:36 -0000 1.1.1.1 --- audio.udp.c 12 Jul 2004 23:42:34 -0000 1.2 *************** *** 73,78 **** #ifdef __APPLE__ #include "pThreadUtilities.c" ! #endif int set_my_thread_priority(int priority) { --- 73,80 ---- #ifdef __APPLE__ + #include "pThreadUtilities.c" ! ! #elif __LINUX__ int set_my_thread_priority(int priority) { *************** *** 88,91 **** --- 90,95 ---- } + #endif + void packet_hton(UdpaudioPacket *p) { long nframes = PAK_AUDIO_DATA_SIZE; |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:41:42
|
Update of /cvsroot/xpanda/LADSPAonX/ladspa-framework In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22339/ladspa-framework Modified Files: loader.c loader.h Log Message: fix Index: loader.c =================================================================== RCS file: /cvsroot/xpanda/LADSPAonX/ladspa-framework/loader.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** loader.c 18 Jan 2004 02:35:13 -0000 1.1.1.1 --- loader.c 23 Apr 2004 14:41:31 -0000 1.2 *************** *** 8,96 **** loader.c ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ --- 8,30 ---- loader.c ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ Index: loader.h =================================================================== RCS file: /cvsroot/xpanda/LADSPAonX/ladspa-framework/loader.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** loader.h 18 Jan 2004 02:35:15 -0000 1.1.1.1 --- loader.h 23 Apr 2004 14:41:31 -0000 1.2 *************** *** 8,96 **** loader.h ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ --- 8,30 ---- loader.h ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:40:22
|
Update of /cvsroot/xpanda/Panda/Drivers/Portaudio/English.lproj In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22099/Portaudio/English.lproj Added Files: InfoPlist.strings Log Message: Portaudio driver --- NEW FILE: InfoPlist.strings --- (This appears to be a binary file; contents omitted.) |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:39:56
|
Update of /cvsroot/xpanda/Panda/Drivers/Portaudio/PA.xcode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21900/Portaudio/PA.xcode Added Files: johnny.pbxuser project.pbxproj Log Message: Portaudio driver --- NEW FILE: project.pbxproj --- // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 39; objects = { 089C1669FE841209C02AAC07 = { buildSettings = { }; buildStyles = ( 4F9091AC011F3BD104CA0E50, 4F9091AD011F3BD104CA0E50, ); hasScannedForEncodings = 1; isa = PBXProject; mainGroup = 089C166AFE841209C02AAC07; projectDirPath = ""; targets = ( 089C1673FE841209C02AAC07, ); }; 089C166AFE841209C02AAC07 = { children = ( B29E7E050626F205009FAAB8, 08FB77ADFE841716C02AAC07, 089C167CFE841241C02AAC07, 089C1671FE841209C02AAC07, 19C28FB4FE9D528D11CA2CBB, ); isa = PBXGroup; name = testModule; refType = 4; sourceTree = "<group>"; }; 089C1671FE841209C02AAC07 = { children = ( B29E7E2B0626F240009FAAB8, B29E7E2C0626F240009FAAB8, B29E7E2D0626F240009FAAB8, B27AE6F405603A6700980793, ); isa = PBXGroup; name = "External Frameworks and Libraries"; refType = 4; sourceTree = "<group>"; }; 089C1673FE841209C02AAC07 = { buildPhases = ( 089C1674FE841209C02AAC07, 089C1675FE841209C02AAC07, 089C1676FE841209C02AAC07, 089C1677FE841209C02AAC07, 089C1679FE841209C02AAC07, ); buildSettings = { DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; FRAMEWORK_SEARCH_PATHS = ""; HEADER_SEARCH_PATHS = ""; LIBRARY_SEARCH_PATHS = ""; LIBRARY_STYLE = BUNDLE; OPTIMIZATION_CFLAGS = "-O3"; OTHER_CFLAGS = ""; OTHER_LDFLAGS = "-bundle -flat_namespace"; OTHER_REZFLAGS = ""; PRODUCT_NAME = portaudio; SECTORDER_FLAGS = ""; USE_GCC3_PFE_SUPPORT = NO; WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"; WRAPPER_EXTENSION = pdriver; }; dependencies = ( ); isa = PBXBundleTarget; name = testModule; productName = testModule; productReference = 4F9091AB011F3BD104CA0E50; productSettingsXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"> <plist version=\"1.0\"> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> <string>portaudio</string> <key>CFBundleIconFile</key> <string></string> <key>CFBundleIdentifier</key> <string>com.elementicaotici.panda.Jack</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundlePackageType</key> <string>BNDL</string> <key>CFBundleSignature</key> <string>ElCa</string> <key>CFBundleVersion</key> <string>0.0.1d1</string> <key>CSResourcesFileMapped</key> <true/> </dict> </plist> "; }; 089C1674FE841209C02AAC07 = { buildActionMask = 2147483647; files = ( B29E7D860626E9A9009FAAB8, B29E7E120626F227009FAAB8, B29E7E150626F227009FAAB8, B29E7E780626F295009FAAB8, B29E7E7A0626F295009FAAB8, ); isa = PBXHeadersBuildPhase; runOnlyForDeploymentPostprocessing = 0; }; 089C1675FE841209C02AAC07 = { buildActionMask = 2147483647; files = ( 089C1680FE841241C02AAC07, ); isa = PBXResourcesBuildPhase; runOnlyForDeploymentPostprocessing = 0; }; 089C1676FE841209C02AAC07 = { buildActionMask = 2147483647; files = ( B25B3BB90560818600D6B727, B29E7E090626F219009FAAB8, B29E7E110626F227009FAAB8, B29E7E130626F227009FAAB8, B29E7E140626F227009FAAB8, B29E7E770626F295009FAAB8, B29E7E790626F295009FAAB8, ); isa = PBXSourcesBuildPhase; runOnlyForDeploymentPostprocessing = 0; }; 089C1677FE841209C02AAC07 = { buildActionMask = 2147483647; files = ( B29A7E3905607892003DAC04, B29E7E2E0626F240009FAAB8, B29E7E2F0626F240009FAAB8, B29E7E300626F240009FAAB8, ); isa = PBXFrameworksBuildPhase; runOnlyForDeploymentPostprocessing = 0; }; 089C1679FE841209C02AAC07 = { buildActionMask = 2147483647; files = ( ); isa = PBXRezBuildPhase; runOnlyForDeploymentPostprocessing = 0; }; 089C167CFE841241C02AAC07 = { children = ( 089C167DFE841241C02AAC07, ); isa = PBXGroup; name = Resources; refType = 4; sourceTree = "<group>"; }; 089C167DFE841241C02AAC07 = { children = ( 089C167EFE841241C02AAC07, ); isa = PBXVariantGroup; name = InfoPlist.strings; refType = 4; sourceTree = "<group>"; }; 089C167EFE841241C02AAC07 = { fileEncoding = 10; isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; refType = 4; sourceTree = "<group>"; }; 089C1680FE841241C02AAC07 = { fileRef = 089C167DFE841241C02AAC07; isa = PBXBuildFile; settings = { }; }; 08FB77ADFE841716C02AAC07 = { children = ( B29E7D850626E9A9009FAAB8, B25B3BB80560818600D6B727, ); isa = PBXGroup; name = Source; refType = 4; sourceTree = "<group>"; }; //080 //081 //082 //083 //084 //190 //191 //192 //193 //194 19C28FB4FE9D528D11CA2CBB = { children = ( 4F9091AB011F3BD104CA0E50, ); isa = PBXGroup; name = Products; refType = 4; sourceTree = "<group>"; }; //190 //191 //192 //193 //194 //4F0 //4F1 //4F2 //4F3 //4F4 4F9091AB011F3BD104CA0E50 = { explicitFileType = wrapper.cfbundle; fallbackIsa = PBXFileReference; isa = PBXBundleReference; path = portaudio.pdriver; refType = 3; sourceTree = BUILT_PRODUCTS_DIR; }; 4F9091AC011F3BD104CA0E50 = { buildRules = ( ); buildSettings = { COPY_PHASE_STRIP = NO; GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_FIX_AND_CONTINUE = YES; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_OPTIMIZATION_LEVEL = 0; OPTIMIZATION_CFLAGS = "-O0"; ZERO_LINK = YES; }; isa = PBXBuildStyle; name = Development; }; 4F9091AD011F3BD104CA0E50 = { buildRules = ( ); buildSettings = { COPY_PHASE_STRIP = YES; GCC_ENABLE_FIX_AND_CONTINUE = NO; ZERO_LINK = NO; }; isa = PBXBuildStyle; name = Deployment; }; //4F0 //4F1 //4F2 //4F3 //4F4 //B20 //B21 //B22 //B23 //B24 B25B3BB80560818600D6B727 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; refType = 4; sourceTree = "<group>"; }; B25B3BB90560818600D6B727 = { fileRef = B25B3BB80560818600D6B727; isa = PBXBuildFile; settings = { }; }; B27AE6F405603A6700980793 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Panda.framework; path = /Library/Frameworks/Panda.framework; refType = 0; sourceTree = "<absolute>"; }; B29A7E3905607892003DAC04 = { fileRef = B27AE6F405603A6700980793; isa = PBXBuildFile; settings = { }; }; B29E7D850626E9A9009FAAB8 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = portaudio.h; path = portaudio_v18_1/pa_common/portaudio.h; refType = 4; sourceTree = "<group>"; }; B29E7D860626E9A9009FAAB8 = { fileRef = B29E7D850626E9A9009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E050626F205009FAAB8 = { children = ( B29E7E730626F295009FAAB8, B29E7E740626F295009FAAB8, B29E7E750626F295009FAAB8, B29E7E760626F295009FAAB8, B29E7E080626F219009FAAB8, B29E7E0C0626F227009FAAB8, B29E7E0D0626F227009FAAB8, B29E7E0E0626F227009FAAB8, B29E7E0F0626F227009FAAB8, B29E7E100626F227009FAAB8, ); isa = PBXGroup; name = PA; refType = 4; sourceTree = "<group>"; }; B29E7E080626F219009FAAB8 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = pa_mac_core.c; path = portaudio_v18_1/pa_mac_core/pa_mac_core.c; refType = 4; sourceTree = "<group>"; }; B29E7E090626F219009FAAB8 = { fileRef = B29E7E080626F219009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E0C0626F227009FAAB8 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = pa_convert.c; path = portaudio_v18_1/pa_common/pa_convert.c; refType = 4; sourceTree = "<group>"; }; B29E7E0D0626F227009FAAB8 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = pa_host.h; path = portaudio_v18_1/pa_common/pa_host.h; refType = 4; sourceTree = "<group>"; }; B29E7E0E0626F227009FAAB8 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = pa_lib.c; path = portaudio_v18_1/pa_common/pa_lib.c; refType = 4; sourceTree = "<group>"; }; B29E7E0F0626F227009FAAB8 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = pa_trace.c; path = portaudio_v18_1/pa_common/pa_trace.c; refType = 4; sourceTree = "<group>"; }; B29E7E100626F227009FAAB8 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = pa_trace.h; path = portaudio_v18_1/pa_common/pa_trace.h; refType = 4; sourceTree = "<group>"; }; B29E7E110626F227009FAAB8 = { fileRef = B29E7E0C0626F227009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E120626F227009FAAB8 = { fileRef = B29E7E0D0626F227009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E130626F227009FAAB8 = { fileRef = B29E7E0E0626F227009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E140626F227009FAAB8 = { fileRef = B29E7E0F0626F227009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E150626F227009FAAB8 = { fileRef = B29E7E100626F227009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E2B0626F240009FAAB8 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; refType = 0; sourceTree = "<absolute>"; }; B29E7E2C0626F240009FAAB8 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioUnit.framework; path = /System/Library/Frameworks/AudioUnit.framework; refType = 0; sourceTree = "<absolute>"; }; B29E7E2D0626F240009FAAB8 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; refType = 0; sourceTree = "<absolute>"; }; B29E7E2E0626F240009FAAB8 = { fileRef = B29E7E2B0626F240009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E2F0626F240009FAAB8 = { fileRef = B29E7E2C0626F240009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E300626F240009FAAB8 = { fileRef = B29E7E2D0626F240009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E730626F295009FAAB8 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = pablio.c; path = portaudio_v18_1/pablio/pablio.c; refType = 4; sourceTree = "<group>"; }; B29E7E740626F295009FAAB8 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = pablio.h; path = portaudio_v18_1/pablio/pablio.h; refType = 4; sourceTree = "<group>"; }; B29E7E750626F295009FAAB8 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = ringbuffer.c; path = portaudio_v18_1/pablio/ringbuffer.c; refType = 4; sourceTree = "<group>"; }; B29E7E760626F295009FAAB8 = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = ringbuffer.h; path = portaudio_v18_1/pablio/ringbuffer.h; refType = 4; sourceTree = "<group>"; }; B29E7E770626F295009FAAB8 = { fileRef = B29E7E730626F295009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E780626F295009FAAB8 = { fileRef = B29E7E740626F295009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E790626F295009FAAB8 = { fileRef = B29E7E750626F295009FAAB8; isa = PBXBuildFile; settings = { }; }; B29E7E7A0626F295009FAAB8 = { fileRef = B29E7E760626F295009FAAB8; isa = PBXBuildFile; settings = { }; }; }; rootObject = 089C1669FE841209C02AAC07; } --- NEW FILE: johnny.pbxuser --- // !$*UTF8*$! { 089C1669FE841209C02AAC07 = { activeBuildStyle = 4F9091AD011F3BD104CA0E50; activeExecutable = B29A7E3E056079F0003DAC04; activeTarget = 089C1673FE841209C02AAC07; addToTargets = ( 089C1673FE841209C02AAC07, ); breakpoints = ( ); codeSenseManager = B27AE6F305603A6100980793; executables = ( B29A7E3E056079F0003DAC04, ); perUserDictionary = { PBXConfiguration.PBXFileTableDataSource3.PBXErrorsWarningsDataSource = { PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; PBXFileTableDataSourceColumnSortingKey = PBXErrorsWarningsDataSource_LocationID; [...964 lines suppressed...] fRef = B25B3BB80560818600D6B727; isa = PBXTextBookmark; name = "main.cpp: 363"; rLen = 0; rLoc = 14104; rType = 0; vrLen = 1462; vrLoc = 14031; }; B2F9BB290627053200129108 = { fRef = B25B3BB80560818600D6B727; isa = PBXTextBookmark; name = "main.cpp: 363"; rLen = 0; rLoc = 14104; rType = 0; vrLen = 1462; vrLoc = 14031; }; } |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:39:55
|
Update of /cvsroot/xpanda/Panda/Drivers/Portaudio In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21900/Portaudio Added Files: main.cpp compile-mingw.sh Log Message: Portaudio driver --- NEW FILE: main.cpp --- /* Portaudio - Portaudio Panda driver. written by Giovanni Petrantoni. Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ main.cpp - main file. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. e-mail: jo...@la... */ #include <Panda/panda.h> #include "portaudio.h" struct __myObjData { DriverParamList list; int inCh; int outCh; bool isConfigured; float sampleRate; long bufferSize; char driverName[60]; PortAudioStream* stream; float **inBuffer,**outBuffer; }; static int paCallback(void *inputBuffer, void *outputBuffer,unsigned long framesPerBuffer,PaTimestamp outTime, void *userData) { MyData *x = (MyData*)userData; float *in,*out; in = (float*)inputBuffer; out = (float*)outputBuffer; for(int chn=0;chn<x->inCh;chn++) { for (unsigned long i = 0; i< framesPerBuffer; i++) x->inBuffer[chn][i] = in[chn+(i*x->inCh)]; } doPandaRender(framesPerBuffer); for(int chn=0;chn<x->outCh;chn++) { for (unsigned long i = 0; i< framesPerBuffer; i++) out[chn+(i*x->outCh)] = x->outBuffer[chn][i]; } return 0; } MyData * HelloPandaDriver(void) { MyData *x; x = (MyData*)malloc(sizeof(MyData)); x->list.manyParameters = 5; x->list.parameterDesc = (char**)malloc(sizeof(char*)*x->list.manyParameters); x->list.parameterType = (int*)malloc(sizeof(int)*x->list.manyParameters); x->list.parameterID = (int*)malloc(sizeof(int)*x->list.manyParameters); for(int i=0;i<x->list.manyParameters;i++) { x->list.parameterDesc[i] = (char*)malloc(sizeof(char)*60); } strcpy(x->list.parameterDesc[0],"Input Channels"); x->list.parameterType[0] = INT_T; x->list.parameterID[0] = 'inch'; strcpy(x->list.parameterDesc[1],"Output Channels"); x->list.parameterType[1] = INT_T; x->list.parameterID[1] = 'ouch'; strcpy(x->list.parameterDesc[2],"Device Name"); x->list.parameterType[2] = CHAR_T; x->list.parameterID[2] = 'devn'; strcpy(x->list.parameterDesc[3],"Sample Rate"); x->list.parameterType[3] = CHAR_T; x->list.parameterID[3] = 'sr '; strcpy(x->list.parameterDesc[4],"Buffer Size"); x->list.parameterType[4] = CHAR_T; x->list.parameterID[4] = 'bsiz'; x->inCh = 0; x->outCh = 2; x->sampleRate = 44100.0f; x->bufferSize = 512L; strcpy(&x->driverName[0],"DEFAULT"); x->isConfigured = false; return x; } void FlushDriver(MyData *x) { for(int i=0;i<x->list.manyParameters;i++) { free(x->list.parameterDesc[i]); } free(x->list.parameterDesc); free(x->list.parameterType); free(x->list.parameterID); if(x->isConfigured) { Pa_CloseStream(x->stream); Pa_Terminate(); } } extern "C" int portaudio_load_default (MyData *driver, int numDevices, int capturing, int playing, int* inputDeviceID, int* outputDeviceID) { const PaDeviceInfo *pdi; int i,j; int found = 0; printf("Look for default driver\n"); *inputDeviceID = Pa_GetDefaultInputDeviceID(); *outputDeviceID = Pa_GetDefaultOutputDeviceID(); for(i=0; i<numDevices; i++) { pdi = Pa_GetDeviceInfo(i); printf("---------------------------------------------- #%d\n", i); if (i == Pa_GetDefaultInputDeviceID()) { driver->inCh = (capturing) ? pdi->maxInputChannels : 0; strcpy (&driver->driverName[0],pdi->name); found = 1; } if (i == Pa_GetDefaultOutputDeviceID()){ driver->outCh = (playing) ? pdi->maxOutputChannels : 0; strcpy (&driver->driverName[0],pdi->name); found = 1; } printf("\nName = %s\n", pdi->name); printf("Max Inputs = %d ", pdi->maxInputChannels); printf("Max Outputs = %d\n", pdi->maxOutputChannels); if( pdi->numSampleRates == -1 ){ printf("Sample Rate Range = %f to %f\n", pdi->sampleRates[0], pdi->sampleRates[1]); }else{ printf("Sample Rates ="); for(j=0; j<pdi->numSampleRates; j++){ printf(" %8.2f,", pdi->sampleRates[j]); } printf("\n"); } printf("Native Sample Formats = "); if( pdi->nativeSampleFormats & paInt8 ) printf("paInt8, "); if( pdi->nativeSampleFormats & paUInt8 ) printf("paUInt8, "); if( pdi->nativeSampleFormats & paInt16 ) printf("paInt16, "); if( pdi->nativeSampleFormats & paInt32 ) printf("paInt32, "); if( pdi->nativeSampleFormats & paFloat32 ) printf("paFloat32, "); if( pdi->nativeSampleFormats & paInt24 ) printf("paInt24, "); if( pdi->nativeSampleFormats & paPackedInt24 ) printf("paPackedInt24, "); printf("\n"); } return found; } extern "C" int portaudio_load_driver (MyData *driver, int numDevices, int capturing, int playing, int* inputDeviceID, int* outputDeviceID, char* driver_name) { const PaDeviceInfo *pdi; int found = 0; int i,j; printf("Look for %s driver\n",driver_name); for(i=0; i<numDevices; i++) { pdi = Pa_GetDeviceInfo(i); printf("---------------------------------------------- #%d\n", i); if (strcmp(driver_name,pdi->name) == 0) { // compare the JACK_DRIVER_PARAM_STRING_MAX first character if (pdi->maxInputChannels > 0) { *inputDeviceID = i; driver->inCh = (capturing) ? pdi->maxInputChannels : 0; strcpy(&driver->driverName[0],pdi->name); printf("Found input driver = %s\n", driver_name); found = 1; }else if (pdi->maxOutputChannels > 0) { *outputDeviceID = i; driver->outCh = (playing) ? pdi->maxOutputChannels : 0; strcpy (&driver->driverName[0],pdi->name); printf("Found output driver = %s\n", driver_name); found = 1; }else { printf("Found driver without input or ouput = %s\n", driver_name); } } printf("\nName = %s\n", pdi->name); printf("Max Inputs = %d ", pdi->maxInputChannels); printf("Max Outputs = %d\n", pdi->maxOutputChannels); if( pdi->numSampleRates == -1 ){ printf("Sample Rate Range = %f to %f\n", pdi->sampleRates[0], pdi->sampleRates[1]); }else{ printf("Sample Rates ="); for(j=0; j<pdi->numSampleRates; j++){ printf(" %8.2f,", pdi->sampleRates[j]); } printf("\n"); } printf("Native Sample Formats = "); if( pdi->nativeSampleFormats & paInt8 ) printf("paInt8, "); if( pdi->nativeSampleFormats & paUInt8 ) printf("paUInt8, "); if( pdi->nativeSampleFormats & paInt16 ) printf("paInt16, "); if( pdi->nativeSampleFormats & paInt32 ) printf("paInt32, "); if( pdi->nativeSampleFormats & paFloat32 ) printf("paFloat32, "); if( pdi->nativeSampleFormats & paInt24 ) printf("paInt24, "); if( pdi->nativeSampleFormats & paPackedInt24 ) printf("paPackedInt24, "); printf("\n"); } return found; } int CreateAudioEngine(MyData *x) { if(Pa_Initialize()!=paNoError) return FALSE; int inputDeviceID,outputDeviceID; int numDevices = Pa_CountDevices(); int found = -1; if (strcmp(&x->driverName[0],"DEFAULT") == 0) { found = portaudio_load_default(x,numDevices,TRUE,TRUE,&inputDeviceID,&outputDeviceID); if (!found) { printf("ERROR : default driver has not been found\n"); return FALSE; } }else{ found = portaudio_load_driver(x,numDevices,TRUE,TRUE,&inputDeviceID,&outputDeviceID,&x->driverName[0]); if (!found) { printf("ERROR : driver %s has not been found \n",&x->driverName[0]); return FALSE; } } int err = Pa_OpenStream(&x->stream, x->inCh > 0 ? inputDeviceID : paNoDevice, x->inCh, paFloat32, // 32 bit floating point input NULL, x->outCh > 0 ? outputDeviceID : paNoDevice, x->outCh, paFloat32, // 32 bit floating point output NULL, x->sampleRate, x->bufferSize, // frames per buffer 0, // number of buffers, if zero then use default minimum paClipOff, // we won't output out of range samples so don't bother clipping them paCallback, x); if(err!=paNoError) return FALSE; if(x->inCh>0) { x->inBuffer = (float**)malloc(sizeof(float*)*x->inCh); for(int i=0;i<x->inCh;i++) { x->inBuffer[i] = (float*)malloc(sizeof(float)*x->bufferSize); } } if(x->outCh>0) { x->outBuffer = (float**)malloc(sizeof(float*)*x->outCh); for(int i=0;i<x->outCh;i++) { x->outBuffer[i] = (float*)malloc(sizeof(float)*x->bufferSize); } } setDAC(x->outBuffer); setADC(x->inBuffer); SetPandaBufferSize(x->bufferSize); SetPandaSampleRate(x->sampleRate); SetPandaInChannels(x->inCh); SetPandaOutChannels(x->outCh); x->isConfigured = TRUE; return TRUE; } int StartAudio(MyData *x) { if(!x->isConfigured) return FALSE; PaError err = Pa_StartStream(x->stream); return err == paNoError ? TRUE : FALSE; } int StopAudio(MyData *x) { if(!x->isConfigured) return FALSE; PaError err = Pa_StopStream(x->stream); return err == paNoError ? TRUE : FALSE; } int SetParameter(MyData *x,int parameter,Var *inValues) { if(!inValues) return FALSE; switch(parameter) { case 'inch': if(inValues->varType==INT_T) x->inCh = *(int*)inValues->var_t; else return FALSE; break; case 'ouch': if(inValues->varType==INT_T) x->outCh = *(int*)inValues->var_t; else return FALSE; break; case 'devn': if(inValues->varType==CHAR_T) strcpy(&x->driverName[0],(char*)inValues->var_t); else return FALSE; break; case 'sr ': if(inValues->varType==FLOAT_T) x->sampleRate = *(float*)inValues->var_t; else return FALSE; break; case 'bsiz': if(inValues->varType==LONG_T) x->bufferSize = *(long*)inValues->var_t; else return FALSE; break; default: return FALSE; } return TRUE; } int GetParameter(MyData *x,int parameter,Var *outValues) { if(!outValues) return FALSE; switch(parameter) { case 'inch': if(outValues->varType==INT_T) *(int*)outValues->var_t = x->inCh; else return FALSE; break; case 'ouch': if(outValues->varType==INT_T) *(int*)outValues->var_t = x->outCh; else return FALSE; break; case 'devn': if(outValues->varType==CHAR_T) strcpy((char*)outValues->var_t,&x->driverName[0]); else return FALSE; break; case 'sr ': if(outValues->varType==FLOAT_T) *(float*)outValues->var_t = x->sampleRate; else return FALSE; break; case 'bsiz': if(outValues->varType==LONG_T) *(long*)outValues->var_t = x->bufferSize; else return FALSE; break; default: return FALSE; } return TRUE; } DriverParamList GetParametersList(MyData *x) { return x->list; } --- NEW FILE: compile-mingw.sh --- gcc -c -Iportaudio_v18_1/pa_common -I. -o pablio.o portaudio_v18_1/pablio/pablio.c gcc -c -Iportaudio_v18_1/pa_common -I. -o ringbuffer.o portaudio_v18_1/pablio/ringbuffer.c gcc -c -Iportaudio_v18_1/pa_common -I. -o pa_convert.o portaudio_v18_1/pa_common/pa_convert.c gcc -c -Iportaudio_v18_1/pa_common -I. -o pa_lib.o portaudio_v18_1/pa_common/pa_lib.c gcc -c -Iportaudio_v18_1/pa_common -I. -o pa_trace.o portaudio_v18_1/pa_common/pa_trace.c gcc -c -Iportaudio_v18_1/pa_common -I. -o pa_win.o portaudio_v18_1/pa_win_wmme/pa_win_wmme.c gcc -c -Iportaudio_v18_1/pa_common -I. -o main.o main.cpp gcc -shared -fPIC -D__WIN32__=1 Panda/panda.dll -lstdc++ -o portaudio.dll *.o /mingw/lib/libwinmm.a |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:37:05
|
Update of /cvsroot/xpanda/Panda/Drivers/Portaudio/English.lproj In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21190/Portaudio/English.lproj Log Message: Directory /cvsroot/xpanda/Panda/Drivers/Portaudio/English.lproj added to the repository |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:37:03
|
Update of /cvsroot/xpanda/Panda/Drivers/Portaudio/PA.xcode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21190/Portaudio/PA.xcode Log Message: Directory /cvsroot/xpanda/Panda/Drivers/Portaudio/PA.xcode added to the repository |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:37:03
|
Update of /cvsroot/xpanda/Panda/Drivers/Portaudio In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21190/Portaudio Log Message: Directory /cvsroot/xpanda/Panda/Drivers/Portaudio added to the repository |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:36:09
|
Update of /cvsroot/xpanda/Panda/Drivers/MACOSX/UDP/UDP.xcode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20977/UDP/UDP.xcode Modified Files: johnny.pbxuser project.pbxproj Log Message: fix Index: project.pbxproj =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/UDP/UDP.xcode/project.pbxproj,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** project.pbxproj 15 Feb 2004 23:00:34 -0000 1.1 --- project.pbxproj 23 Apr 2004 14:36:00 -0000 1.2 *************** *** 129,133 **** files = ( B29A7E3905607892003DAC04, ! B21543B205DD97A4009EB365, ); isa = PBXFrameworksBuildPhase; --- 129,133 ---- files = ( B29A7E3905607892003DAC04, ! B26E8A2A061DA1790093EECC, ); isa = PBXFrameworksBuildPhase; *************** *** 266,275 **** sourceTree = "<group>"; }; - B21543B205DD97A4009EB365 = { - fileRef = B21543B105DD97A4009EB365; - isa = PBXBuildFile; - settings = { - }; - }; B215440505DD97BA009EB365 = { fileEncoding = 30; --- 266,269 ---- *************** *** 314,317 **** --- 308,317 ---- }; }; + B26E8A2A061DA1790093EECC = { + fileRef = B21543B105DD97A4009EB365; + isa = PBXBuildFile; + settings = { + }; + }; B27AE6F405603A6700980793 = { isa = PBXFileReference; Index: johnny.pbxuser =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/UDP/UDP.xcode/johnny.pbxuser,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** johnny.pbxuser 15 Feb 2004 23:37:17 -0000 1.2 --- johnny.pbxuser 23 Apr 2004 14:36:00 -0000 1.3 *************** *** 46,52 **** PBXFileTableDataSourceColumnWidthsKey = ( 20, ! 910, 20, ! 159, 43, 43, --- 46,52 ---- PBXFileTableDataSourceColumnWidthsKey = ( 20, ! 863, 20, ! 152, 43, 43, *************** *** 68,75 **** PBXFileTableDataSourceColumnWidthsKey = ( 20, ! 767, ! 161, 20, ! 161, 43, 43, --- 68,75 ---- PBXFileTableDataSourceColumnWidthsKey = ( 20, ! 731, ! 153, 20, ! 153, 43, 43, *************** *** 85,89 **** ); }; ! PBXPerProjectTemplateStateSaveDate = 98576951; PBXPrepackagedSmartGroups_v2 = ( { --- 85,89 ---- ); }; ! PBXPerProjectTemplateStateSaveDate = 102605146; PBXPrepackagedSmartGroups_v2 = ( { *************** *** 260,269 **** isCollapsed = yes; sizes = ( ! "{{0, 0}, {1258, 0}}", ! "{{0, 0}, {1258, 732}}", ); }; PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { ! BoundsStr = "{{0, 0}, {1243, 105}}"; Rows = ( 0, --- 260,269 ---- isCollapsed = yes; sizes = ( ! "{{0, 0}, {1204, 0}}", ! "{{0, 0}, {1204, 796}}", ); }; PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { ! BoundsStr = "{{0, 0}, {1189, 15}}"; Rows = ( 0, *************** *** 275,289 **** PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B232850D05E034C900944D13; history = ( B21544C605DD9D07009EB365, - B21544CA05DD9D08009EB365, - B215458205DDA18F009EB365, - B28AD34205DE8A9E00560377, B28AD34B05DE8AC900560377, - B23284C905E02A6200944D13, B23284CD05E02A8300944D13, - B232850705E02B3800944D13, B232849C05E02A0E00944D13, ); prevStack = ( --- 275,289 ---- PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B26E8A2F061DA17D0093EECC; history = ( B21544C605DD9D07009EB365, B28AD34B05DE8AC900560377, B23284CD05E02A8300944D13, B232849C05E02A0E00944D13, + B218A9E506090AEB0048BA6D, + B2E7A1F2060A410700AE8134, + B2E7A1FE060A41AB00AE8134, + B2D32AED060A5A290002FBB6, + B26E8A2C061DA17C0093EECC, ); prevStack = ( *************** *** 291,302 **** B2370D5C05DAF4700024E14A, B215449C05DD9BA5009EB365, - B21544CB05DD9D08009EB365, B215456705DDA0F9009EB365, B28AD32A05DE876E00560377, ! B28AD34305DE8A9E00560377, ! B232842C05E027D700944D13, ! B23284CA05E02A6200944D13, ! B23284CE05E02A8300944D13, ! B232850805E02B3800944D13, ); }; --- 291,299 ---- B2370D5C05DAF4700024E14A, B215449C05DD9BA5009EB365, B215456705DDA0F9009EB365, B28AD32A05DE876E00560377, ! B218A9E706090AEB0048BA6D, ! B218A9EF060915970048BA6D, ! B2E7A1E6060A403D00AE8134, ); }; *************** *** 310,321 **** _percentageOfCollapsedView = 0; sizes = ( ! "{{0, 0}, {182, 732}}", ! "{{182, 0}, {1258, 732}}", ); }; }; ! PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {1258, 0}}"; ! PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {1258, 732}}"; ! PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {1258, 732}}"; PBXProjectWorkspaceModule_SGTM = { PBXBottomSmartGroupGIDs = ( --- 307,318 ---- _percentageOfCollapsedView = 0; sizes = ( ! "{{0, 0}, {182, 796}}", ! "{{182, 0}, {1204, 796}}", ); }; }; ! PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {1204, 0}}"; ! PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {1204, 796}}"; ! PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {1204, 796}}"; PBXProjectWorkspaceModule_SGTM = { PBXBottomSmartGroupGIDs = ( *************** *** 347,355 **** PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( ( ! 12, ! 11, ), ); ! PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 714}}"; }; PBXTopSmartGroupGIDs = ( --- 344,353 ---- PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( ( ! 5, ! 1, ! 0, ), ); ! PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 778}}"; }; PBXTopSmartGroupGIDs = ( *************** *** 401,410 **** isCollapsed = yes; sizes = ( ! "{{0, 0}, {1258, 0}}", ! "{{0, 0}, {1258, 732}}", ); }; PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { ! BoundsStr = "{{0, 0}, {1243, 105}}"; Rows = ( 0, --- 399,408 ---- isCollapsed = yes; sizes = ( ! "{{0, 0}, {1204, 0}}", ! "{{0, 0}, {1204, 796}}", ); }; PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { ! BoundsStr = "{{0, 0}, {1189, 15}}"; Rows = ( 0, *************** *** 416,427 **** PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B29D62FC05DDB61600C32401; history = ( B21544C605DD9D07009EB365, B21544CA05DD9D08009EB365, ! B215450605DD9DED009EB365, ! B215457E05DDA18E009EB365, ! B215458205DDA18F009EB365, ! B29D62FA05DDB60500C32401, ); prevStack = ( --- 414,430 ---- PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B2E7A202060A41E000AE8134; history = ( B21544C605DD9D07009EB365, B21544CA05DD9D08009EB365, ! B28AD34B05DE8AC900560377, ! B23284CD05E02A8300944D13, ! B232849C05E02A0E00944D13, ! B206C485060905D800D99E1F, ! B218A9E506090AEB0048BA6D, ! B2E7A1E1060A402E00AE8134, ! B2E7A1F2060A410700AE8134, ! B2E7A1FE060A41AB00AE8134, ! B2E7A1FA060A41AA00AE8134, ); prevStack = ( *************** *** 429,435 **** B2370D5C05DAF4700024E14A, B215449C05DD9BA5009EB365, - B21544B005DD9C5D009EB365, B21544CB05DD9D08009EB365, B215456705DDA0F9009EB365, ); }; --- 432,446 ---- B2370D5C05DAF4700024E14A, B215449C05DD9BA5009EB365, B21544CB05DD9D08009EB365, B215456705DDA0F9009EB365, + B28AD32A05DE876E00560377, + B218A9E706090AEB0048BA6D, + B218A9EF060915970048BA6D, + B2E7A1E3060A402E00AE8134, + B2E7A1E6060A403D00AE8134, + B2E7A1ED060A40A400AE8134, + B2E7A1F3060A410700AE8134, + B2E7A1FB060A41AA00AE8134, + B2E7A1FF060A41AB00AE8134, ); }; *************** *** 443,454 **** _percentageOfCollapsedView = 0; sizes = ( ! "{{0, 0}, {182, 732}}", ! "{{182, 0}, {1258, 732}}", ); }; }; ! PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {1258, 0}}"; ! PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {1258, 732}}"; ! PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {1258, 732}}"; PBXProjectWorkspaceModule_SGTM = { PBXBottomSmartGroupGIDs = ( --- 454,465 ---- _percentageOfCollapsedView = 0; sizes = ( ! "{{0, 0}, {182, 796}}", ! "{{182, 0}, {1204, 796}}", ); }; }; ! PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {1204, 0}}"; ! PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {1204, 796}}"; ! PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {1204, 796}}"; PBXProjectWorkspaceModule_SGTM = { PBXBottomSmartGroupGIDs = ( *************** *** 473,484 **** PBXSmartGroupTreeModuleOutlineStateKey_v7 = { PBXSmartGroupTreeModuleOutlineStateExpansionKey = ( 1C37FBAC04509CD000000102, ); PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( ( 0, ), ); ! PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 714}}"; }; PBXTopSmartGroupGIDs = ( --- 484,500 ---- PBXSmartGroupTreeModuleOutlineStateKey_v7 = { PBXSmartGroupTreeModuleOutlineStateExpansionKey = ( + 089C166AFE841209C02AAC07, + 08FB77ADFE841716C02AAC07, + 089C1671FE841209C02AAC07, 1C37FBAC04509CD000000102, ); PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( ( + 5, + 1, 0, ), ); ! PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 778}}"; }; PBXTopSmartGroupGIDs = ( *************** *** 514,521 **** PBXWorkspaceGeometries = ( { ! Frame = "{{0, 0}, {1440, 732}}"; PBXProjectWorkspaceModule_GeometryKey_Rev15 = { }; ! RubberWindowFrame = "1 104 1440 774 0 0 1440 878 "; }, ); --- 530,537 ---- PBXWorkspaceGeometries = ( { ! Frame = "{{0, 0}, {1386, 796}}"; PBXProjectWorkspaceModule_GeometryKey_Rev15 = { }; ! RubberWindowFrame = "54 40 1386 838 0 0 1440 878 "; }, ); *************** *** 528,532 **** Frame = "{{0, 0}, {400, 201}}"; PBXModuleWindowStatusBarHidden = YES; ! RubberWindowFrame = "50 850 400 222 0 0 1440 878 "; }; "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXDebugSessionModule" = { --- 544,548 ---- Frame = "{{0, 0}, {400, 201}}"; PBXModuleWindowStatusBarHidden = YES; ! RubberWindowFrame = "104 850 400 222 0 0 1440 878 "; }; "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXDebugSessionModule" = { *************** *** 544,551 **** }; "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = { ! Frame = "{{0, 0}, {1440, 732}}"; PBXProjectWorkspaceModule_GeometryKey_Rev15 = { }; ! RubberWindowFrame = "1 104 1440 774 0 0 1440 878 "; }; "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXRunSessionModule" = { --- 560,567 ---- }; "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = { ! Frame = "{{0, 0}, {1386, 796}}"; PBXProjectWorkspaceModule_GeometryKey_Rev15 = { }; ! RubberWindowFrame = "54 40 1386 838 0 0 1440 878 "; }; "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXRunSessionModule" = { *************** *** 554,581 **** RubberWindowFrame = "347 402 745 464 0 0 1440 878 "; }; ! PBXWorkspaceStateSaveDate = 98576951; }; perUserProjectItems = { B215449C05DD9BA5009EB365 = B215449C05DD9BA5009EB365; B21544C605DD9D07009EB365 = B21544C605DD9D07009EB365; - B21544CA05DD9D08009EB365 = B21544CA05DD9D08009EB365; - B21544CB05DD9D08009EB365 = B21544CB05DD9D08009EB365; B215456705DDA0F9009EB365 = B215456705DDA0F9009EB365; ! B215458205DDA18F009EB365 = B215458205DDA18F009EB365; ! B232842C05E027D700944D13 = B232842C05E027D700944D13; B232849C05E02A0E00944D13 = B232849C05E02A0E00944D13; - B23284C905E02A6200944D13 = B23284C905E02A6200944D13; - B23284CA05E02A6200944D13 = B23284CA05E02A6200944D13; B23284CD05E02A8300944D13 = B23284CD05E02A8300944D13; - B23284CE05E02A8300944D13 = B23284CE05E02A8300944D13; - B232850705E02B3800944D13 = B232850705E02B3800944D13; - B232850805E02B3800944D13 = B232850805E02B3800944D13; - B232850D05E034C900944D13 = B232850D05E034C900944D13; B2370D5C05DAF4700024E14A = B2370D5C05DAF4700024E14A; B28AD32A05DE876E00560377 = B28AD32A05DE876E00560377; - B28AD34205DE8A9E00560377 = B28AD34205DE8A9E00560377; - B28AD34305DE8A9E00560377 = B28AD34305DE8A9E00560377; B28AD34B05DE8AC900560377 = B28AD34B05DE8AC900560377; B2CA44B205D85B7D0023B612 = B2CA44B205D85B7D0023B612; }; sourceControlManager = B27AE6F205603A6100980793; --- 570,594 ---- RubberWindowFrame = "347 402 745 464 0 0 1440 878 "; }; ! PBXWorkspaceStateSaveDate = 102605146; }; perUserProjectItems = { B215449C05DD9BA5009EB365 = B215449C05DD9BA5009EB365; B21544C605DD9D07009EB365 = B21544C605DD9D07009EB365; B215456705DDA0F9009EB365 = B215456705DDA0F9009EB365; ! B218A9E506090AEB0048BA6D = B218A9E506090AEB0048BA6D; ! B218A9E706090AEB0048BA6D = B218A9E706090AEB0048BA6D; ! B218A9EF060915970048BA6D = B218A9EF060915970048BA6D; B232849C05E02A0E00944D13 = B232849C05E02A0E00944D13; B23284CD05E02A8300944D13 = B23284CD05E02A8300944D13; B2370D5C05DAF4700024E14A = B2370D5C05DAF4700024E14A; + B26E8A2C061DA17C0093EECC = B26E8A2C061DA17C0093EECC; + B26E8A2F061DA17D0093EECC = B26E8A2F061DA17D0093EECC; B28AD32A05DE876E00560377 = B28AD32A05DE876E00560377; B28AD34B05DE8AC900560377 = B28AD34B05DE8AC900560377; B2CA44B205D85B7D0023B612 = B2CA44B205D85B7D0023B612; + B2D32AED060A5A290002FBB6 = B2D32AED060A5A290002FBB6; + B2E7A1E6060A403D00AE8134 = B2E7A1E6060A403D00AE8134; + B2E7A1F2060A410700AE8134 = B2E7A1F2060A410700AE8134; + B2E7A1FE060A41AB00AE8134 = B2E7A1FE060A41AB00AE8134; }; sourceControlManager = B27AE6F205603A6100980793; *************** *** 588,594 **** B215440505DD97BA009EB365 = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1219, 700}}"; sepNavSelRange = "{458, 140}"; ! sepNavVisRect = "{{0, 0}, {1219, 700}}"; }; }; --- 601,607 ---- B215440505DD97BA009EB365 = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1165, 764}}"; sepNavSelRange = "{458, 140}"; ! sepNavVisRect = "{{0, 0}, {1165, 764}}"; }; }; *************** *** 613,636 **** vrLoc = 0; }; - B21544CA05DD9D08009EB365 = { - fRef = B2CA44BC05D85B9E0023B612; - isa = PBXTextBookmark; - name = removeThread; - rLen = 12; - rLoc = 8181; - rType = 0; - vrLen = 2008; - vrLoc = 6351; - }; - B21544CB05DD9D08009EB365 = { - fRef = B2CA44BC05D85B9E0023B612; - isa = PBXTextBookmark; - name = removeThread; - rLen = 12; - rLoc = 8181; - rType = 0; - vrLen = 2008; - vrLoc = 6351; - }; B215453B05DDA08B009EB365 = { uiCtxt = { --- 626,629 ---- *************** *** 650,672 **** vrLoc = 477; }; ! B215458205DDA18F009EB365 = { ! fRef = B215440505DD97BA009EB365; isa = PBXTextBookmark; ! name = "int receive_audio (UdpAudioStream stream,long nframes,float **buffers);\nint send_audio (UdpAudioStream stream,long nframes,float **buffers);"; ! rLen = 140; ! rLoc = 458; rType = 0; ! vrLen = 627; ! vrLoc = 0; }; ! B232842C05E027D700944D13 = { fRef = B25B3BB80560818600D6B727; isa = PBXTextBookmark; ! name = setThreadPriority; ! rLen = 17; ! rLoc = 6007; rType = 0; ! vrLen = 1016; ! vrLoc = 5784; }; B232849C05E02A0E00944D13 = { --- 643,675 ---- vrLoc = 477; }; ! B218A9E506090AEB0048BA6D = { ! fRef = B28AD34505DE8AAB00560377; isa = PBXTextBookmark; ! name = "unistd.h: 22"; ! rLen = 0; ! rLoc = 978; rType = 0; ! vrLen = 2343; ! vrLoc = 1519; }; ! B218A9E706090AEB0048BA6D = { ! fRef = B28AD34505DE8AAB00560377; ! isa = PBXTextBookmark; ! name = "unistd.h: 22"; ! rLen = 0; ! rLoc = 978; ! rType = 0; ! vrLen = 2343; ! vrLoc = 1519; ! }; ! B218A9EF060915970048BA6D = { fRef = B25B3BB80560818600D6B727; isa = PBXTextBookmark; ! name = HelloPandaDriver; ! rLen = 16; ! rLoc = 9194; rType = 0; ! vrLen = 2811; ! vrLoc = 0; }; B232849C05E02A0E00944D13 = { *************** *** 674,697 **** trg = 089C1673FE841209C02AAC07; }; - B23284C905E02A6200944D13 = { - fRef = B28AD32005DE874800560377; - isa = PBXTextBookmark; - name = "cycles.h: 1"; - rLen = 0; - rLoc = 0; - rType = 0; - vrLen = 862; - vrLoc = 2148; - }; - B23284CA05E02A6200944D13 = { - fRef = B28AD32005DE874800560377; - isa = PBXTextBookmark; - name = "cycles.h: 1"; - rLen = 0; - rLoc = 0; - rType = 0; - vrLen = 862; - vrLoc = 2148; - }; B23284CD05E02A8300944D13 = { fRef = B215453B05DDA08B009EB365; --- 677,680 ---- *************** *** 704,757 **** vrLoc = 477; }; - B23284CE05E02A8300944D13 = { - fRef = B215453B05DDA08B009EB365; - isa = PBXTextBookmark; - name = "pThreadUtilities.h: 41"; - rLen = 0; - rLoc = 2553; - rType = 0; - vrLen = 2517; - vrLoc = 477; - }; - B232850705E02B3800944D13 = { - fRef = B25B3BB80560818600D6B727; - isa = PBXTextBookmark; - name = " - "; - rLen = 1; - rLoc = 7719; - rType = 0; - vrLen = 1299; - vrLoc = 6787; - }; - B232850805E02B3800944D13 = { - fRef = B25B3BB80560818600D6B727; - isa = PBXTextBookmark; - name = " - "; - rLen = 1; - rLoc = 7719; - rType = 0; - vrLen = 1299; - vrLoc = 6787; - }; - B232850D05E034C900944D13 = { - isa = PBXTargetBookmark; - trg = 089C1673FE841209C02AAC07; - uiCtxt = { - TOCViewDetailVisibleRect = "{{0, 0}, {869, 287}}"; - TOCViewExpandedItems = ( - "com.apple.target-editor-pane.settings", - "com.apple.target-editor-pane.settings.simple", - "com.apple.target-editor-pane.info-plist", - "com.apple.target-editor-pane.info-plist.simple", - "com.apple.target-editor-pane.buildphases", - ); - TOCViewMasterVisibleRect = "{{0, 0}, {350, 683}}"; - TOCViewSelectedItems = ( - "com.apple.target-editor-pane.settings.linker.ld", - ); - }; - }; B2370D5C05DAF4700024E14A = { fRef = B2F097DC05DAE35300784969; --- 687,690 ---- *************** *** 766,774 **** B25B3BB80560818600D6B727 = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1219, 6691}}"; ! sepNavSelRange = "{7719, 1}"; ! sepNavVisRect = "{{0, 2400}, {1219, 700}}"; }; }; B27AE6F205603A6100980793 = { isa = PBXSourceControlManager; --- 699,727 ---- B25B3BB80560818600D6B727 = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1165, 6929}}"; ! sepNavSelRange = "{5425, 0}"; ! sepNavVisRect = "{{0, 1267}, {1165, 764}}"; }; }; + B26E8A2C061DA17C0093EECC = { + fRef = B25B3BB80560818600D6B727; + isa = PBXTextBookmark; + name = "main.cpp: 100"; + rLen = 0; + rLoc = 5425; + rType = 0; + vrLen = 1080; + vrLoc = 5177; + }; + B26E8A2F061DA17D0093EECC = { + fRef = B25B3BB80560818600D6B727; + isa = PBXTextBookmark; + name = "main.cpp: 100"; + rLen = 0; + rLoc = 5425; + rType = 0; + vrLen = 1080; + vrLoc = 5177; + }; B27AE6F205603A6100980793 = { isa = PBXSourceControlManager; *************** *** 793,799 **** B28AD32005DE874800560377 = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1219, 1805}}"; sepNavSelRange = "{0, 0}"; ! sepNavVisRect = "{{0, 1082}, {1219, 700}}"; }; }; --- 746,752 ---- B28AD32005DE874800560377 = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1165, 1805}}"; sepNavSelRange = "{0, 0}"; ! sepNavVisRect = "{{0, 0}, {1165, 764}}"; }; }; *************** *** 808,831 **** vrLoc = 2163; }; - B28AD34205DE8A9E00560377 = { - fRef = B28AD34505DE8AAB00560377; - isa = PBXTextBookmark; - name = "(null): 22"; - rLen = 0; - rLoc = 978; - rType = 0; - vrLen = 2045; - vrLoc = 1668; - }; - B28AD34305DE8A9E00560377 = { - fRef = B28AD34605DE8AAB00560377; - isa = PBXTextBookmark; - name = "(null): 22"; - rLen = 0; - rLoc = 978; - rType = 0; - vrLen = 2045; - vrLoc = 1668; - }; B28AD34505DE8AAB00560377 = { isa = PBXFileReference; --- 761,764 ---- *************** *** 836,847 **** sourceTree = "<absolute>"; }; - B28AD34605DE8AAB00560377 = { - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.h; - name = unistd.h; - path = /usr/include/unistd.h; - refType = 0; - sourceTree = "<absolute>"; - }; B28AD34B05DE8AC900560377 = { fRef = B28AD35105DE8AE700560377; --- 769,772 ---- *************** *** 895,906 **** trg = 089C1673FE841209C02AAC07; }; ! B2CA44BC05D85B9E0023B612 = { isa = PBXFileReference; ! lastKnownFileType = sourcecode.c.h; ! name = panda_modules.h; ! path = /Library/Frameworks/Panda.framework/Headers/panda_modules.h; refType = 0; sourceTree = "<absolute>"; }; B2F097DC05DAE35300784969 = { isa = PBXFileReference; --- 820,879 ---- trg = 089C1673FE841209C02AAC07; }; ! B2D32AED060A5A290002FBB6 = { ! fRef = B28AD32005DE874800560377; ! isa = PBXTextBookmark; ! name = "cycles.h: 1"; ! rLen = 0; ! rLoc = 0; ! rType = 0; ! vrLen = 1771; ! vrLoc = 0; ! }; ! B2E7A1E6060A403D00AE8134 = { ! fRef = B2E7A1EA060A405B00AE8134; ! isa = PBXTextBookmark; ! name = "(null): 1"; ! rLen = 0; ! rLoc = 0; ! rType = 0; ! vrLen = 1256; ! vrLoc = 0; ! }; ! B2E7A1EA060A405B00AE8134 = { isa = PBXFileReference; ! lastKnownFileType = sourcecode.c.c; ! name = testudp.c; ! path = /Users/johnny/testpanda/testudp.c; refType = 0; sourceTree = "<absolute>"; }; + B2E7A1F2060A410700AE8134 = { + fRef = B2E7A1F5060A411800AE8134; + isa = PBXTextBookmark; + name = "(null): 17"; + rLen = 0; + rLoc = 443; + rType = 0; + vrLen = 1256; + vrLoc = 0; + }; + B2E7A1F5060A411800AE8134 = { + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.c; + name = testudp.c; + path = /Users/johnny/testpanda/testudp.c; + refType = 0; + sourceTree = "<absolute>"; + }; + B2E7A1FE060A41AB00AE8134 = { + fRef = B215440505DD97BA009EB365; + isa = PBXTextBookmark; + name = "TICULAR PURPOSE. See the GNU Library General Public License\n for more details.\n\n You should have received a copy of the GNU Library Gener"; + rLen = 140; + rLoc = 458; + rType = 0; + vrLen = 1230; + vrLoc = 0; + }; B2F097DC05DAE35300784969 = { isa = PBXFileReference; |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:36:09
|
Update of /cvsroot/xpanda/Panda/Drivers/MACOSX/UDP In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20977/UDP Modified Files: main.cpp udpaudio.h Added Files: compile_linux.txt Log Message: fix Index: udpaudio.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/UDP/udpaudio.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** udpaudio.h 15 Feb 2004 23:37:16 -0000 1.2 --- udpaudio.h 23 Apr 2004 14:36:00 -0000 1.3 *************** *** 1,20 **** /* ! udpaudio.h ! Copyright © Johnny Petrantoni 2004 ! This library is free software; you can redistribute it and modify it under ! the terms of the GNU Library General Public License as published by the ! Free Software Foundation version 2 of the License, or any later version. ! This library is distributed in the hope that it will be useful, but ! WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ! or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License ! for more details. ! You should have received a copy of the GNU Library General Public License ! along with this library; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ --- 1,21 ---- /* ! udpaudio.h ! Copyright (c) Johnny Petrantoni 2004. ! This program is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! You should have received a copy of the GNU General Public License ! along with this program; if not, write to the Free Software ! Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ *************** *** 34,37 **** #ifdef __cplusplus ! } ! #endif \ No newline at end of file --- 35,39 ---- #ifdef __cplusplus ! }; ! #endif ! Index: main.cpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/UDP/main.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.cpp 15 Feb 2004 23:37:16 -0000 1.2 --- main.cpp 23 Apr 2004 14:36:00 -0000 1.3 *************** *** 8,96 **** main.cpp - main file. ! under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. ! ! 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! The End. */ --- 8,33 ---- main.cpp - main file. ! This program is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! You should have received a copy of the GNU General Public License ! along with this program; if not, write to the Free Software ! Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ! ! elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. ! e-mail: jo...@la... ! ! */ + /* + some part of this code is derived from the Jack audio server. + (c) Copyright (C) 2001 Paul Davis and Grame. */ *************** *** 103,106 **** --- 40,57 ---- #include "cycles.h" #include <stdio.h> + #include <unistd.h> + #include <inttypes.h> + #include <stdlib.h> + #include <sys/types.h> + #include <sys/time.h> + #include <limits.h> + #ifndef FALSE + #define FALSE 0 + #endif + #ifndef TRUE + #define TRUE 1 + #endif + #include <malloc.h> + #include <string.h> #else #include "pThreadUtilities.h" *************** *** 124,129 **** #ifdef __LINUX__ uint64_t cycle; ! uint64_t = _time_ratio; ! uint64_t = last_wait_ust; #else double cycle; --- 75,80 ---- #ifdef __LINUX__ uint64_t cycle; ! uint64_t _time_ratio; ! uint64_t last_wait_ust; #else double cycle; *************** *** 136,140 **** #ifdef __LINUX__ ! int setThreadPriority(int priority) { pthread_attr_t *attributes = 0; --- 87,91 ---- #ifdef __LINUX__ ! extern "C" int setThreadPriority(int priority) { pthread_attr_t *attributes = 0; *************** *** 166,171 **** } ! uint64_t ! jack_get_mhz (void) { FILE *f = fopen("/proc/cpuinfo", "r"); --- 117,121 ---- } ! extern "C" uint64_t jack_get_mhz (void) { FILE *f = fopen("/proc/cpuinfo", "r"); *************** *** 190,195 **** #if defined(__powerpc__) ret = sscanf(buf, "clock\t: %" SCNu64 "MHz", &mhz); ! #elif defined( __i386__ ) || defined (__hppa__) || defined (__ia64__) || \ ! defined(__x86_64__) ret = sscanf(buf, "cpu MHz : %" SCNu64, &mhz); #elif defined( __sparc__ ) --- 140,144 ---- #if defined(__powerpc__) ret = sscanf(buf, "clock\t: %" SCNu64 "MHz", &mhz); ! #elif defined( __i386__ ) || defined (__hppa__) || defined (__ia64__) || defined(__x86_64__) ret = sscanf(buf, "cpu MHz : %" SCNu64, &mhz); #elif defined( __sparc__ ) *************** *** 213,217 **** ! void renderWait(MyData *x) { #ifdef __LINUX__ uint64_t microsecs = get_cycles() / x->_time_ratio; --- 162,166 ---- ! extern "C" void renderWait(MyData *x) { #ifdef __LINUX__ uint64_t microsecs = get_cycles() / x->_time_ratio; *************** *** 227,231 **** } ! void * Render(void *x) { MyData *d = (MyData*)x; #ifdef __LINUX__ --- 176,180 ---- } ! extern "C" void * Render(void *x) { MyData *d = (MyData*)x; #ifdef __LINUX__ *************** *** 357,364 **** #ifdef __LINUX__ ! x->cycle = (uint64_t) (((float) x->bufferSize) / x->sampleRate) * 1000000.0f; x->_time_ratio = jack_get_mhz (); #else ! x->cycle = (((float) x->bufferSize) / x->sampleRate) * 1000000.0f; mach_timebase_info_data_t info; mach_timebase_info(&info); --- 306,313 ---- #ifdef __LINUX__ ! x->cycle = (uint64_t) floor((((float) x->bufferSize) / x->sampleRate) * 1000000.0f); x->_time_ratio = jack_get_mhz (); #else ! x->cycle = floor((((float) x->bufferSize) / x->sampleRate) * 1000000.0f); mach_timebase_info_data_t info; mach_timebase_info(&info); --- NEW FILE: compile_linux.txt --- gcc -shared -lPanda -lstdc++ -D__LINUX__=1 -D__i386__=1 main.cpp libudpaudio.a -o UDP.so |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:35:25
|
Update of /cvsroot/xpanda/Panda/Drivers/MACOSX/Jack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20700/Jack Modified Files: JackRender.cpp main.cpp JackRender.h Log Message: fix Index: main.cpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/Jack/main.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.cpp 15 Feb 2004 23:37:16 -0000 1.2 --- main.cpp 23 Apr 2004 14:35:14 -0000 1.3 *************** *** 8,96 **** main.cpp - main file. ! under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. - 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. ! 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. - 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - - The End. */ --- 8,30 ---- main.cpp - main file. ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ *************** *** 107,111 **** }; - MyData * HelloPandaDriver(void) { MyData *x; --- 41,44 ---- *************** *** 137,141 **** x->inCh = 0; x->outCh = 2; ! strcpy(&x->clientName[0],"Panda"); x->isConfigured = false; --- 70,75 ---- x->inCh = 0; x->outCh = 2; ! bzero(&x->clientName[0],sizeof(char)*256); ! strcpy(&x->clientName[0],"PandaJack"); x->isConfigured = false; Index: JackRender.cpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/Jack/JackRender.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** JackRender.cpp 15 Feb 2004 23:37:16 -0000 1.2 --- JackRender.cpp 23 Apr 2004 14:35:14 -0000 1.3 *************** *** 8,103 **** JackRender.cpp ! under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ - #include "JackRender.h" int JackRender::renderProcess(jack_nframes_t nframes,void *arg) { - JackRender *x = (JackRender*)arg; --- 8,35 ---- JackRender.cpp ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ #include "JackRender.h" int JackRender::renderProcess(jack_nframes_t nframes,void *arg) { JackRender *x = (JackRender*)arg; *************** *** 105,119 **** x->in_buffers[i] = (float*)jack_port_get_buffer(x->inPorts[i],nframes); } - for(int i=0;i<x->output_ports;i++) { x->out_buffers[i] = (float*)jack_port_get_buffer(x->outPorts[i],nframes); } - for(int i=0;i<x->output_ports;i++) { ! memset(x->out_buffers[i],0x0,sizeof(float)*nframes); ! } doPandaRender(nframes); ! return 0; } --- 37,49 ---- x->in_buffers[i] = (float*)jack_port_get_buffer(x->inPorts[i],nframes); } for(int i=0;i<x->output_ports;i++) { x->out_buffers[i] = (float*)jack_port_get_buffer(x->outPorts[i],nframes); } for(int i=0;i<x->output_ports;i++) { ! bzero(x->out_buffers[i],sizeof(float)*nframes); ! } doPandaRender(nframes); ! return 0; } *************** *** 121,208 **** void JackRender::JackShutDown(void *arg) { JackRender *x = (JackRender*)arg; - - x->isOn = false; - free(x->inPorts); - free(x->outPorts); - free(x->in_buffers); - free(x->out_buffers); delete x; } ! ! JackRender::JackRender(int inChannels,int outChannels) : input_ports(inChannels), output_ports(outChannels) { isOn = false; - client = jack_client_new("Panda"); - if(!client) return; - - if(inChannels>0) inPorts = (jack_port_t**)malloc(sizeof(jack_port_t*)*inChannels); - if(outChannels>0) outPorts = (jack_port_t**)malloc(sizeof(jack_port_t*)*outChannels); - - for(int i=0;i<inChannels;i++) { - char name[256]; - sprintf(&name[0],"in%d",i+1); - inPorts[i] = jack_port_register(client, &name[0], JACK_DEFAULT_AUDIO_TYPE, JackPortIsInput, 0); - } - - for(int i=0;i<outChannels;i++) { - char name[256]; - sprintf(&name[0],"out%d",i+1); - outPorts[i] = jack_port_register(client, &name[0], JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0); - } - - bufferSize = jack_get_buffer_size(client); - sampleRate = jack_get_sample_rate(client); - - if(jack_set_process_callback(client,renderProcess,this)!=0) return; - jack_on_shutdown (client,JackShutDown,this); - - if(inChannels>0) in_buffers = (float**)malloc(sizeof(float*)*inChannels); - if(outChannels>0) out_buffers = (float**)malloc(sizeof(float*)*outChannels); ! input_ports = inChannels; ! output_ports = outChannels; ! ! SetPandaBufferSize(bufferSize); ! SetPandaSampleRate(sampleRate); ! SetPandaInChannels(input_ports); ! SetPandaOutChannels(output_ports); ! ! setDAC(out_buffers); ! setADC(in_buffers); - isOn = true; - } - - JackRender::JackRender(int inChannels,int outChannels,char *clientName) { - isOn = false; client = jack_client_new(clientName); if(!client) return; - if(inChannels>0) inPorts = (jack_port_t**)malloc(sizeof(jack_port_t*)*inChannels); - if(outChannels>0) outPorts = (jack_port_t**)malloc(sizeof(jack_port_t*)*outChannels); - for(int i=0;i<inChannels;i++) { char name[256]; sprintf(&name[0],"in%d",i+1); ! inPorts[i] = jack_port_register(client, &name[0], JACK_DEFAULT_AUDIO_TYPE, JackPortIsInput, 0); } for(int i=0;i<outChannels;i++) { char name[256]; sprintf(&name[0],"out%d",i+1); ! outPorts[i] = jack_port_register(client, &name[0], JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0); } bufferSize = jack_get_buffer_size(client); sampleRate = jack_get_sample_rate(client); - if(jack_set_process_callback(client,renderProcess,this)!=0) return; - jack_on_shutdown (client,JackShutDown,this); - if(inChannels>0) in_buffers = (float**)malloc(sizeof(float*)*inChannels); if(outChannels>0) out_buffers = (float**)malloc(sizeof(float*)*outChannels); - input_ports = inChannels; - output_ports = outChannels; - SetPandaBufferSize(bufferSize); SetPandaSampleRate(sampleRate); --- 51,88 ---- void JackRender::JackShutDown(void *arg) { JackRender *x = (JackRender*)arg; delete x; } ! ! JackRender::JackRender(int inChannels,int outChannels,char *clientName) : input_ports(inChannels),output_ports(outChannels) { isOn = false; ! if(inChannels > 128 || outChannels > 128) return; client = jack_client_new(clientName); if(!client) return; for(int i=0;i<inChannels;i++) { char name[256]; + bzero(&name[0],sizeof(char)*256); sprintf(&name[0],"in%d",i+1); ! inPorts[i] = jack_port_register(client,&name[0],JACK_DEFAULT_AUDIO_TYPE,JackPortIsInput,0); } for(int i=0;i<outChannels;i++) { char name[256]; + bzero(&name[0],sizeof(char)*256); sprintf(&name[0],"out%d",i+1); ! outPorts[i] = jack_port_register(client,&name[0],JACK_DEFAULT_AUDIO_TYPE,JackPortIsOutput,0); } + jack_set_process_callback(client,renderProcess,this); + jack_on_shutdown (client,JackShutDown,this); + bufferSize = jack_get_buffer_size(client); sampleRate = jack_get_sample_rate(client); if(inChannels>0) in_buffers = (float**)malloc(sizeof(float*)*inChannels); if(outChannels>0) out_buffers = (float**)malloc(sizeof(float*)*outChannels); SetPandaBufferSize(bufferSize); SetPandaSampleRate(sampleRate); *************** *** 210,215 **** SetPandaOutChannels(output_ports); ! setDAC(out_buffers); ! setADC(in_buffers); isOn = true; --- 90,95 ---- SetPandaOutChannels(output_ports); ! if(outChannels>0) setDAC(out_buffers); ! if(inChannels>0) setADC(in_buffers); isOn = true; *************** *** 219,234 **** if(client && isOn) { jack_deactivate(client); ! /*for(int i=0;i<input_ports;i++) { jack_port_unregister(client,inPorts[i]); } for(int i=0;i<output_ports;i++) { jack_port_unregister(client,outPorts[i]); ! }*/ ! free(inPorts); ! free(outPorts); ! free(in_buffers); ! free(out_buffers); jack_client_close(client); isOn = false; } } --- 99,113 ---- if(client && isOn) { jack_deactivate(client); ! for(int i=0;i<input_ports;i++) { jack_port_unregister(client,inPorts[i]); } for(int i=0;i<output_ports;i++) { jack_port_unregister(client,outPorts[i]); ! } ! if(input_ports > 0) free(in_buffers); ! if(output_ports > 0) free(out_buffers); jack_client_close(client); isOn = false; + client = NULL; } } Index: JackRender.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/Jack/JackRender.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** JackRender.h 15 Feb 2004 23:37:16 -0000 1.2 --- JackRender.h 23 Apr 2004 14:35:14 -0000 1.3 *************** *** 8,105 **** JackRender.h ! under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. - 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. ! 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. - 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - - The End. */ ! ! #include <Panda/panda_drivers.h> #include <Jack/jack.h> class JackRender { public: ! JackRender(int inChannels,int outChannels); JackRender(int inChannels,int outChannels,char *clientName); ~JackRender(); --- 8,38 ---- JackRender.h ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ ! #include <Panda/panda.h> #include <Jack/jack.h> class JackRender { public: ! JackRender(int inChannels,int outChannels) { JackRender(inChannels,outChannels,"PandaJack"); } JackRender(int inChannels,int outChannels,char *clientName); ~JackRender(); *************** *** 107,116 **** bool startAudio(); bool stopAudio(); - private: static int renderProcess(jack_nframes_t nframes,void *arg); static void JackShutDown(void *arg); jack_client_t *client; ! jack_port_t **inPorts; ! jack_port_t **outPorts; int input_ports; int output_ports; --- 40,49 ---- bool startAudio(); bool stopAudio(); static int renderProcess(jack_nframes_t nframes,void *arg); static void JackShutDown(void *arg); + private: jack_client_t *client; ! jack_port_t *inPorts[128]; ! jack_port_t *outPorts[128]; int input_ports; int output_ports; |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:34:47
|
Update of /cvsroot/xpanda/Panda/Drivers/MACOSX/AUHAL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20492/AUHAL Modified Files: main.cpp Log Message: fix Index: main.cpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/AUHAL/main.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.cpp 15 Feb 2004 23:37:16 -0000 1.2 --- main.cpp 23 Apr 2004 14:34:39 -0000 1.3 *************** *** 8,96 **** main.cpp - main file. ! under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ --- 8,30 ---- main.cpp - main file. ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:33:11
|
Update of /cvsroot/xpanda/Panda/Drivers/MACOSX/CoreAudio/CoreAudio.xcode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19940/CoreAudio/CoreAudio.xcode Modified Files: johnny.pbxuser Log Message: fix Index: johnny.pbxuser =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/CoreAudio/CoreAudio.xcode/johnny.pbxuser,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** johnny.pbxuser 2 Mar 2004 12:58:57 -0000 1.2 --- johnny.pbxuser 23 Apr 2004 14:33:02 -0000 1.3 *************** *** 46,52 **** PBXFileTableDataSourceColumnWidthsKey = ( 20, ! 910, 20, ! 159, 43, 43, --- 46,52 ---- PBXFileTableDataSourceColumnWidthsKey = ( 20, ! 867, 20, ! 152, 43, 43, *************** *** 85,89 **** ); }; ! PBXPerProjectTemplateStateSaveDate = 98590214; PBXPrepackagedSmartGroups_v2 = ( { --- 85,89 ---- ); }; ! PBXPerProjectTemplateStateSaveDate = 103293963; PBXPrepackagedSmartGroups_v2 = ( { *************** *** 260,269 **** isCollapsed = yes; sizes = ( ! "{{0, 0}, {1258, 0}}", ! "{{0, 0}, {1258, 732}}", ); }; PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { ! BoundsStr = "{{0, 0}, {1243, 15}}"; Rows = ( 0, --- 260,269 ---- isCollapsed = yes; sizes = ( ! "{{0, 0}, {1208, 0}}", ! "{{0, 0}, {1208, 796}}", ); }; PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { ! BoundsStr = "{{0, 0}, {1193, 15}}"; Rows = ( 0, *************** *** 275,288 **** PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B2EBF5EC05E06BE600F77998; history = ( B244327705DB0D5300155220, B2E2511C05DFF44300347E8D, B2001E3F05DFF46F00B556C7, - B2001F4505DFF8BF00B556C7, - B2001F5E05DFFA5D00B556C7, B2001F6F05DFFBF500B556C7, B2001F7405DFFBFA00B556C7, ! B2001F7705DFFC4600B556C7, ); prevStack = ( --- 275,287 ---- PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B2A3422A062826C400274135; history = ( B244327705DB0D5300155220, B2E2511C05DFF44300347E8D, B2001E3F05DFF46F00B556C7, B2001F6F05DFFBF500B556C7, B2001F7405DFFBFA00B556C7, ! B23BE30A06275EDD007552C1, ! B2280367062820B900DC4FD5, ); prevStack = ( *************** *** 293,297 **** B2001E6605DFF4CB00B556C7, B2001ED505DFF73A00B556C7, - B2001F5F05DFFA5D00B556C7, B2001F7005DFFBF500B556C7, ); --- 292,295 ---- *************** *** 306,317 **** _percentageOfCollapsedView = 0; sizes = ( ! "{{0, 0}, {182, 732}}", ! "{{182, 0}, {1258, 732}}", ); }; }; ! PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {1258, 0}}"; ! PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {1258, 732}}"; ! PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {1258, 732}}"; PBXProjectWorkspaceModule_SGTM = { PBXBottomSmartGroupGIDs = ( --- 304,315 ---- _percentageOfCollapsedView = 0; sizes = ( ! "{{0, 0}, {182, 796}}", ! "{{182, 0}, {1208, 796}}", ); }; }; ! PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {1208, 0}}"; ! PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {1208, 796}}"; ! PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {1208, 796}}"; PBXProjectWorkspaceModule_SGTM = { PBXBottomSmartGroupGIDs = ( *************** *** 343,352 **** PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( ( ! 4, 1, 0, ), ); ! PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 714}}"; }; PBXTopSmartGroupGIDs = ( --- 341,350 ---- PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( ( ! 2, 1, 0, ), ); ! PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 778}}"; }; PBXTopSmartGroupGIDs = ( *************** *** 400,409 **** isCollapsed = yes; sizes = ( ! "{{0, 0}, {1258, 0}}", ! "{{0, 0}, {1258, 732}}", ); }; PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { ! BoundsStr = "{{0, 0}, {1243, 15}}"; Rows = ( 0, --- 398,407 ---- isCollapsed = yes; sizes = ( ! "{{0, 0}, {1208, 0}}", ! "{{0, 0}, {1208, 796}}", ); }; PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = { ! BoundsStr = "{{0, 0}, {1193, 15}}"; Rows = ( 0, *************** *** 415,427 **** PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B2001F6305DFFAB000B556C7; history = ( B244327705DB0D5300155220, B2E2511C05DFF44300347E8D, B2001E3F05DFF46F00B556C7, ! B2001F4505DFF8BF00B556C7, ! B2001F4905DFF8C400B556C7, ! B2001F5E05DFFA5D00B556C7, ! B2001F5605DFFA3900B556C7, ); prevStack = ( --- 413,425 ---- PBXSplitModuleInNavigatorKey = { Split0 = { ! bookmark = B228035F06281EAE00DC4FD5; history = ( B244327705DB0D5300155220, B2E2511C05DFF44300347E8D, B2001E3F05DFF46F00B556C7, ! B2001F6F05DFFBF500B556C7, ! B2001F7405DFFBFA00B556C7, ! B23BE30A06275EDD007552C1, ! B23BE31C06276131007552C1, ); prevStack = ( *************** *** 432,437 **** B2001E6605DFF4CB00B556C7, B2001ED505DFF73A00B556C7, ! B2001F5805DFFA3900B556C7, ! B2001F5F05DFFA5D00B556C7, ); }; --- 430,434 ---- B2001E6605DFF4CB00B556C7, B2001ED505DFF73A00B556C7, ! B2001F7005DFFBF500B556C7, ); }; *************** *** 445,456 **** _percentageOfCollapsedView = 0; sizes = ( ! "{{0, 0}, {182, 732}}", ! "{{182, 0}, {1258, 732}}", ); }; }; ! PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {1258, 0}}"; ! PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {1258, 732}}"; ! PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {1258, 732}}"; PBXProjectWorkspaceModule_SGTM = { PBXBottomSmartGroupGIDs = ( --- 442,453 ---- _percentageOfCollapsedView = 0; sizes = ( ! "{{0, 0}, {182, 796}}", ! "{{182, 0}, {1208, 796}}", ); }; }; ! PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {1208, 0}}"; ! PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {1208, 796}}"; ! PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {1208, 796}}"; PBXProjectWorkspaceModule_SGTM = { PBXBottomSmartGroupGIDs = ( *************** *** 482,491 **** PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( ( ! 4, 1, 0, ), ); ! PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 714}}"; }; PBXTopSmartGroupGIDs = ( --- 479,488 ---- PBXSmartGroupTreeModuleOutlineStateSelectionKey = ( ( ! 2, 1, 0, ), ); ! PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 778}}"; }; PBXTopSmartGroupGIDs = ( *************** *** 521,528 **** PBXWorkspaceGeometries = ( { ! Frame = "{{0, 0}, {1440, 732}}"; PBXProjectWorkspaceModule_GeometryKey_Rev15 = { }; ! RubberWindowFrame = "1 104 1440 774 0 0 1440 878 "; }, ); --- 518,525 ---- PBXWorkspaceGeometries = ( { ! Frame = "{{0, 0}, {1390, 796}}"; PBXProjectWorkspaceModule_GeometryKey_Rev15 = { }; ! RubberWindowFrame = "50 40 1390 838 0 0 1440 878 "; }, ); *************** *** 555,562 **** }; "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = { ! Frame = "{{0, 0}, {1440, 732}}"; PBXProjectWorkspaceModule_GeometryKey_Rev15 = { }; ! RubberWindowFrame = "1 104 1440 774 0 0 1440 878 "; }; "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXRunSessionModule" = { --- 552,559 ---- }; "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = { ! Frame = "{{0, 0}, {1390, 796}}"; PBXProjectWorkspaceModule_GeometryKey_Rev15 = { }; ! RubberWindowFrame = "50 40 1390 838 0 0 1440 878 "; }; "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXRunSessionModule" = { *************** *** 565,569 **** RubberWindowFrame = "347 402 745 464 0 0 1440 878 "; }; ! PBXWorkspaceStateSaveDate = 98590214; }; perUserProjectItems = { --- 562,566 ---- RubberWindowFrame = "347 402 745 464 0 0 1440 878 "; }; ! PBXWorkspaceStateSaveDate = 103293963; }; perUserProjectItems = { *************** *** 571,588 **** B2001E6605DFF4CB00B556C7 = B2001E6605DFF4CB00B556C7; B2001ED505DFF73A00B556C7 = B2001ED505DFF73A00B556C7; - B2001F4505DFF8BF00B556C7 = B2001F4505DFF8BF00B556C7; - B2001F5E05DFFA5D00B556C7 = B2001F5E05DFFA5D00B556C7; - B2001F5F05DFFA5D00B556C7 = B2001F5F05DFFA5D00B556C7; B2001F6F05DFFBF500B556C7 = B2001F6F05DFFBF500B556C7; B2001F7005DFFBF500B556C7 = B2001F7005DFFBF500B556C7; B2001F7405DFFBFA00B556C7 = B2001F7405DFFBFA00B556C7; ! B2001F7705DFFC4600B556C7 = B2001F7705DFFC4600B556C7; B2370D3805DAF1960024E14A = B2370D3805DAF1960024E14A; B2370D5805DAF4660024E14A = B2370D5805DAF4660024E14A; B2370D5C05DAF4700024E14A = B2370D5C05DAF4700024E14A; B244327705DB0D5300155220 = B244327705DB0D5300155220; B2CA44B205D85B7D0023B612 = B2CA44B205D85B7D0023B612; B2E2511C05DFF44300347E8D = B2E2511C05DFF44300347E8D; - B2EBF5EC05E06BE600F77998 = B2EBF5EC05E06BE600F77998; }; sourceControlManager = B27AE6F205603A6100980793; --- 568,583 ---- B2001E6605DFF4CB00B556C7 = B2001E6605DFF4CB00B556C7; B2001ED505DFF73A00B556C7 = B2001ED505DFF73A00B556C7; B2001F6F05DFFBF500B556C7 = B2001F6F05DFFBF500B556C7; B2001F7005DFFBF500B556C7 = B2001F7005DFFBF500B556C7; B2001F7405DFFBFA00B556C7 = B2001F7405DFFBFA00B556C7; ! B2280367062820B900DC4FD5 = B2280367062820B900DC4FD5; B2370D3805DAF1960024E14A = B2370D3805DAF1960024E14A; B2370D5805DAF4660024E14A = B2370D5805DAF4660024E14A; B2370D5C05DAF4700024E14A = B2370D5C05DAF4700024E14A; + B23BE30A06275EDD007552C1 = B23BE30A06275EDD007552C1; B244327705DB0D5300155220 = B244327705DB0D5300155220; + B2A3422A062826C400274135 = B2A3422A062826C400274135; B2CA44B205D85B7D0023B612 = B2CA44B205D85B7D0023B612; B2E2511C05DFF44300347E8D = B2E2511C05DFF44300347E8D; }; sourceControlManager = B27AE6F205603A6100980793; *************** *** 607,612 **** uiCtxt = { sepNavIntBoundsRect = "{{0, 0}, {1219, 5067}}"; ! sepNavSelRange = "{6840, 0}"; ! sepNavVisRect = "{{0, 1624}, {1219, 700}}"; }; }; --- 602,607 ---- uiCtxt = { sepNavIntBoundsRect = "{{0, 0}, {1219, 5067}}"; ! sepNavSelRange = "{11506, 21}"; ! sepNavVisRect = "{{0, 4344}, {1219, 700}}"; }; }; *************** *** 631,680 **** vrLoc = 189; }; - B2001F4505DFF8BF00B556C7 = { - fRef = B25B3BB80560818600D6B727; - isa = PBXTextBookmark; - name = "main.cpp: 98"; - rLen = 0; - rLoc = 5324; - rType = 0; - vrLen = 1345; - vrLoc = 5090; - }; - B2001F5E05DFFA5D00B556C7 = { - fRef = B2001F6105DFFA7B00B556C7; - isa = PBXTextBookmark; - name = "(null): 21"; - rLen = 0; - rLoc = 605; - rType = 0; - vrLen = 1261; - vrLoc = 0; - }; - B2001F5F05DFFA5D00B556C7 = { - fRef = B2001F6205DFFA7B00B556C7; - isa = PBXTextBookmark; - name = "(null): 21"; - rLen = 0; - rLoc = 605; - rType = 0; - vrLen = 1261; - vrLoc = 0; - }; - B2001F6105DFFA7B00B556C7 = { - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.c; - name = testca.c; - path = /Users/johnny/Desktop/testpanda/testca.c; - refType = 0; - sourceTree = "<absolute>"; - }; - B2001F6205DFFA7B00B556C7 = { - isa = PBXFileReference; - lastKnownFileType = sourcecode.c.c; - name = testca.c; - path = /Users/johnny/Desktop/testpanda/testca.c; - refType = 0; - sourceTree = "<absolute>"; - }; B2001F6A05DFFBC200B556C7 = { isa = PBXFileReference; --- 626,629 ---- *************** *** 703,715 **** vrLoc = 0; }; ! B2001F7705DFFC4600B556C7 = { ! fRef = B2001E5705DFF4AA00B556C7; isa = PBXTextBookmark; ! name = "AudioRender.cpp: 201"; ! rLen = 0; ! rLoc = 6840; rType = 0; ! vrLen = 1948; ! vrLoc = 6169; }; B2370D3805DAF1960024E14A = { --- 652,664 ---- vrLoc = 0; }; ! B2280367062820B900DC4FD5 = { ! fRef = B25B3BB80560818600D6B727; isa = PBXTextBookmark; ! name = SetParameter; ! rLen = 12; ! rLoc = 7460; rType = 0; ! vrLen = 1344; ! vrLoc = 5878; }; B2370D3805DAF1960024E14A = { *************** *** 743,746 **** --- 692,705 ---- vrLoc = 786; }; + B23BE30A06275EDD007552C1 = { + fRef = B2001E5705DFF4AA00B556C7; + isa = PBXTextBookmark; + name = "_AudioRender::process"; + rLen = 21; + rLoc = 11506; + rType = 0; + vrLen = 1644; + vrLoc = 12947; + }; B244327705DB0D5300155220 = { fRef = B2CA44BC05D85B9E0023B612; *************** *** 755,761 **** B25B3BB80560818600D6B727 = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1219, 3555}}"; ! sepNavSelRange = "{5324, 0}"; ! sepNavVisRect = "{{0, 1243}, {1219, 700}}"; }; }; --- 714,720 ---- B25B3BB80560818600D6B727 = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1169, 3555}}"; ! sepNavSelRange = "{7826, 0}"; ! sepNavVisRect = "{{0, 2527}, {1169, 764}}"; }; }; *************** *** 803,806 **** --- 762,775 ---- ); }; + B2A3422A062826C400274135 = { + fRef = B25B3BB80560818600D6B727; + isa = PBXTextBookmark; + name = "main.cpp: 203"; + rLen = 0; + rLoc = 7826; + rType = 0; + vrLen = 1504; + vrLoc = 7272; + }; B2CA44B205D85B7D0023B612 = { isa = PBXTargetBookmark; *************** *** 825,838 **** vrLoc = 0; }; - B2EBF5EC05E06BE600F77998 = { - fRef = B2001E5705DFF4AA00B556C7; - isa = PBXTextBookmark; - name = "_AudioRender::process"; - rLen = 21; - rLoc = 11506; - rType = 0; - vrLen = 1572; - vrLoc = 13019; - }; B2F097DC05DAE35300784969 = { isa = PBXFileReference; --- 794,797 ---- |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:33:11
|
Update of /cvsroot/xpanda/Panda/Drivers/MACOSX/CoreAudio In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19940/CoreAudio Modified Files: AudioRender.cpp AudioRender.h main.cpp Log Message: fix Index: main.cpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/CoreAudio/main.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.cpp 15 Feb 2004 23:37:16 -0000 1.2 --- main.cpp 23 Apr 2004 14:32:54 -0000 1.3 *************** *** 8,99 **** main.cpp - main file. ! under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ - #include "AudioRender.h" --- 8,32 ---- main.cpp - main file. ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ #include "AudioRender.h" Index: AudioRender.cpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/CoreAudio/AudioRender.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AudioRender.cpp 15 Feb 2004 23:37:16 -0000 1.2 --- AudioRender.cpp 23 Apr 2004 14:32:41 -0000 1.3 *************** *** 8,96 **** AudioRender.cpp ! under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ --- 8,30 ---- AudioRender.cpp ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ Index: AudioRender.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Drivers/MACOSX/CoreAudio/AudioRender.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AudioRender.h 15 Feb 2004 23:37:16 -0000 1.2 --- AudioRender.h 23 Apr 2004 14:32:54 -0000 1.3 *************** *** 8,99 **** AudioRender.h ! under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ - #include <Panda/panda_drivers.h> #include <CoreAudio/CoreAudio.h> --- 8,32 ---- AudioRender.h ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ #include <Panda/panda_drivers.h> #include <CoreAudio/CoreAudio.h> |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:31:42
|
Update of /cvsroot/xpanda/Panda/Wrappers/Python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19649/Python Modified Files: build_pandamodule_linux.sh build_pvar_linux.sh pandamodule.i pandamodule_wrap.c varUtils.c Log Message: WIN32 and lots of new things Index: pandamodule_wrap.c =================================================================== RCS file: /cvsroot/xpanda/Panda/Wrappers/Python/pandamodule_wrap.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pandamodule_wrap.c 15 Feb 2004 22:45:02 -0000 1.1 --- pandamodule_wrap.c 23 Apr 2004 14:31:32 -0000 1.2 *************** *** 642,645 **** --- 642,646 ---- extern ParamList GetModuleParameters(int ); extern void HELP(int ); + extern void HELPME(char *); extern void ExecuteMethod(int ,int ,void *); extern int Connect(int ,int ,int ,int ); *************** *** 1104,1108 **** arg2 = PyList_Size(obj1); ! arg3 = (char **) malloc((arg2+1)*sizeof(char *)); for (i = 0; i <arg2; i++) { --- 1105,1110 ---- arg2 = PyList_Size(obj1); ! if(arg2>0) arg3 = (char **) malloc((arg2+1)*sizeof(char *)); ! else arg3 = NULL; for (i = 0; i <arg2; i++) { *************** *** 1116,1120 **** arg3[i] = PyString_AsString(s); } ! arg3[i] = 0; } result = (int )OpenModule(arg1,arg2,arg3); --- 1118,1122 ---- arg3[i] = PyString_AsString(s); } ! if(arg2>0) arg3[i] = 0; } result = (int )OpenModule(arg1,arg2,arg3); *************** *** 1122,1126 **** resultobj = PyInt_FromLong((long)result); { ! if (arg3) free(arg3); } return resultobj; --- 1124,1130 ---- resultobj = PyInt_FromLong((long)result); { ! if(arg2>0) { ! if (arg3) free(arg3); ! } } return resultobj; *************** *** 1183,1186 **** --- 1187,1202 ---- + static PyObject *_wrap_HELPME(PyObject *self, PyObject *args) { + PyObject *resultobj; + char *arg1 ; + + if(!PyArg_ParseTuple(args,(char *)"s:HELPME",&arg1)) return NULL; + HELPME(arg1); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + } + + static PyObject *_wrap_ExecuteMethod(PyObject *self, PyObject *args) { PyObject *resultobj; *************** *** 1536,1539 **** --- 1552,1556 ---- { (char *)"GetModuleParameters", _wrap_GetModuleParameters, METH_VARARGS }, { (char *)"HELP", _wrap_HELP, METH_VARARGS }, + { (char *)"HELPME", _wrap_HELPME, METH_VARARGS }, { (char *)"ExecuteMethod", _wrap_ExecuteMethod, METH_VARARGS }, { (char *)"Connect", _wrap_Connect, METH_VARARGS }, Index: build_pvar_linux.sh =================================================================== RCS file: /cvsroot/xpanda/Panda/Wrappers/Python/build_pvar_linux.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** build_pvar_linux.sh 2 Mar 2004 13:00:54 -0000 1.1 --- build_pvar_linux.sh 23 Apr 2004 14:31:32 -0000 1.2 *************** *** 1 **** ! gcc -shared -D__LINUX__=1 -lPanda -I/usr/include/python2.2/ -o pvar.so pvar_wrap.c varUtils.c --- 1 ---- ! gcc -shared -D__LINUX__=1 -lPanda -I/usr/local/include/python2.3/ -o pvar.so pvar_wrap.c varUtils.c Index: build_pandamodule_linux.sh =================================================================== RCS file: /cvsroot/xpanda/Panda/Wrappers/Python/build_pandamodule_linux.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** build_pandamodule_linux.sh 2 Mar 2004 13:00:54 -0000 1.1 --- build_pandamodule_linux.sh 23 Apr 2004 14:31:32 -0000 1.2 *************** *** 1 **** ! gcc -shared -D__LINUX__=1 -lPanda -I/usr/include/python2.2/ -o pmodule.so pandamodule_wrap.c --- 1 ---- ! gcc -shared -D__LINUX__=1 -lPanda -I/usr/local/include/python2.3/ -o pmodule.so pandamodule_wrap.c Index: varUtils.c =================================================================== RCS file: /cvsroot/xpanda/Panda/Wrappers/Python/varUtils.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** varUtils.c 2 Mar 2004 12:59:02 -0000 1.2 --- varUtils.c 23 Apr 2004 14:31:32 -0000 1.3 *************** *** 1,2 **** --- 1,26 ---- + /* + Copyright (c) 2004, Johnny Petrantoni. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + + */ + #ifdef __PYTHON_FRAMEWORK__ #include <Python/Python.h> Index: pandamodule.i =================================================================== RCS file: /cvsroot/xpanda/Panda/Wrappers/Python/pandamodule.i,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pandamodule.i 15 Feb 2004 22:45:02 -0000 1.1 --- pandamodule.i 23 Apr 2004 14:31:32 -0000 1.2 *************** *** 13,17 **** $1 = PyList_Size($input); ! $2 = (char **) malloc(($1+1)*sizeof(char *)); for (i = 0; i <$1; i++) { --- 13,18 ---- $1 = PyList_Size($input); ! if($1>0) $2 = (char **) malloc(($1+1)*sizeof(char *)); ! else $2 = NULL; for (i = 0; i <$1; i++) { *************** *** 24,34 **** return NULL; } ! $2[i] = PyString_AsString(s); } ! $2[i] = 0; } %typemap(freearg) (int argc, char *argv[]) { ! if ($2) free($2); } --- 25,35 ---- return NULL; } ! $2[i] = PyString_AsString(s); } ! if($1>0) $2[i] = 0; } %typemap(freearg) (int argc, char *argv[]) { ! if($1>0) { if ($2) free($2); } } *************** *** 62,65 **** --- 63,68 ---- extern void HELP(int ID); + extern void HELPME(char *moduleName); + extern void ExecuteMethod(int ID,int inlet,void *VAR); |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:31:12
|
Update of /cvsroot/xpanda/Panda In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19548 Added Files: LGPL README SConstruct Log Message: WIN32 and lots of new things --- NEW FILE: SConstruct --- env = Environment() list = ['Framework-Library/MACOSX/Core/moduleloader.cpp','Framework-Library/MACOSX/Core/pvar.c', 'Framework-Library/MACOSX/Core/PandaModule.cpp'] listHead = Split('/usr/include Framework-Library/MACOSX/Headers') libPanda = env.SharedLibrary('libPanda',list,CPPPATH = listHead,LIBS = ['pthread','m','c','stdc++','dl'],LIBPATH = '/usr/lib',CCFLAGS = '-D__LINUX__=1') env.Install('/usr/lib/',libPanda) env.Alias('install','/usr/lib/') --- NEW FILE: README --- INSTALLATION: MAC OS X: Panda.framework must go to /Library/Frameworks/ All modules must go to (or ~)/Library/Application Support/Panda/Modules/ or with all category folders (for example: /Library/Application Support/Panda/Modules/Audio/ADC.panda). If you have some troubles, please create this (Application Support/Panda/Modules) even in your home directory. Panda will scan first in the root dir and then in the home. drivers in (or ~)/Library/Application Support/Panda/Drivers/ So when you want to call a module from OpenModule(...) function for example, you must write Audio/ADC or Midi/MidiIn etc... LINUX: In linux every module executable file must have .so extension and also must follow the form of CoreFoundation: for example GNUI/Window: I'm in Modules folder: mkdir GNUI mkdir GNUI/Window.panda mkdir GNUI/Window.panda/Contents mkdir GNUI/Window.panda/Contents/Linux mkdir GNUI/Window.panda/Contents/Resources mv ~/mydev/build/Window.so /usr/local/Panda/Modules/GNUI/Window.panda/Contents/Linux/ the same things are valid even for drivers and also is valid for every extension and every modules path.. All modules in : /usr/local/Panda/Modules/ or ~/Panda/Modules/ all drivers in : /usr/local/Panda/Drivers/ or ~/Panda/Drivers/ libPanda.so in /usr/lib/ Headers in /usr/include/Panda/ --- NEW FILE: LGPL --- GNU Lesser General Public License Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:28:42
|
Update of /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18843/MACOSX/Headers Modified Files: panda.h panda_drivers.h panda_h.h panda_modules.h variables.h Log Message: WIN32 and a lot of new things... Index: panda_drivers.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Headers/panda_drivers.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** panda_drivers.h 15 Feb 2004 23:37:40 -0000 1.2 --- panda_drivers.h 23 Apr 2004 14:28:33 -0000 1.3 *************** *** 3,96 **** Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ panda_drivers.h - Panda drivers API ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ --- 3,30 ---- Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003 - 2004, Giovanni Petrantoni. http://xpanda.sf.net/ panda_drivers.h - Panda drivers API ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ Index: panda_h.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Headers/panda_h.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** panda_h.h 2 Mar 2004 12:58:58 -0000 1.7 --- panda_h.h 23 Apr 2004 14:28:33 -0000 1.8 *************** *** 3,106 **** Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ panda_h.h - main internal header ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ #include <stdio.h> ! #ifndef __LINUX__ #include <CoreFoundation/CoreFoundation.h> ! #else #define TRUE 1 #define FALSE 0 #endif - #define DEBUG 1 enum { //Variable types, (varType); --- 3,46 ---- Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003 - 2004, Giovanni Petrantoni. http://xpanda.sf.net/ panda_h.h - main internal header ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ #include <stdio.h> ! #ifdef __APPLE__ #include <CoreFoundation/CoreFoundation.h> ! #elif __WIN32__ ! #include <windows.h> ! #endif ! ! #ifndef TRUE #define TRUE 1 + #endif + + #ifndef FALSE #define FALSE 0 #endif enum { //Variable types, (varType); *************** *** 147,151 **** typedef struct _parametersList { TYPE moduleType; ! int manyMethods; int outlets; int inlets; --- 87,91 ---- typedef struct _parametersList { TYPE moduleType; ! int subType; int outlets; int inlets; *************** *** 163,167 **** --- 103,113 ---- }DriverParamList; + #ifndef __WIN32__ typedef void * (*ThreadFunctionPtr)(void *x); + #else + typedef unsigned long (WINAPI *ThreadFunctionPtr)(void*); + #endif + + typedef void (*HELPPtr)(void); typedef struct metodi { *************** *** 202,211 **** int GetDeviceInputChannels(); int GetDeviceOutputChannels(); ! #ifndef __LINUX__ CFBundleRef GetModuleBundleFromID(int ID); #else ! extern void * GetModuleBundleFromID(int ID); #endif ! extern char * GetModuleResourcesPath(int ID); void * GetModuleVoidPtr(int ID); void PandaLog(char *fmt,...); --- 148,157 ---- int GetDeviceInputChannels(); int GetDeviceOutputChannels(); ! #ifdef __APPLE__ CFBundleRef GetModuleBundleFromID(int ID); #else ! void * GetModuleBundleFromID(int ID); #endif ! char * GetModuleResourcesPath(int ID); void * GetModuleVoidPtr(int ID); void PandaLog(char *fmt,...); *************** *** 216,222 **** float **GetPluginDACBuffers(char *istanceName); P_BOOL GetPluginAudioConfiguration(char *istanceName,float *outSR,long *outBSize,int *outInCh,int *outOutCh); - void changeDefaultModDirAndExt(char *modulesNewDir,char *modulesNewExt); int addThread(void *callerData,ThreadFunctionPtr ThreadFunction); void removeThread(int ThreadReference); void doPandaRender(long nframes); void setDAC(float **buffers); --- 162,168 ---- float **GetPluginDACBuffers(char *istanceName); P_BOOL GetPluginAudioConfiguration(char *istanceName,float *outSR,long *outBSize,int *outInCh,int *outOutCh); int addThread(void *callerData,ThreadFunctionPtr ThreadFunction); void removeThread(int ThreadReference); + int changeThreadPriority(int ThreadReference,int priority); void doPandaRender(long nframes); void setDAC(float **buffers); Index: panda_modules.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Headers/panda_modules.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** panda_modules.h 2 Mar 2004 12:58:58 -0000 1.5 --- panda_modules.h 23 Apr 2004 14:28:33 -0000 1.6 *************** *** 3,102 **** Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ panda_modules.h - Panda modules API ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ #include <stdio.h> ! #ifndef __LINUX__ #include <CoreFoundation/CoreFoundation.h> #endif --- 3,38 ---- Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003 - 2004, Giovanni Petrantoni. http://xpanda.sf.net/ panda_modules.h - Panda modules API ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ #include <stdio.h> ! #ifdef __APPLE__ #include <CoreFoundation/CoreFoundation.h> + #elif __WIN32__ + #include <windows.h> #endif *************** *** 115,118 **** --- 51,55 ---- typedef unsigned char P_BOOL; typedef unsigned char P_BYTE; + typedef int P_ID; //module ID type (please use this type in your modules, because int will be changed to UInt32) typedef struct _inletBuf { *************** *** 132,136 **** --- 69,81 ---- typedef int TYPE; + #ifndef __WIN32__ typedef void * (*ThreadFunctionPtr)(void *x); + #define PANDA_THREAD void * + #define PANDA_THREAD_RETURN return NULL + #else + typedef unsigned long (WINAPI *ThreadFunctionPtr)(void*); + #define PANDA_THREAD unsigned long WINAPI + #define PANDA_THREAD_RETURN return 0 + #endif struct __myObjData; //this is your data structure (YOU MUST DEFINE IT) *************** *** 167,171 **** extern int GetDeviceInputChannels(void); extern int GetDeviceOutputChannels(void); ! #ifndef __LINUX__ extern CFBundleRef GetModuleBundleFromID(int ID); #else --- 112,116 ---- extern int GetDeviceInputChannels(void); extern int GetDeviceOutputChannels(void); ! #ifdef __APPLE__ extern CFBundleRef GetModuleBundleFromID(int ID); #else *************** *** 190,193 **** --- 135,139 ---- int addThread(void *callerData,ThreadFunctionPtr ThreadFunction); //Round-robin thread with priority 62. void removeThread(int ThreadReference); //You must exit from the thread function before to call this. + int changeThreadPriority(int ThreadReference,int priority); #ifdef __cplusplus *************** *** 201,204 **** --- 147,151 ---- MyData * HelloPanda (int *err,int MODULE_ID,int argc,char **argv); + void ShowHelp(void); void InletCallback (MyData *x,int inlet, Var *inValues); float ** AllocInlets (MyData *x,long bufferSize, int *manyBuffers); Index: panda.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Headers/panda.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** panda.h 15 Feb 2004 23:01:38 -0000 1.4 --- panda.h 23 Apr 2004 14:28:33 -0000 1.5 *************** *** 3,96 **** Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ panda.h - Panda API ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ --- 3,30 ---- Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003 - 2004, Giovanni Petrantoni. http://xpanda.sf.net/ panda.h - Panda API ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ *************** *** 112,115 **** --- 46,51 ---- void HELP(int ID); + void HELPME(char *moduleName); + void ExecuteMethod(int ID,int inlet,void *VAR); *************** *** 138,144 **** int AudioEngineSelect(char *audioEngineName); ! int AudioEngineSetParameter(int parameter,Var *inValues); ! int AudioEngineGetParameter(int parameter,Var *outValues); DriverParamList AudioEngineGetParametersList(); --- 74,80 ---- int AudioEngineSelect(char *audioEngineName); ! int AudioEngineSetParameter(int parameter,void *inValues); ! int AudioEngineGetParameter(int parameter,void *outValues); DriverParamList AudioEngineGetParametersList(); Index: variables.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Headers/variables.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** variables.h 17 Dec 2003 00:52:46 -0000 1.1.1.1 --- variables.h 23 Apr 2004 14:28:33 -0000 1.2 *************** *** 3,96 **** Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ variables.h - Panda variables utilities ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ --- 3,30 ---- Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003 - 2004, Giovanni Petrantoni. http://xpanda.sf.net/ variables.h - Panda variables utilities ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ |
Update of /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18843/MACOSX/Core Modified Files: .DS_Store PandaModule.cpp PandaModule.h moduleloader.cpp moduleloader.hpp pvar.c pvar.h Added Files: loadlib.c loadlib.h Log Message: WIN32 and a lot of new things... Index: pvar.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/pvar.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pvar.h 2 Mar 2004 12:58:57 -0000 1.2 --- pvar.h 23 Apr 2004 14:28:32 -0000 1.3 *************** *** 3,96 **** Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ pvar.h - Panda variables utilities main header ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ --- 3,30 ---- Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003 - 2004, Giovanni Petrantoni. http://xpanda.sf.net/ pvar.h - Panda variables utilities main header ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ Index: moduleloader.cpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/moduleloader.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** moduleloader.cpp 2 Mar 2004 12:58:57 -0000 1.10 --- moduleloader.cpp 23 Apr 2004 14:28:32 -0000 1.11 *************** *** 3,96 **** Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ moduleloader.cpp - main Panda classes ! Panda is under the terms of the Artistic License : ! ! The Artistic License [...1467 lines suppressed...] } --- 2184,2188 ---- if(i->second) { P_AudioUnitRender *au = i->second; ! au->p_StartPoint.push_back(startPoint); } } *************** *** 1833,1837 **** if(i->second) { P_AudioUnitRender *au = i->second; ! au->p_ADC.push_front(adc); } } --- 2193,2197 ---- if(i->second) { P_AudioUnitRender *au = i->second; ! au->p_ADC.push_back(adc); } } --- NEW FILE: loadlib.c --- /* modified another time by Johnny Petrantoni to be used in Panda (core Framework/Library) * * This 'loadlib.c' has been modified by Adrian Perez & Asko Kauppi to * contain native OS X support (without the need of the 'dlcompat' library) * and to allow usage of the dynamic link functions at the C level. * * typedef void* h_LoadLib; * * h_LoadLib loadlib_open( const char* path ); * void loadlib_close( h_LoadLib handle ); * void* loadlib_func( h_LoadLib handle, const char* name ); * const char* loadlib_error( char* buf, size_t bufsize ); * * Defines: * -DUSE_LOADLIB=0 disables the dynamic linkage feature * -DUSE_LOADLIB=1 enabled (default) * -DUSE_LOADLIB=2 link in just functions, not the Lua glue */ #include "loadlib.h" /* ** $Id: loadlib.c,v 1.1 2004/04/23 14:28:32 elementocaotico Exp $ ** Bare-bones dynamic library loader for Lua ** See Copyright Notice in lua.h * * This Lua library exports a single function, called loadlib, which is * called from Lua as loadlib(lib,init), where lib is the full name of the * library to be loaded (including the complete path) and init is the name * of a function to be called after the library is loaded. Typically, this * function will register other functions, thus making the complete library * available to Lua. The init function is *not* automatically called by * loadlib. Instead, loadlib returns the init function as a Lua function * that the client can call when it thinks is appropriate. In the case of * errors, loadlib returns nil and two strings describing the error. * The first string is supplied by the operating system; it should be * informative and useful for error messages. The second string is "open", * "init", or "absent" to identify the error and is meant to be used for * making decisions without having to look into the first string (whose * format is system-dependent). * * This bare-bones loadlib function is supposed to be used as a foundation * for more sophisticated dynamic library loaders, possibly still called * loadlib and probably written in Lua, that will be smart enough to try to * find the library in different directories and also perhaps guess the name * of the init function. * * This module contains an implementation of loadlib for Unix systems that * have dlfcn, an implementation for Windows, and a stub for other systems. * See the list at the end of this file for some links to available * implementations of dlfcn and interfaces to other native dynamic loaders * on top of which loadlib could be implemented. * */ #ifndef USE_LOADLIB #define USE_LOADLIB 1 #endif #ifndef USE_DLOPEN #define USE_DLOPEN 0 #endif /* ======================================================= ** Dynamic linkage (platform specific) ** ======================================================= */ #if USE_LOADLIB /*--------------------- Linux & most Unixes (dlfcn) --------------------*/ #if defined(linux) || defined(sun) || defined(sgi) || defined(BSD) || \ defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi) || \ defined(__OpenBSD__) || USE_DLOPEN #define LOADLIB /* * The dlfcn interface is available in Linux, SunOS, Solaris, IRIX, FreeBSD, * NetBSD, AIX 4.2, HPUX 11, and probably most other Unix flavors, at least * as an emulation layer on top of native functions. */ # include <dlfcn.h> # include <stdlib.h> /* OpenBSD apparently doesn't define RTLD_NOW */ # ifndef RTLD_NOW # define RTLD_NOW RTLD_LAZY # endif h_LoadLib loadlib_open( const char* path ) { return dlopen( path, RTLD_NOW /*|RTLD_LOCAL*/ ); } // why not like that:RTLD_NOW|RTLD_GLOBAL? void loadlib_close( h_LoadLib handle ) { dlclose( handle ); } void* loadlib_func( h_LoadLib handle, const char* name ) { void* result = dlsym( handle, name ); if (result == NULL) { /* a.out systems (e.g. OpenBSD) have another problem where dlsym * requires us to prepend "_" when looking for a symbol. So if our * first attempt failed, try again with a pre-pending "_". */ char* buffer = malloc(strlen(name) + 2); if (buffer == NULL) return NULL; strcpy(buffer, "_"); strcat(buffer, name); result = dlsym(handle, buffer); free(buffer); } return result; } const char* loadlib_error( char* buf, size_t bufsize ) { return dlerror(); } /*--------------------- MS Windows --------------------*/ #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) #define LOADLIB #define WIN32_LEAN_AND_MEAN #include <windows.h> h_LoadLib loadlib_open( const char* path ) { return /*HINSTANCE*/ LoadLibrary(path); } void loadlib_close( h_LoadLib handle ) { FreeLibrary( (HINSTANCE)handle ); } void* loadlib_func( h_LoadLib handle, const char* name ) { return GetProcAddress( handle, name ); } const char* loadlib_error( char* buf, size_t bufsize ) { static char buf2[200]; /* (in case 'buf'==NULL) */ int error= GetLastError(); if ((!buf) || (bufsize<100)) buf= buf2, bufsize= sizeof(buf2); if ( FormatMessage(FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_FROM_SYSTEM, 0, error, 0, buf, bufsize, 0 ) ) return buf; sprintf( buf, "system error %d\n", error ); return buf; } /*--------------------- Apple OS X / Darwin --------------------*/ #elif defined(__APPLE__) && defined(__MACH__) #define LOADLIB /* * Small (and fast) wrapper around the Dyld API to dynamically load * modules. Due to limitations in OSX's public APIs, only modules * with a MH_BUNDLE header can be loaded; you can create one of * these by passing the '-bundle' option to Apple's GCC when linking * the module. * * At this moment, this module loader does nothing more than providing * a clearer API to the obscure one that Dyld includes (splitted over * three different sets of functions, argh!). * * 2003-11-26 AP: Improved now that Apple has published detailed docs * on the Dyld API (previous version is comented out, and was made * by reading the "dyld.h" header and guessing what each funtion * does: it worked, but the new approach is the right one). */ #include <mach-o/dyld.h> #include <string.h> /* strlen() */ #if 0 /* Not needed anymore (see below). */ struct s_LoadLib { NSModule module; NSObjectFileImage image; }; #endif h_LoadLib loadlib_open( const char *path ) { NSObjectFileImageReturnCode ret; NSObjectFileImage nsimg; NSModule nsmod; #if 0 struct s_LoadLib* h; /* Not needed anymore. */ #endif if (!path) return NULL; /* Load image from file: */ ret = NSCreateObjectFileImageFromFile(path, &nsimg); if (ret != NSObjectFileImageSuccess) return NULL; /* Unable to load! */ /* Link into the rest of the executable: */ /* According to Apple's documentation, we can destroy the object image * after linking it: although we instruct Dyld to do that, Dyld will * keep it in memory as long as it is linked in the executable (i.e: * until NSUnLinkModule() is called). * * This way wa can just return the NSModule after releasing the image, * instead of having the s_LoadLib struct (We only need the NSModule * later in order to unload the module). */ nsmod = NSLinkModule(nsimg, path, NSLINKMODULE_OPTION_PRIVATE | NSLINKMODULE_OPTION_RETURN_ON_ERROR); NSDestroyObjectFileImage(nsimg); if (!nsmod) return NULL; /* Unable to link! */ /* Success :) */ #if 0 h = malloc( sizeof(struct s_LoadLib) ); h->image = nsimg; h->module = nsmod; return (h_LoadLib)h; #endif return (h_LoadLib) nsmod; } void loadlib_close( h_LoadLib handle ) { #if 0 /* This is old (and odd), unneeded code. */ struct s_LoadLib* h= (struct s_LoadLib*)handle; NSUnLinkModule(h->module, NSUNLINKMODULE_OPTION_NONE); NSDestroyObjectFileImage(h->image); free(h); #endif NSUnLinkModule((NSModule) handle, NSUNLINKMODULE_OPTION_NONE); } void* loadlib_func( h_LoadLib handle, const char *name ) { #if 0 struct s_LoadLib* h= (struct s_LoadLib*)handle; /* Not needed anymore. */ #endif NSSymbol nss; char real_name[ strlen(name) + 2 ]; /* '_'+name */ real_name[0]='_'; strcpy( real_name+1, name ); #if 0 nss = NSLookupSymbolInModule(h->module, real_name); #endif nss = NSLookupSymbolInModule((NSModule) handle, real_name); return (nss) ? NSAddressOfSymbol(nss) : NULL; } const char* loadlib_error( char* buf, size_t bufsize ) { return "loadlib can't load bundle"; /* no explanations for now */ } /*--------------------- Others.. --------------------*/ #else /* * write an implementation for your system here and send it to us, together * with preprocessing symbols that identify your system. */ #endif /* platforms */ #endif /* USE_LOADLIB */ /* * Here are some links to available implementations of dlfcn and * interfaces to other native dynamic loaders on top of which loadlib * could be implemented. Please send contributions and corrections to us. * * AIX * Starting with AIX 4.2, dlfcn is included in the base OS. * There is also an emulation package available. * http://www.faqs.org/faqs/aix-faq/part4/section-21.html * * HPUX * HPUX 11 has dlfcn. For HPUX 10 use shl_*. * http://www.geda.seul.org/mailinglist/geda-dev37/msg00094.html * http://www.stat.umn.edu/~luke/xls/projects/dlbasics/dlbasics.html * * Macintosh, Windows * http://www.stat.umn.edu/~luke/xls/projects/dlbasics/dlbasics.html * * GLIB has wrapper code for BeOS, OS2, Unix and Windows * http://cvs.gnome.org/lxr/source/glib/gmodule/ * */ Index: .DS_Store =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/.DS_Store,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 Binary files /tmp/cvsarNAaQ and /tmp/cvsFhgeWk differ Index: moduleloader.hpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/moduleloader.hpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** moduleloader.hpp 2 Mar 2004 12:58:57 -0000 1.8 --- moduleloader.hpp 23 Apr 2004 14:28:32 -0000 1.9 *************** *** 3,96 **** Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ moduleloader.hpp - main Panda classes ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ --- 3,30 ---- Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003 - 2004, Giovanni Petrantoni. http://xpanda.sf.net/ moduleloader.hpp - main Panda classes ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ *************** *** 100,104 **** --- 34,45 ---- #include <list> #include <string> + + #ifndef __WIN32__ #include <pthread.h> + #else + + #endif + + #include "loadlib.h" #define TEST PandaLog("TEST\n") *************** *** 133,141 **** InletsBuffers inletsBufferList; float *outletBuffers[256]; ! #ifdef __LINUX__ static void * GetModuleBundle(int moduleID); #else static CFBundleRef GetModuleBundle(int moduleID); #endif char *modName; Metodi functs; --- 74,83 ---- InletsBuffers inletsBufferList; float *outletBuffers[256]; ! #if defined (__LINUX__) || (__WIN32__) static void * GetModuleBundle(int moduleID); #else static CFBundleRef GetModuleBundle(int moduleID); #endif + static void printModuleHELP(char *moduleName); char *modName; Metodi functs; *************** *** 152,156 **** bool isStartPoint; bool isADC; ! #ifdef __LINUX__ void *module; int CreateBundleFromName(char *bundleName, void *theBundle); --- 94,98 ---- bool isStartPoint; bool isADC; ! #if defined (__LINUX__) || (__WIN32__) void *module; int CreateBundleFromName(char *bundleName, void *theBundle); *************** *** 199,207 **** --- 141,156 ---- static int newThread(void *callerData,ThreadFunctionPtr ThreadFunction); static void deleteThread(int ThreadReference); + bool set_thread_priority(int priority); + static bool changePriority(int ThreadReference,int priority); private: void *data; int reference; ThreadFunctionPtr func; + #ifndef __WIN32__ pthread_t loopThread; + #else + HANDLE loopThread; + unsigned long threadid; + #endif bool threadIsOn; static list<Thread*> ThreadsList; *************** *** 212,216 **** AudioRender(char *driverName); ~AudioRender(); ! #ifdef __LINUX__ int CreateBundleFromName(char *bundleName, void *theBundle); #else --- 161,165 ---- AudioRender(char *driverName); ~AudioRender(); ! #if defined (__LINUX__) || (__WIN32__) int CreateBundleFromName(char *bundleName, void *theBundle); #else *************** *** 249,253 **** static AudioRender *theRender; bool status; ! #ifdef __LINUX__ void *driver_bundle; #else --- 198,202 ---- static AudioRender *theRender; bool status; ! #if defined (__LINUX__) || (__WIN32__) void *driver_bundle; #else Index: pvar.c =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/pvar.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pvar.c 2 Mar 2004 12:58:57 -0000 1.2 --- pvar.c 23 Apr 2004 14:28:32 -0000 1.3 *************** *** 3,101 **** Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ pvar.c - Panda variables utilities main code ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ #include "pvar.h" #include <memory.h> ! #ifndef __LINUX__ #include <Carbon/Carbon.h> #endif --- 3,35 ---- Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003 - 2004, Giovanni Petrantoni. http://xpanda.sf.net/ pvar.c - Panda variables utilities main code ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ #include "pvar.h" #include <memory.h> ! #ifdef __APPLE__ #include <Carbon/Carbon.h> #endif Index: PandaModule.cpp =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/PandaModule.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PandaModule.cpp 2 Mar 2004 12:58:57 -0000 1.5 --- PandaModule.cpp 23 Apr 2004 14:28:32 -0000 1.6 *************** *** 3,96 **** Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ PandaModule.cpp - Panda C interface code ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ --- 3,30 ---- Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003 - 2004, Giovanni Petrantoni. http://xpanda.sf.net/ PandaModule.cpp - Panda C interface code ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ *************** *** 102,108 **** int OpenModule(char *name,int argc, char *argv[]) { ids++; ! ModuleLoader *module = new ModuleLoader(name,ids,argc,argv); if(module->IsLoaded()) { ! return ids; } ids--; --- 36,44 ---- int OpenModule(char *name,int argc, char *argv[]) { ids++; ! int newID = ids; ! char **p_argv = argv; ! ModuleLoader *module = new ModuleLoader(name,ids,argc,argc>0 ? p_argv : NULL); if(module->IsLoaded()) { ! return newID; } ids--; *************** *** 171,175 **** void InitAudioEngine(float sampleRate,long bufferSize,int inChannels, int outChannels, char *device) { ! if(audioEng==NULL) audioEng = new AudioRender("AUHAL"); Var param; param.varType = FLOAT_T; --- 107,120 ---- void InitAudioEngine(float sampleRate,long bufferSize,int inChannels, int outChannels, char *device) { ! #ifdef __APPLE__ ! if(audioEng==NULL) audioEng = new AudioRender("coreaudio"); ! #elif __WIN32__ ! if(audioEng==NULL) audioEng = new AudioRender("portaudio"); ! #elif __LINUX__ ! if(audioEng==NULL) audioEng = new AudioRender("Jack"); ! #else ! PandaLog("There is no default \"Panda Driver\" for this platform\n"); ! return; ! #endif Var param; param.varType = FLOAT_T; *************** *** 225,236 **** } ! int AudioEngineSetParameter(int parameter,Var *inValues) { if(!audioEng) return FALSE; ! return audioEng->setParameter(parameter,inValues); } ! int AudioEngineGetParameter(int parameter,Var *outValues) { if(!audioEng) return FALSE; ! return audioEng->getParameter(parameter,outValues); } --- 170,183 ---- } ! int AudioEngineSetParameter(int parameter,void *inValues) { ! Var *var = (Var*)inValues; if(!audioEng) return FALSE; ! return audioEng->setParameter(parameter,var); } ! int AudioEngineGetParameter(int parameter,void *outValues) { ! Var *var = (Var*)outValues; if(!audioEng) return FALSE; ! return audioEng->getParameter(parameter,var); } *************** *** 270,273 **** --- 217,224 ---- } + void HELPME(char *moduleName) { + ModuleLoader::printModuleHELP(moduleName); + } + int _savePandaStatusToFile(const char *fileName) { return Connection::savePandaStatusToFile(fileName); *************** *** 312,320 **** void changeModulesSearchDirectory(char *newDirectory) { ! changeDefaultModDirAndExt(newDirectory,NULL); } void changeModulesBundleExtension(char *newExtension) { ! changeDefaultModDirAndExt(NULL,newExtension); } --- 263,285 ---- void changeModulesSearchDirectory(char *newDirectory) { ! if(!newDirectory && ModuleLoader::s_modules_directory) { ! free(ModuleLoader::s_modules_directory); ! ModuleLoader::s_modules_directory = NULL; ! } else if(newDirectory && !ModuleLoader::s_modules_directory) { ! long len = strlen(newDirectory); ! ModuleLoader::s_modules_directory = (char*)calloc(len+2,sizeof(char)); ! strcpy(ModuleLoader::s_modules_directory,newDirectory); ! } } void changeModulesBundleExtension(char *newExtension) { ! if(!newExtension && ModuleLoader::s_modules_extension) { ! free(ModuleLoader::s_modules_extension); ! ModuleLoader::s_modules_extension = NULL; ! } else if(newExtension && !ModuleLoader::s_modules_extension) { ! long len = strlen(newExtension); ! ModuleLoader::s_modules_extension = (char*)calloc(len+2,sizeof(char)); ! strcpy(ModuleLoader::s_modules_extension,newExtension); ! } } --- NEW FILE: loadlib.h --- /*--- * Loadlib functions: * * This header is only needed by external dynamic linkage packages (s.a. gluax) * that need C-level access to the portability functions of 'loadlib.c'. * * This could be merged into 'lualib.h'. */ #ifndef LOADLIB_H #define LOADLIB_H #include <stddef.h> /* size_t */ typedef void* h_LoadLib; /* If you want to expose the loadlib_open() and other functions, then * do something like -DLOADLIB_API=LUALIB_API * Otherwise those API's are not exposed. */ #ifdef __cplusplus extern "C" { #endif h_LoadLib loadlib_open( const char* path ); void loadlib_close( h_LoadLib handle ); void* loadlib_func( h_LoadLib handle, const char* name ); const char* loadlib_error( char* buf, size_t bufsize ); #ifdef __cplusplus } #endif #endif /* LOADLIB_H */ Index: PandaModule.h =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/PandaModule.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** PandaModule.h 2 Mar 2004 12:58:57 -0000 1.6 --- PandaModule.h 23 Apr 2004 14:28:32 -0000 1.7 *************** *** 3,96 **** Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003, Giovanni Petrantoni. http://xpanda.sf.net/ PandaModule.h - Panda C interface header ! Panda is under the terms of the Artistic License : ! ! The Artistic License ! ! Preamble ! ! The intent of this document is to state the conditions under which a Package may be copied, ! such that the Copyright Holder maintains some semblance of artistic control over the development of the package, ! while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, ! plus the right to make reasonable modifications. ! ! Definitions: ! ! "Package" refers to the collection of files distributed by the Copyright Holder, ! and derivatives of that collection of files created through textual modification. ! ! "Standard Version" refers to such a Package if it has not been modified, ! or has been modified in accordance with the wishes of the Copyright Holder. ! ! "Copyright Holder" is whoever is named in the copyright or copyrights for the package. ! ! "You" is you, if you're thinking about copying or distributing this Package. ! ! "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, ! time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, ! but only to the computing community at large as a market that must bear the fee.) ! ! "Freely Available" means that no fee is charged for the item itself, ! though there may be fees involved in handling the item. ! It also means that recipients of the item may redistribute it under the same conditions they received it. ! ! 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, ! provided that you duplicate all of the original copyright notices and associated disclaimers. ! ! 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. ! A Package modified in such a way shall still be considered the Standard Version. ! ! 3. You may otherwise modify your copy of this Package in any way, ! provided that you insert a prominent notice in each changed file stating how and when you changed that file, ! and provided that you do at least ONE of the following: ! ! a) place your modifications in the Public Domain or otherwise make them Freely Available, ! such as by posting said modifications to Usenet or an equivalent medium, ! or placing the modifications on a major archive site such as ftp.uu.net, ! or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. ! ! b) use the modified Package only within your corporation or organization. ! ! c) rename any non-standard executables so the names do not conflict with standard executables, ! which must also be provided, and provide a separate manual page for each non-standard executable ! that clearly documents how it differs from the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 4. You may distribute the programs of this Package in object code or executable form, ! provided that you do at least ONE of the following: ! ! a) distribute a Standard Version of the executables and library files, ! together with instructions (in the manual page or equivalent) on where to get the Standard Version. ! ! b) accompany the distribution with the machine-readable source of the Package with your modifications. ! ! c) accompany any non-standard executables with their corresponding Standard Version executables, ! giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), ! together with instructions on where to get the Standard Version. ! ! d) make other distribution arrangements with the Copyright Holder. ! ! 5. You may charge a reasonable copying fee for any distribution of this Package. ! You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. ! However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of ! a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. ! ! 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically ! fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. ! ! 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. - 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. ! 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, ! INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. - The End. */ --- 3,30 ---- Panda - A modular programming language. written by Giovanni Petrantoni. ! Copyright (c) 2003 - 2004, Giovanni Petrantoni. http://xpanda.sf.net/ PandaModule.h - Panda C interface header ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + elementicaotici - by Johnny (Giovanni) Petrantoni, ITALY - Rome. + e-mail: jo...@la... + */ *************** *** 129,135 **** int AudioEngineSelect(char *audioEngineName); ! int AudioEngineSetParameter(int parameter,Var *inValues); ! int AudioEngineGetParameter(int parameter,Var *outValues); DriverParamList AudioEngineGetParametersList(); --- 63,69 ---- int AudioEngineSelect(char *audioEngineName); ! int AudioEngineSetParameter(int parameter,void *inValues); ! int AudioEngineGetParameter(int parameter,void *outValues); DriverParamList AudioEngineGetParametersList(); *************** *** 145,148 **** --- 79,84 ---- void HELP(int ID); + void HELPME(char *moduleName); + int _savePandaStatusToFile(const char *fileName); |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:28:42
|
Update of /cvsroot/xpanda/Panda/Framework-Library/WIN32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18843/WIN32 Added Files: compile-mingw.sh Log Message: WIN32 and a lot of new things... --- NEW FILE: compile-mingw.sh --- echo "required libs:c , stdc++" gcc -c -O2 -D__WIN32__=1 -I../MACOSX/Headers/ -o moduleloader.o ../MACOSX/Core/moduleloader.cpp gcc -c -O2 -D__WIN32__=1 -I../MACOSX/Headers/ -o PandaModule.o ../MACOSX/Core/PandaModule.cpp gcc -c -O2 -D__WIN32__=1 -I../MACOSX/Headers/ -o pvar.o ../MACOSX/Core/pvar.c gcc -c -O2 -D__WIN32__=1 -I../MACOSX/Headers/ -o loadlib.o ../MACOSX/Core/loadlib.c -o loadlib.o gcc -shared moduleloader.o PandaModule.o pvar.o loadlib.o -lstdc++ -o panda.dll rm -f *.o echo "done. check if there are errors" |
|
From: Johnny P. <ele...@us...> - 2004-04-23 14:28:42
|
Update of /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/PandaModule.xcode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18843/MACOSX/Core/PandaModule.xcode Modified Files: johnny.pbxuser project.pbxproj Log Message: WIN32 and a lot of new things... Index: project.pbxproj =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/PandaModule.xcode/project.pbxproj,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** project.pbxproj 15 Feb 2004 23:13:39 -0000 1.8 --- project.pbxproj 23 Apr 2004 14:28:33 -0000 1.9 *************** *** 80,83 **** --- 80,84 ---- 08FB7794FE84155DC02AAC07 = { children = ( + B2EB53AC061C21BD0031A1C1, B26F73E0053AE8DC005CBB65, B26F73DF053AE8AE005CBB65, *************** *** 269,272 **** --- 270,311 ---- sourceTree = "<absolute>"; }; + B2EB53AC061C21BD0031A1C1 = { + children = ( + B2EB53B2061C21D00031A1C1, + B2EB53B3061C21D00031A1C1, + ); + isa = PBXGroup; + name = dll; + refType = 4; + sourceTree = "<group>"; + }; + B2EB53B2061C21D00031A1C1 = { + fileEncoding = 30; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.c; + path = loadlib.c; + refType = 4; + sourceTree = "<group>"; + }; + B2EB53B3061C21D00031A1C1 = { + fileEncoding = 30; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.h; + path = loadlib.h; + refType = 4; + sourceTree = "<group>"; + }; + B2EB53B4061C21D00031A1C1 = { + fileRef = B2EB53B2061C21D00031A1C1; + isa = PBXBuildFile; + settings = { + }; + }; + B2EB53B5061C21D00031A1C1 = { + fileRef = B2EB53B3061C21D00031A1C1; + isa = PBXBuildFile; + settings = { + }; + }; B2F0975805DADDBA00784969 = { fileEncoding = 4; *************** *** 329,332 **** --- 368,372 ---- B2E2A3F7054AED9C006258E6, B2F0975905DADDBA00784969, + B2EB53B5061C21D00031A1C1, ); isa = PBXHeadersBuildPhase; *************** *** 346,349 **** --- 386,390 ---- B2F5884C054AE24600B9CF24, B2E2A3F8054AED9D006258E6, + B2EB53B4061C21D00031A1C1, ); isa = PBXSourcesBuildPhase; *************** *** 381,384 **** --- 422,426 ---- LIBRARY_SEARCH_PATHS = /usr/lib/gcc/darwin/3.1; OPTIMIZATION_CFLAGS = "-O3"; + OTHER_CFLAGS = "-Wno-long-double"; OTHER_LDFLAGS = ""; OTHER_LIBTOOL_FLAGS = ""; *************** *** 394,398 **** isa = PBXFrameworkTarget; name = Panda; - productInstallPath = "$(LOCAL_LIBRARY_DIR)/Frameworks"; productName = Panda; productReference = B2F58844054AE23800B9CF24; --- 436,439 ---- Index: johnny.pbxuser =================================================================== RCS file: /cvsroot/xpanda/Panda/Framework-Library/MACOSX/Core/PandaModule.xcode/johnny.pbxuser,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** johnny.pbxuser 2 Mar 2004 12:58:57 -0000 1.11 --- johnny.pbxuser 23 Apr 2004 14:28:32 -0000 1.12 *************** *** 42,48 **** PBXFileTableDataSourceColumnWidthsKey = ( 20, ! 891, 20, ! 156, 43, 43, --- 42,48 ---- PBXFileTableDataSourceColumnWidthsKey = ( 20, [...1495 lines suppressed...] ! vrLoc = 0; }; B2EED3C405D65A060003CEF2 = { *************** *** 1907,1913 **** B2F0975805DADDBA00784969 = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1197, 2071}}"; ! sepNavSelRange = "{893, 16}"; ! sepNavVisRect = "{{0, 1371}, {1197, 700}}"; }; }; --- 2068,2074 ---- B2F0975805DADDBA00784969 = { uiCtxt = { ! sepNavIntBoundsRect = "{{0, 0}, {1141, 1147}}"; ! sepNavSelRange = "{105, 11}"; ! sepNavVisRect = "{{0, 0}, {1141, 764}}"; }; }; |