Mercurial > hg > beaglert
comparison include/Utilities.h @ 537:bfcbeb437869 API-update
Updated RTAudioSettings with in/out, ported some examples and libpd
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Fri, 24 Jun 2016 01:36:07 +0100 |
parents | 5c8f46fcd4d0 |
children |
comparison
equal
deleted
inserted
replaced
528:5c8f46fcd4d0 | 537:bfcbeb437869 |
---|---|
40 #endif /* OUTPUT */ | 40 #endif /* OUTPUT */ |
41 | 41 |
42 /** @} */ | 42 /** @} */ |
43 | 43 |
44 /** | 44 /** |
45 * \ingroup wiring | 45 * \cond BIT_FUNCTIONS |
46 * | 46 * |
47 * @{ | 47 * @{ |
48 */ | 48 */ |
49 | 49 |
50 /// Set the given bit in \c word to 1. | 50 /// Set the given bit in \c word to 1. |
57 #define getBit(word,bit) (((word) >> (bit)) & 1) | 57 #define getBit(word,bit) (((word) >> (bit)) & 1) |
58 | 58 |
59 /// Set/clear the given bit in \c word to \c value. | 59 /// Set/clear the given bit in \c word to \c value. |
60 #define changeBit(word,bit,value) ((clearBit((word),(bit))) | ((value) << (bit))) | 60 #define changeBit(word,bit,value) ((clearBit((word),(bit))) | ((value) << (bit))) |
61 | 61 |
62 /** @} */ | 62 /** @} |
63 * \endcond | |
64 * */ | |
63 | 65 |
64 /** | 66 /** |
65 * \ingroup iofunctions | 67 * \ingroup iofunctions |
66 * | 68 * |
67 * @{ | 69 * @{ |
293 * \return Constrained value. | 295 * \return Constrained value. |
294 */ | 296 */ |
295 static inline float constrain(float x, float min_val, float max_val); | 297 static inline float constrain(float x, float min_val, float max_val); |
296 | 298 |
297 /** | 299 /** |
300 * \brief Returns the maximum of two numbers | |
301 * | |
298 * Returns the maximum of two numbers | 302 * Returns the maximum of two numbers |
299 */ | 303 */ |
300 static inline float min(float x, float y); | 304 static inline float min(float x, float y); |
301 | 305 |
302 /** | 306 /** |
307 * \brief Returns the minimum of two numbers | |
308 * | |
303 * Returns the minimum of two numbers | 309 * Returns the minimum of two numbers |
304 */ | 310 */ |
305 static inline float max(float x, float y); | 311 static inline float max(float x, float y); |
306 | 312 |
307 /** @} */ | 313 /** @} */ |