2 * Copyright 2005, Jérôme Duval. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Inspired by SoundCapture from Be newsletter (Media Kit Basics:
6 * Consumers and Producers)
16 class VUView
: public BView
19 VUView(BRect rect
, uint32 resizeFlags
);
21 void AttachedToWindow();
22 void DetachedFromWindow();
23 void Draw(BRect updateRect
);
24 void ComputeLevels(const void* data
, size_t size
, uint32 format
);
29 static int32
_RenderLaunch(void *data
);
31 template<typename T
> T
_ComputeNextLevel(const void *data
,
32 size_t size
, uint32 format
, int32 channel
);
39 int32
*fCurrentLevels
;