libcm is a C development framework with an emphasis on audio signal processing applications.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

cmDspSys.h 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. #ifndef cmDspSys_h
  2. #define cmDspSys_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. extern cmDspSysH_t cmDspNullHandle;
  7. // Print labels of the form 'label'-xxx. Where xxx is an integer.
  8. // The total length of the label must be <=127 or it will be truncated.
  9. // The returned string is kept in static memory and therefore will be
  10. // rewritten by the next call to this function. This makes the function
  11. // inherently useless if called by multiple threads.
  12. const cmChar_t* cmDspSysPrintLabel( const cmChar_t* label, unsigned i );
  13. const cmChar_t* cmDspSysPrintLabel2( const cmChar_t* label, unsigned i );
  14. //----------------------------------------------------------------------------------------------------
  15. // Control Functions
  16. //
  17. cmDspRC_t cmDspSysInitialize( cmCtx_t* ctx, cmDspSysH_t* hp, cmUdpNetH_t netH );
  18. cmDspRC_t cmDspSysFinalize( cmDspSysH_t* hp );
  19. bool cmDspSysIsValid( cmDspSysH_t h );
  20. cmDspRC_t cmDspSysLastRC( cmDspSysH_t h );
  21. unsigned cmDspSysPgmCount( cmDspSysH_t h );
  22. const cmChar_t* cmDspPgmLabel( cmDspSysH_t h, unsigned pgmIdx );
  23. // Load a DSP program.
  24. cmDspRC_t cmDspSysLoad( cmDspSysH_t h, cmAudioSysCtx_t* asCtx, unsigned pgmIdx );
  25. // Unload the previously loaded DSP program
  26. cmDspRC_t cmDspSysUnload( cmDspSysH_t h );
  27. // Call 'reset' on each of the DSP processer instances in the current program.
  28. cmDspRC_t cmDspSysReset( cmDspSysH_t h );
  29. // Called by the audioSystem to send messages to the DSP system during runtime.
  30. cmDspRC_t cmDspSysRcvMsg( cmDspSysH_t h, cmAudioSysCtx_t* asCtx, const void* msgPtr, unsigned msgByteCnt, unsigned srcNetNodeId );
  31. enum { kSyncPreDspId, kSyncPendingDspId, kSyncSuccessDspId, kSyncFailDspId };
  32. unsigned cmDspSysSyncState( cmDspSysH_t h );
  33. // Print the loaded program (instances and connections) to a JSON file.
  34. cmDspRC_t cmDspSysPrintPgm( cmDspSysH_t h, const cmChar_t* outFn );
  35. //----------------------------------------------------------------------------------------------------
  36. // Preset function:
  37. //
  38. // A 'preset group' identifies a collection of 'preset's. The group id allows
  39. // a particular preset instance to be restored to the same place from which it was formed.
  40. unsigned cmDspSysPresetGroupCount( cmDspSysH_t h );
  41. unsigned cmDspSysPresetGroupSymId( cmDspSysH_t h, unsigned groupIdx );
  42. const cmChar_t* cmDspSysPresetGroupLabel( cmDspSysH_t h, unsigned groupIdx );
  43. cmDspRC_t cmDspSysPresetGroupJsonList( cmDspSysH_t h, cmJsonH_t* jsHPtr );
  44. // A 'preset' is a collection of stored DSP instances and their variables. A preset belongs
  45. // to a group. A given group may have multiple presets. Each preset represents a saved
  46. // instance/var state.
  47. unsigned cmDspSysPresetPresetCount( cmDspSysH_t h, unsigned groupIdx );
  48. unsigned cmDspSysPresetPresetSymId( cmDspSysH_t h, unsigned groupIdx, unsigned presetIdx );
  49. const cmChar_t* cmDspSysPresetPresetLabel( cmDspSysH_t h, unsigned groupIdx, unsigned presetIdx );
  50. cmDspRC_t cmDspSysPresetPresetJsonList(cmDspSysH_t h, unsigned groupSymId, cmJsonH_t* jsHPtr );
  51. // This function returns a preset group id from a string label.
  52. unsigned cmDspSysPresetRegisterGroup( cmDspSysH_t h, const cmChar_t* groupLabel );
  53. // Create a preset named 'presetLabel' in the group named 'groupLabel'. If the group does not
  54. // exist it will be created. The creation will fail if the 'presetLabel' already exists.
  55. // This function calls the 'storeFunc' on every DSP instance belonging to the group
  56. // identified by 'groupLabel'.
  57. cmDspRC_t cmDspSysPresetCreate( cmDspSysH_t h, const cmChar_t* groupLabel, const cmChar_t* presetLabel );
  58. // Apply the stored preset named by 'groupLabel' and 'presetLabel'.
  59. cmDspRC_t cmDspSysPresetRecall( cmDspSysH_t h, const cmChar_t* groupLabel, const cmChar_t* presetLabel );
  60. // Helper functions used by DSP instances to read and write preset variable values. These functions
  61. // are called from inside the user defined DSP instance 'storeFunc'.
  62. cmDspRC_t cmDspSysPresetWriteValue( cmDspSysH_t h, unsigned varSymId, const cmDspValue_t* valPtr );
  63. cmDspRC_t cmDspSysPresetReadValue( cmDspSysH_t h, unsigned varSymId, cmDspValue_t* valPtr );
  64. //----------------------------------------------------------------------------------------------------
  65. // Generic constructors
  66. //
  67. // Allocate single DSP instances.
  68. cmDspInst_t* cmDspSysAllocInstSV( cmDspSysH_t h, const cmChar_t* classLabelStr, unsigned presetGroupSymId, const cmChar_t* instLabelStr, unsigned va_cnt, va_list vl );
  69. cmDspInst_t* cmDspSysAllocInstS( cmDspSysH_t h, const cmChar_t* classLabelStr, unsigned presetGroupSymId, const cmChar_t* instLabelStr, unsigned va_cnt, ... );
  70. cmDspInst_t* cmDspSysAllocInst( cmDspSysH_t h, const cmChar_t* classLabelStr, const cmChar_t* instLabelStr, unsigned va_cnt, ... );
  71. typedef const cmChar_t* (*cmDspSysLabelFunc_t)( cmDspSysH_t h, unsigned i );
  72. // Allocate arrays of DSP instances. The memory used by the array is allocated from
  73. // the cmDspSys linked heap and is therefore automatically garbage collected.
  74. cmDspInst_t** cmDspSysAllocInstArraySV( cmDspSysH_t h, unsigned cnt, unsigned presetGroupSymId, const cmChar_t* classLabelStr, const cmChar_t* instLabelStr, cmDspSysLabelFunc_t labelFunc, unsigned va_cnt, va_list vl );
  75. cmDspInst_t** cmDspSysAllocInstArrayS( cmDspSysH_t h, unsigned cnt, unsigned presetGroupSymId, const cmChar_t* classLabelStr, const cmChar_t* instLabelStr, cmDspSysLabelFunc_t labelFunc, unsigned va_cnt, ... );
  76. cmDspInst_t** cmDspSysAllocInstArray( cmDspSysH_t h, unsigned cnt, const cmChar_t* classLabelStr, const cmChar_t* instLabelStr, cmDspSysLabelFunc_t labelFunc, unsigned va_cnt, ... );
  77. cmDspRC_t cmDspSysNewColumn( cmDspSysH_t h, unsigned colW );
  78. cmDspRC_t cmDspSysInsertHorzBorder( cmDspSysH_t h );
  79. cmDspRC_t cmDspSysNewPage( cmDspSysH_t h, const cmChar_t* title );
  80. //----------------------------------------------------------------------------------------------------
  81. // Connection Functions.
  82. //
  83. cmDspRC_t cmDspSysConnectAudio( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarLbl, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarLbl );
  84. cmDspRC_t cmDspSysConnectAudioN11N( cmDspSysH_t h, cmDspInst_t* srcInstArray[], const cmChar_t* srcVarLabel, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarPrefixStr, unsigned n );
  85. cmDspRC_t cmDspSysConnectAudio1NN1( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarPrefixStr, cmDspInst_t* dstInstArray[], const cmChar_t* dstVarLabel, unsigned n );
  86. cmDspRC_t cmDspSysConnectAudio1N1N( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarPrefixStr, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarPrefixLabel, unsigned n );
  87. cmDspRC_t cmDspSysConnectAudioN1N1( cmDspSysH_t h, cmDspInst_t* srcInstArray[], const cmChar_t* srcVarLabel, cmDspInst_t* dstInstArray[], const cmChar_t* dstVarLabel, unsigned n );
  88. cmDspRC_t cmDspSysConnectAudio11N1( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarLabel, cmDspInst_t* dstInstPArray[],const cmChar_t* dstVarPrefixStr, unsigned n );
  89. cmDspRC_t cmDspSysConnectAudio111N( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarLabel, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarLabel, unsigned n );
  90. // Connect srcInstArray[ map[i] ] to dstInst.in[i] - map[dstCnt] therefore contains dstCnt elements
  91. cmDspRC_t cmDspSysConnectAudioN11NM( cmDspSysH_t h, cmDspInst_t* srcInstArray[], const cmChar_t* srcVarLabel, unsigned srcCnt, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarPrefixStr, unsigned dstCnt, const unsigned* map );
  92. cmDspRC_t cmDspSysInstallCb( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarLabel, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarLabel, void* dstCbDataPtr);
  93. cmDspRC_t cmDspSysInstallCbN11N( cmDspSysH_t h, cmDspInst_t* srcInstArray[], const cmChar_t* srcVarLabel, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarPrefixStr, unsigned n );
  94. cmDspRC_t cmDspSysInstallCb1NN1( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarPrefixStr, cmDspInst_t* dstInstArray[], const cmChar_t* dstVarLabel, unsigned n );
  95. cmDspRC_t cmDspSysInstallCb1N1N( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarPrefixStr, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarPrefixLabel, unsigned n );
  96. cmDspRC_t cmDspSysInstallCbN1N1( cmDspSysH_t h, cmDspInst_t* srcInstArray[], const cmChar_t* srcVarLabel, cmDspInst_t* dstInstArray[], const cmChar_t* dstVarLabel, unsigned n );
  97. cmDspRC_t cmDspSysInstallCb11N1( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarLabel, cmDspInst_t* dstInstArray[], const cmChar_t* dstVarLabel, unsigned n );
  98. cmDspRC_t cmDspSysInstallCb111N( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarLabel, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarPrefixLabel, unsigned n );
  99. cmDspRC_t cmDspSysInstallCbN111( cmDspSysH_t h, cmDspInst_t* srcInstArray[], const cmChar_t* srcVarLabel, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarLabel, unsigned n );
  100. cmDspRC_t cmDspSysInstallCb1N11( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarPrefixStr, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarLabel, unsigned n );
  101. cmDspRC_t cmDspSysInstallCb1N1NM( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarPrefixStr, unsigned srcCnt, cmDspInst_t* dstInstPtr, const cmChar_t* dstVarPrefixLabel, unsigned dstCnt, const unsigned* map );
  102. cmDspRC_t cmDspSysInstallCb1NN1M( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarPrefixStr, unsigned srcCnt, cmDspInst_t* dstInstArray[], const cmChar_t* dstVarLabel, unsigned dstCnt, const unsigned* map );
  103. cmDspRC_t cmDspSysInstallCb1NN1M2(cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarPrefixStr, unsigned srcCnt, const unsigned* map, cmDspInst_t* dstInstArray[], const cmChar_t* dstVarLabel, unsigned dstCnt );
  104. cmDspRC_t cmDspSysInstallNetCb( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarLabel, const cmChar_t* dstNetNodeLabel, const cmChar_t* dstInstLabel, const cmChar_t* dstVarLabel );
  105. cmDspRC_t cmDspSysInstallNetCb1N1N( cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarPrefixStr, const cmChar_t* dstNetNodeLabel, const cmChar_t* dstInstLabel, const cmChar_t* dstVarPrefixStr, unsigned dstOffs, unsigned n );
  106. cmDspRC_t cmDspSysInstallNetCb1N1NM(cmDspSysH_t h, cmDspInst_t* srcInstPtr, const cmChar_t* srcVarPrefixStr, unsigned srcCnt, const cmChar_t* dstNetNodeLabel, const cmChar_t* dstInstLabel, const cmChar_t* dstVarPrefixStr, unsigned dstCnt, const unsigned* map );
  107. //----------------------------------------------------------------------------------------------------
  108. // cmDspSysH_t Accessor Functions
  109. //
  110. double cmDspSysSampleRate( cmDspSysH_t h );
  111. cmJsonH_t cmDspSysPgmRsrcHandle( cmDspSysH_t h );
  112. cmSymTblH_t cmDspSysSymbolTable( cmDspSysH_t h );
  113. unsigned cmDspSysRegisterStaticSymbol( cmDspSysH_t h, const cmChar_t* symLabel );
  114. unsigned cmDspSysRegisterSymbol( cmDspSysH_t h, const cmChar_t* symLabel );
  115. cmCtx_t* cmDspSysPgmCtx( cmDspSysH_t h );
  116. cmLHeapH_t cmDspSysLHeap( cmDspSysH_t h );
  117. unsigned cmDspSysNetNodeId( cmDspSysH_t h );
  118. const cmChar_t* cmDspSysNetNodeLabel( cmDspSysH_t h );
  119. const cmChar_t* cmDspSysNetNodeIdToLabel( cmDspSysH_t h, unsigned netNodeId );
  120. unsigned cmDspSysNetNodeLabelToId( cmDspSysH_t h, const cmChar_t* netNodeLabel );
  121. //----------------------------------------------------------------------------------------------------
  122. // Attribute Symbol assignment and value broadcasing
  123. //
  124. // Each DSP instance can be tagged with an arbitrary number of 'attribute' symbols.
  125. // The primary use of an attribute symbol is to identify targets of
  126. // messages sent via the cmDspSysBroadcastValue() call.
  127. // This function declares an active attribute symbol which will be assigned to all DSP
  128. // instances which are created after the function is called and before
  129. // cmDspSysRemoveInstAttrSymbol(). Multiple attribute symbols may be made active
  130. // in this way - in which case all active attribute symbols will be assigned to any
  131. // DSP instances created during their life time.
  132. // Return symId or cmInvalidId on failure.
  133. unsigned cmDspSysRegisterInstAttrSymbol( cmDspSysH_t h, unsigned symId );
  134. unsigned cmDspSysRegisterInstAttrSymbolStr( cmDspSysH_t h, const cmChar_t* symLabel );
  135. // Assign a instance attribute symbol to a DSP instance.
  136. cmDspRC_t cmDspSysAssignInstAttrSymbol( cmDspSysH_t h, cmDspInst_t* inst, unsigned symId );
  137. // Return cmInvalidId on error otherwise returns the symbol id associated with symLabel.
  138. unsigned cmDspSysAssignInstAttrSymbolStr( cmDspSysH_t h, cmDspInst_t* inst, const cmChar_t* symLabel );
  139. // Remove a previously registered attribute symbol.
  140. cmDspRC_t cmDspSysRemoveInstAttrSymbol( cmDspSysH_t h, unsigned symId );
  141. cmDspRC_t cmDspSysRemoveInstAttrSymbolStr( cmDspSysH_t h, const cmChar_t* symLabel );
  142. // Send a value to every DSP instance tagged with the attribute symbol
  143. // 'instAttrSymId'.
  144. // Set instAttrSymId to cmInvalidId to send to all instances
  145. cmDspRC_t cmDspSysBroadcastValue( cmDspSysH_t h, unsigned instAttrSymId, const cmDspValue_t* valuePtr );
  146. //----------------------------------------------------------------------------------------------------
  147. // Specialized Constructors:
  148. //
  149. // align: kRightAlignDuiId, kLeftAlignDuiId, kCenterAlignDuiId
  150. cmDspInst_t* cmDspSysAllocLabel( cmDspSysH_t h, const cmChar_t* label, unsigned alignId );
  151. cmDspInst_t* cmDspSysAllocScalar( cmDspSysH_t h, const cmChar_t* label, cmReal_t min, cmReal_t max, cmReal_t step, cmReal_t val );
  152. cmDspInst_t* cmDspSysAllocScalarP( cmDspSysH_t h, unsigned presetGroupSymId, const cmChar_t* prefixLabel, const cmChar_t* label, cmReal_t min, cmReal_t max, cmReal_t step, cmReal_t val );
  153. cmDspInst_t* cmDspSysAllocScalarRsrc( cmDspSysH_t h, const cmChar_t* label, cmReal_t min, cmReal_t max, cmReal_t step, const cmChar_t* rsrcPath );
  154. cmDspInst_t** cmDspSysAllocScalarA( cmDspSysH_t h, unsigned cnt, unsigned presetGroupSymId, const cmChar_t* prefixLabel, const cmChar_t* label, cmReal_t min, cmReal_t max, cmReal_t step, cmReal_t val );
  155. cmDspInst_t* cmDspSysAllocButton( cmDspSysH_t h, const cmChar_t* label, cmReal_t val );
  156. cmDspInst_t* cmDspSysAllocButtonP( cmDspSysH_t h, const cmChar_t* prefixLabel, const cmChar_t* label, cmReal_t val );
  157. cmDspInst_t* cmDspSysAllocButtonRsrc( cmDspSysH_t h, const cmChar_t* label, const cmChar_t* rsrcPath );
  158. cmDspInst_t* cmDspSysAllocCheck( cmDspSysH_t h, const cmChar_t* label, cmReal_t val );
  159. cmDspInst_t* cmDspSysAllocCheckP( cmDspSysH_t h, unsigned presetGroupSymId, const cmChar_t* prefixLabel, const cmChar_t* label, cmReal_t val );
  160. cmDspInst_t* cmDspSysAllocCheckRsrc( cmDspSysH_t h, const cmChar_t* label, const cmChar_t* rsrcPath );
  161. // If 'fn' is NULL then the DSP rsrc tree is used to locate the resource.
  162. // The resource named by 'rsrcLabel' may be any place in the resource tree.
  163. cmDspInst_t* cmDspSysAllocMsgList( cmDspSysH_t h, const cmChar_t* fn, const cmChar_t* rsrcLabel, unsigned initSelIdx );
  164. cmDspInst_t* cmDspSysAllocMsgListP( cmDspSysH_t h, unsigned presetGroupSymId, const cmChar_t* preLabel, const cmChar_t* label, const cmChar_t* fn, const cmChar_t* rsrcLabel, unsigned initSelIdx );
  165. cmDspInst_t* cmDspSysAllocAudioIn( cmDspSysH_t h, unsigned chIdx, cmReal_t gain );
  166. // Set chMapRsrcLabel to NULL to use the rsrc named 'audioInMap'.
  167. // *retChCntPtr is set to the count of audio channels created (and the count of channels in the map).
  168. cmDspInst_t** cmDspSysAllocAudioInAR( cmDspSysH_t h, const cmChar_t* chMapRsrcLabel, cmReal_t gain, unsigned* retChCntPtr );
  169. cmDspInst_t* cmDspSysAllocAudioOut( cmDspSysH_t h, unsigned chIdx, cmReal_t gain );
  170. // Set chMapRsrcLabel to NULL to use the rsrc named 'audioOutMap'.
  171. // *retChCntPtr is set to the count of audio channels created (and the count of channels in the map).
  172. cmDspInst_t** cmDspSysAllocAudioOutAR( cmDspSysH_t h, const cmChar_t* chMapRsrcLabel, cmReal_t gain, unsigned* retChCntPtr );
  173. //----------------------------------------------------------------------------------------------------
  174. // Read resource values from the program resource file.
  175. //
  176. cmDspRC_t cmDspRsrcBoolV( cmDspSysH_t h, bool* vp, va_list vl );
  177. cmDspRC_t cmDspRsrcIntV( cmDspSysH_t h, int* vp, va_list vl );
  178. cmDspRC_t cmDspRsrcUIntV( cmDspSysH_t h, unsigned* vp, va_list vl );
  179. cmDspRC_t cmDspRsrcDblV( cmDspSysH_t h, double* vp, va_list vl );
  180. cmDspRC_t cmDspRsrcRealV( cmDspSysH_t h, cmReal_t* vp, va_list vl );
  181. cmDspRC_t cmDspRsrcStringV( cmDspSysH_t h, const cmChar_t** vp, va_list vl );
  182. cmDspRC_t cmDspRsrcArrayCountV( cmDspSysH_t h, unsigned* np, va_list vl );
  183. cmDspRC_t cmDspRsrcBoolArrayV( cmDspSysH_t h, unsigned* np, bool** vpp, va_list vl );
  184. cmDspRC_t cmDspRsrcIntArrayV( cmDspSysH_t h, unsigned* np, int** vpp, va_list vl );
  185. cmDspRC_t cmDspRsrcUIntArrayV( cmDspSysH_t h, unsigned* np, unsigned** vpp, va_list vl );
  186. cmDspRC_t cmDspRsrcDblArrayV( cmDspSysH_t h, unsigned* np, double** vpp, va_list vl );
  187. cmDspRC_t cmDspRsrcRealArrayV( cmDspSysH_t h, unsigned* np, cmReal_t** vpp, va_list vl );
  188. cmDspRC_t cmDspRsrcStringArrayV(cmDspSysH_t h, unsigned* np, const cmChar_t*** vpp, va_list vl );
  189. cmDspRC_t cmDspRsrcInt( cmDspSysH_t h, int* vp, ... );
  190. cmDspRC_t cmDspRsrcBool( cmDspSysH_t h, bool* vp, ... );
  191. cmDspRC_t cmDspRsrcUInt( cmDspSysH_t h, unsigned* vp, ... );
  192. cmDspRC_t cmDspRsrcDbl( cmDspSysH_t h, double* vp, ... );
  193. cmDspRC_t cmDspRsrcReal( cmDspSysH_t h, cmReal_t* vp, ... );
  194. cmDspRC_t cmDspRsrcString( cmDspSysH_t h, const cmChar_t** vp, ... );
  195. cmDspRC_t cmDspRsrcArrayCount( cmDspSysH_t h, unsigned* np, ... );
  196. cmDspRC_t cmDspRsrcBoolArray( cmDspSysH_t h, unsigned* np, bool** vpp, ... );
  197. cmDspRC_t cmDspRsrcIntArray( cmDspSysH_t h, unsigned* np, int** vpp, ... );
  198. cmDspRC_t cmDspRsrcUIntArray( cmDspSysH_t h, unsigned* np, unsigned** vpp, ... );
  199. cmDspRC_t cmDspRsrcDblArray( cmDspSysH_t h, unsigned* np, double** vpp, ... );
  200. cmDspRC_t cmDspRsrcRealArray( cmDspSysH_t h, unsigned* np, cmReal_t** vpp, ... );
  201. cmDspRC_t cmDspRsrcStringArray( cmDspSysH_t h, unsigned* np, const cmChar_t*** vpp, ... );
  202. cmDspRC_t cmDspRsrcWriteStringV( cmDspSysH_t h, const cmChar_t* v, va_list vl );
  203. cmDspRC_t cmDspRsrcWriteString( cmDspSysH_t h, const cmChar_t* v, ... );
  204. #ifdef __cplusplus
  205. }
  206. #endif
  207. #endif