\hypertarget{a00770_source}{}\doxysection{AAX\+\_\+\+Slider\+Conversions.\+h}
\label{a00770_source}\index{AAX\_SliderConversions.h@{AAX\_SliderConversions.h}}
\mbox{\hyperlink{a00770}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ \ Copyright\ 2013-\/2015,\ 2023-\/2024\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ \ All\ rights\ reserved.}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ \ This\ file\ is\ part\ of\ the\ Avid\ AAX\ SDK.}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ \ The\ AAX\ SDK\ is\ subject\ to\ commercial\ or\ open-\/source\ licensing.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ \ By\ using\ the\ AAX\ SDK,\ you\ agree\ to\ the\ terms\ of\ both\ the\ Avid\ AAX\ SDK\ License}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *\ \ Agreement\ and\ Avid\ Privacy\ Policy.}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ \ AAX\ SDK\ License:\ https://developer.avid.com/aax}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ \ Privacy\ Policy:\ https://www.avid.com/legal/privacy-\/policy-\/statement}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *\ \ Or:\ You\ may\ also\ use\ this\ code\ under\ the\ terms\ of\ the\ GPL\ v3\ (see}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *\ \ www.gnu.org/licenses).}}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ \ THE\ AAX\ SDK\ IS\ PROVIDED\ "{}AS\ IS"{}\ WITHOUT\ ANY\ WARRANTY,\ AND\ ALL\ WARRANTIES,\ WHETHER}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *\ \ EXPRESSED\ OR\ IMPLIED,\ INCLUDING\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ PURPOSE,\ ARE}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ *\ \ DISCLAIMED.}}
\DoxyCodeLine{00023\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00024\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00041\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00044\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00045\ }
\DoxyCodeLine{00046\ \textcolor{preprocessor}{\#ifndef\ AAX\_SLIDERCONVERSIONS\_H}}
\DoxyCodeLine{00047\ \textcolor{preprocessor}{\#define\ AAX\_SLIDERCONVERSIONS\_H}}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00049\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00542}{AAX.h}}"{}}}
\DoxyCodeLine{00050\ \textcolor{preprocessor}{\#include\ <algorithm>}}
\DoxyCodeLine{00051\ \textcolor{preprocessor}{\#include\ <stdint.h>}}
\DoxyCodeLine{00052\ }
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00054\ \textcolor{preprocessor}{\#define\ AAX\_LIMIT(v1,firstVal,secondVal)\ (\ (secondVal\ >\ firstVal)\ ?\ (std::max)((std::min)(v1,secondVal),firstVal)\ :\ \ (std::min)((std::max)(v1,secondVal),firstVal)\ )}}
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00056\ int32\_t\ \mbox{\hyperlink{a00770_a5125f531cd70d1d4049c99335989a0ee}{LongControlToNewRange}}\ (int32\_t\ aValue,\ int32\_t\ rangeMin,\ int32\_t\ rangeMax);}
\DoxyCodeLine{00057\ }
\DoxyCodeLine{00061\ int32\_t\ \mbox{\hyperlink{a00770_abb594c44cd5d4dee1ec236f7c69adacb}{LongToLongControl}}\ (int32\_t\ aValue,\ int32\_t\ rangeMin,\ int32\_t\ rangeMax);}
\DoxyCodeLine{00062\ }
\DoxyCodeLine{00066\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00770_a8c8994b0486ed20075fd7808dc0bc01e}{LongControlToDouble}}(int32\_t\ aValue,\ \textcolor{keywordtype}{double}\ firstVal,\ \textcolor{keywordtype}{double}\ secondVal);}
\DoxyCodeLine{00067\ }
\DoxyCodeLine{00071\ int32\_t\ \mbox{\hyperlink{a00770_a285ce2bf578a7ceb8c12eabbd5e5ad37}{DoubleToLongControl}}\ (\textcolor{keywordtype}{double}\ aValue,\ \textcolor{keywordtype}{double}\ firstVal,\ \textcolor{keywordtype}{double}\ secondVal);}
\DoxyCodeLine{00072\ }
\DoxyCodeLine{00073\ int32\_t\ \mbox{\hyperlink{a00770_a76082aa640489b279cd7683c12fcbd33}{DoubleToLongControlNonlinear}}(\textcolor{keywordtype}{double}\ aValue,\ \textcolor{keywordtype}{double}*\ minVal,\ \textcolor{keywordtype}{double}*\ rangePercent,\ int32\_t\ numRanges);}
\DoxyCodeLine{00074\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00770_a81279cd99c7d7193e4f79d5c74dccf54}{LongControlToDoubleNonlinear}}(int32\_t\ aValue,\ \textcolor{keywordtype}{double}*\ minVal,\ \textcolor{keywordtype}{double}*\ rangePercent,\ int32\_t\ numRanges);}
\DoxyCodeLine{00075\ }
\DoxyCodeLine{00082\ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{a00770_ae8dc426096379e56390b687762c79665}{LongControlToLogDouble}}(int32\_t\ aValue,\ \textcolor{keywordtype}{double}\ minVal,\ \textcolor{keywordtype}{double}\ maxVal);}
\DoxyCodeLine{00083\ }
\DoxyCodeLine{00090\ int32\_t\ \mbox{\hyperlink{a00770_ad5428b221d38f3503f1c168b6873d2c2}{LogDoubleToLongControl}}(\textcolor{keywordtype}{double}\ aValue,\ \textcolor{keywordtype}{double}\ minVal,\ \textcolor{keywordtype}{double}\ maxVal);}
\DoxyCodeLine{00091\ }
\DoxyCodeLine{00092\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ AAX\_SLIDERCONVERSIONS\_H}}
\DoxyCodeLine{00093\ }

\end{DoxyCode}
