mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
initialize some uninitialized variables
This commit is contained in:
parent
28bb82cee7
commit
a66ad18402
2 changed files with 4 additions and 1 deletions
|
|
@ -35,6 +35,7 @@ PolyLine::PolyLine (Canvas* c)
|
||||||
PolyLine::PolyLine (Item* parent)
|
PolyLine::PolyLine (Item* parent)
|
||||||
: PolyItem (parent)
|
: PolyItem (parent)
|
||||||
, _threshold (1.0)
|
, _threshold (1.0)
|
||||||
|
, _y1 (0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ instantiate(const LV2_Descriptor* descriptor,
|
||||||
const char* bundle_path,
|
const char* bundle_path,
|
||||||
const LV2_Feature* const* features)
|
const LV2_Feature* const* features)
|
||||||
{
|
{
|
||||||
Aeq* aeq = (Aeq*)malloc(sizeof(Aeq));
|
Aeq* aeq = (Aeq*)calloc(1, sizeof(Aeq));
|
||||||
aeq->srate = rate;
|
aeq->srate = rate;
|
||||||
|
|
||||||
#ifdef LV2_EXTENDED
|
#ifdef LV2_EXTENDED
|
||||||
|
|
@ -142,6 +142,8 @@ instantiate(const LV2_Descriptor* descriptor,
|
||||||
for (int i = 0; i < BANDS; i++)
|
for (int i = 0; i < BANDS; i++)
|
||||||
linear_svf_reset(&aeq->v_filter[i]);
|
linear_svf_reset(&aeq->v_filter[i]);
|
||||||
|
|
||||||
|
// TODO initialize self->v_
|
||||||
|
|
||||||
aeq->need_expose = true;
|
aeq->need_expose = true;
|
||||||
#ifdef LV2_EXTENDED
|
#ifdef LV2_EXTENDED
|
||||||
aeq->display = NULL;
|
aeq->display = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue