libcm is a C development framework with an emphasis on audio signal processing applications.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

cmDspStore.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  1. //| Copyright: (C) 2009-2020 Kevin Larke <contact AT larke DOT org>
  2. //| License: GNU GPL version 3.0 or above. See the accompanying LICENSE file.
  3. #ifndef cmDspStore_h
  4. #define cmDspStore_h
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. //( { file_desc:"'snap' global variable interface used by units for getting and setting global variables." kw:[snap]}
  9. extern cmDspStoreH_t cmDspStoreNullHandle;
  10. cmDspRC_t cmDspStoreAlloc( cmCtx_t* ctx, cmDspStoreH_t* hp, unsigned initStoreCnt, unsigned growStoreCnt );
  11. cmDspRC_t cmDspStoreFree( cmDspStoreH_t *hp );
  12. bool cmDspStoreIsValid( cmDspStoreH_t h );
  13. unsigned cmDspStoreSymToId( cmDspStoreH_t h, unsigned symId );
  14. unsigned cmDspStoreIdToSym( cmDspStoreH_t h, unsigned id );
  15. const cmDspValue_t* cmDspStoreIdToValue( cmDspStoreH_t h, unsigned id );
  16. cmDspRC_t cmDspStoreSetValueViaId( cmDspStoreH_t h, unsigned id, const cmDspValue_t* val );
  17. // Sets the variable to the value (and creates it if it does not exist).
  18. // Returns the 'id' of the variable.
  19. unsigned cmDspStoreSetValueViaSym( cmDspStoreH_t h, unsigned symId, const cmDspValue_t* val );
  20. //)
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif