Home | History | Annotate | Download | only in lib

Lines Matching refs:vdef

163  *   shortcut : vdef
792 const picoos_char * voiceName, picorsrc_VoiceDefinition * vdef)
804 *vdef = v;
817 picorsrc_VoiceDefinition vdef;
823 if ((PICO_OK == findVoiceDefinition(this,voiceName,&vdef)) && (NULL != vdef)) {
824 if (PICO_MAX_NUM_RSRC_PER_VOICE <= vdef->numResources) {
827 if (picoos_strlcpy(vdef->resourceName[vdef->numResources++], resourceName,
829 PICODBG_DEBUG(("vdef added resource '%s' to voice '%s'",resourceName,voiceName));
845 picorsrc_VoiceDefinition vdef;
851 if ((PICO_OK == findVoiceDefinition(this,voiceName,&vdef)) && (NULL != vdef)) {
860 vdef = picorsrc_newVoiceDefinition(this->common->mm);
862 vdef = this->freeVdefs;
863 this->freeVdefs = vdef->next;
864 vdef->voiceName[0] = NULLC;
865 vdef->numResources = 0;
866 vdef->next = NULL;
868 if (NULL == vdef) {
871 if (picoos_strlcpy(vdef->voiceName, voiceName,
873 vdef->next = this->vdefs;
874 this->vdefs = vdef;
879 PICODBG_DEBUG(("vdef created (%s)",voiceName));
931 picorsrc_VoiceDefinition vdef;
951 if (!(PICO_OK == findVoiceDefinition(this,voiceName,&vdef)) || (NULL == vdef)) {
959 for (i = 0; i < vdef->numResources; i++) {
960 required = (NULLC != vdef->resourceName[i][0]);
961 if (required && !isResourceLoaded(this,vdef->resourceName[i])) {
963 return picoos_emRaiseException(this->common->em,PICO_EXC_RESOURCE_MISSING,NULL,(picoos_char *)"resource %s for voice %s",vdef->resourceName[i],voiceName);
981 for (i = 0; i < vdef->numResources; i++) {
982 vdef->resourceName[i][0]);
984 findResource(this,vdef->resourceName[i],&rsrc);