AudioStream_F32: add memory usage macros for f32 memory

pull/1/head
Chip Audette 8 years ago
parent 93f398b1fc
commit d0bfbf797b
  1. 5
      AudioStream_F32.h
  2. 4
      keywords.txt

@ -60,6 +60,11 @@ class AudioConnection_F32
AudioStream_F32::initialize_f32_memory(data, num); \ AudioStream_F32::initialize_f32_memory(data, num); \
}) })
#define AudioMemoryUsage_F32() (AudioStream_F32::f32_memory_used)
#define AudioMemoryUsageMax_F32() (AudioStream_F32::f32_memory_used_max)
#define AudioMemoryUsageMaxReset_F32() (AudioStream_F32::f32_memory_used_max = AudioStream_F32::f32_memory_used)
class AudioStream_F32 : public AudioStream { class AudioStream_F32 : public AudioStream {
public: public:
AudioStream_F32(unsigned char n_input_f32, audio_block_f32_t **iqueue) : AudioStream(1, inputQueueArray_i16), AudioStream_F32(unsigned char n_input_f32, audio_block_f32_t **iqueue) : AudioStream(1, inputQueueArray_i16),

@ -9,3 +9,7 @@ AudioConvert_I16toF32 KEYWORD1
AudioConvert_F32toI16 KEYWORD1 AudioConvert_F32toI16 KEYWORD1
AudioEffectGain_F32 KEYWORD1 AudioEffectGain_F32 KEYWORD1
AudioMemory_F32 KEYWORD1 AudioMemory_F32 KEYWORD1
AudioMemoryUsage_F32 KEYWORD1
AudioMemoryUsageMax_F32 KEYWORD1
AudioMemoryUsageMaxReset_F32 KEYWORD1

Loading…
Cancel
Save