libcm is a C development framework with an emphasis on audio signal processing applications.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930
  1. #ifndef cmDspStore_h
  2. #define cmDspStore_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. extern cmDspStoreH_t cmDspStoreNullHandle;
  7. cmDspRC_t cmDspStoreAlloc( cmCtx_t* ctx, cmDspStoreH_t* hp, unsigned initStoreCnt, unsigned growStoreCnt );
  8. cmDspRC_t cmDspStoreFree( cmDspStoreH_t *hp );
  9. bool cmDspStoreIsValid( cmDspStoreH_t h );
  10. unsigned cmDspStoreSymToId( cmDspStoreH_t h, unsigned symId );
  11. unsigned cmDspStoreIdToSym( cmDspStoreH_t h, unsigned id );
  12. const cmDspValue_t* cmDspStoreIdToValue( cmDspStoreH_t h, unsigned id );
  13. cmDspRC_t cmDspStoreSetValueViaId( cmDspStoreH_t h, unsigned id, const cmDspValue_t* val );
  14. // Sets the variable to the value (and creates it if it does not exist).
  15. // Returns the 'id' of the variable.
  16. unsigned cmDspStoreSetValueViaSym( cmDspStoreH_t h, unsigned symId, const cmDspValue_t* val );
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif