data should be const
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39927 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -175,10 +175,10 @@ VUView::_RenderLoop()
|
||||
|
||||
template<typename T>
|
||||
T
|
||||
VUView::_ComputeNextLevel(void *data, size_t size, uint32 format,
|
||||
VUView::_ComputeNextLevel(const void *data, size_t size, uint32 format,
|
||||
int32 channel)
|
||||
{
|
||||
T* samp = (T*)data;
|
||||
const T* samp = (const T*)data;
|
||||
|
||||
// get the min and max values in the nibbling interval
|
||||
// and set max to be the greater of the absolute value
|
||||
@@ -199,7 +199,7 @@ VUView::_ComputeNextLevel(void *data, size_t size, uint32 format,
|
||||
|
||||
|
||||
void
|
||||
VUView::ComputeLevels(void* data, size_t size, uint32 format)
|
||||
VUView::ComputeLevels(const void* data, size_t size, uint32 format)
|
||||
{
|
||||
for (int32 channel = 0; channel < fChannels; channel++) {
|
||||
switch (format) {
|
||||
|
||||
@@ -21,14 +21,14 @@ public:
|
||||
void AttachedToWindow();
|
||||
void DetachedFromWindow();
|
||||
void Draw(BRect updateRect);
|
||||
void ComputeLevels(void* data, size_t size, uint32 format);
|
||||
void ComputeLevels(const void* data, size_t size, uint32 format);
|
||||
|
||||
private:
|
||||
void _Run();
|
||||
void _Quit();
|
||||
static int32 _RenderLaunch(void *data);
|
||||
void _RenderLoop();
|
||||
template<typename T> T _ComputeNextLevel(void *data,
|
||||
template<typename T> T _ComputeNextLevel(const void *data,
|
||||
size_t size, uint32 format, int32 channel);
|
||||
|
||||
thread_id fThreadId;
|
||||
|
||||
Reference in New Issue
Block a user