| AAX SDK 2.8.0 Avid Audio Extensions Development Kit

- Welcome
- Manual
- Classes
- Files
- Lists
- Support

- File List
- File Members

Loading...
Searching...
No Matches
AAX_Map.h
Go to the documentation of this file.
1/*================================================================================================*/
2/*
3 * Copyright 2009-2015, 2019, 2023-2024 Avid Technology, Inc.
4 * All rights reserved.
5 *
6 * This file is part of the Avid AAX SDK.
7 *
8 * The AAX SDK is subject to commercial or open-source licensing.
9 *
10 * By using the AAX SDK, you agree to the terms of both the Avid AAX SDK License
11 * Agreement and Avid Privacy Policy.
12 *
13 * AAX SDK License: https://developer.avid.com/aax
14 * Privacy Policy: https://www.avid.com/legal/privacy-policy-statement
15 *
16 * Or: You may also use this code under the terms of the GPL v3 (see
17 * www.gnu.org/licenses).
18 *
19 * THE AAX SDK IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 * EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 * DISCLAIMED.
22 */
23
30/*================================================================================================*/
31
32#pragma once
33
34#ifndef AAX_MAP_H
35#define AAX_MAP_H
36
37#include "AAX.h"
38
39#include AAX_ALIGN_FILE_BEGIN
40#include AAX_ALIGN_FILE_ALG
41#include AAX_ALIGN_FILE_END
42
43//==============================================================================
44 class AAX_Map
45{
46 public:
47 AAX_Map() {};
48 ~AAX_Map() {};
49
50 void SetCoefficients(int aSize, double* aInpX, double* aInpY);
51 void GetCoefficient(int aIndex, double* aOutX, double* aOutY);
52 int GetUpperBoundIndex(double inp);
53 inline double GetX(int aIndex) {return mX[aIndex];};
54 inline double GetY(int aIndex) {return mY[aIndex];};
55 inline double GetFirstX() {return mX[0];};
56 inline double GetFirstY() {return mY[0];};
57 inline double GetLastX() {return mX[mSize - 1];};
58 inline double GetLastY() {return mY[mSize - 1];};
59 inline int GetSize() {return mSize;};
60
61 private:
62
63 static const int mMaxSize = 13;
64
65 int mSize;
66
67 double mX[mMaxSize];
68 double mY[mMaxSize];
69};
70
71#include AAX_ALIGN_FILE_BEGIN
72#include AAX_ALIGN_FILE_RESET
73#include AAX_ALIGN_FILE_END
74
75#endif //AAX_MAP_H
AAX.h
Various utility definitions for AAX.
AAX_Map
Definition: AAX_Map.h:45
AAX_Map::SetCoefficients
void SetCoefficients(int aSize, double *aInpX, double *aInpY)
AAX_Map::GetY
double GetY(int aIndex)
Definition: AAX_Map.h:54
AAX_Map::GetFirstX
double GetFirstX()
Definition: AAX_Map.h:55
AAX_Map::~AAX_Map
~AAX_Map()
Definition: AAX_Map.h:48
AAX_Map::GetUpperBoundIndex
int GetUpperBoundIndex(double inp)
AAX_Map::GetSize
int GetSize()
Definition: AAX_Map.h:59
AAX_Map::GetX
double GetX(int aIndex)
Definition: AAX_Map.h:53
AAX_Map::GetCoefficient
void GetCoefficient(int aIndex, double *aOutX, double *aOutY)
AAX_Map::GetLastX
double GetLastX()
Definition: AAX_Map.h:57
AAX_Map::GetFirstY
double GetFirstY()
Definition: AAX_Map.h:56
AAX_Map::GetLastY
double GetLastY()
Definition: AAX_Map.h:58
AAX_Map::AAX_Map
AAX_Map()
Definition: AAX_Map.h:47