[processor-sdk/performance-audio-sr.git] / procsdk_audio_x_xx_xx_xx / test_dsp / framework / audioStreamInpProc.h
diff --git a/procsdk_audio_x_xx_xx_xx/test_dsp/framework/audioStreamProc.h b/procsdk_audio_x_xx_xx_xx/test_dsp/framework/audioStreamInpProc.h
similarity index 51%
rename from procsdk_audio_x_xx_xx_xx/test_dsp/framework/audioStreamProc.h
rename to procsdk_audio_x_xx_xx_xx/test_dsp/framework/audioStreamInpProc.h
index f2cbd834b1739798efcf27574ed603be617c5810..e4dc1f56cdf8f58484f59c0c7d0c30a46c3e402d 100644 (file)
rename from procsdk_audio_x_xx_xx_xx/test_dsp/framework/audioStreamProc.h
rename to procsdk_audio_x_xx_xx_xx/test_dsp/framework/audioStreamInpProc.h
index f2cbd834b1739798efcf27574ed603be617c5810..e4dc1f56cdf8f58484f59c0c7d0c30a46c3e402d 100644 (file)
/*
- * ======== audioStreamProc.h ========
+ * ======== audioStreamInpProc.h ========
*/
-#ifndef _ASP_H_
-#define _ASP_H_
+#ifndef _ASIP_H_
+#define _ASIP_H_
#include <xdc/std.h>
-#include "as1-f2-params.h"
-#include "as1-f2-patchs.h"
-#include "as1-f2-config.h"
+#include "audioStreamProc_params.h"
+#include "audioStreamProc_patchs.h"
+#include "audioStreamProc_config.h"
// Global debug counter */
-extern Uint32 gTaskAspCnt; // debug counter for ASP task
+extern Uint32 gTaskAsipCnt; // debug counter for ASP task
-// Purpose: Audio Stream Task Function for initialization of data pointers
+// Purpose: Audio Stream Input Task Function for initialization of data pointers
// by allocation of memory.
Int
-PAF_AST_initPhaseMalloc(
+PAF_ASIT_initPhaseMalloc(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC);
+ PAF_AST_Config *pC
+);
-// Purpose: Audio Stream Task Function for initialization of data values
+// Purpose: Audio Stream Input Task Function for initialization of data values
// from parameters.
Int
-PAF_AST_initPhaseConfig(
+PAF_ASIT_initPhaseConfig(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC);
+ PAF_AST_Config *pC
+);
-// Purpose: Audio Stream Task Function for initialization of ACP by
+// Purpose: Audio Stream Input Task Function for initialization of ACP by
// instantiation of the algorithm.
Int
-PAF_AST_initPhaseAcpAlg(
+PAF_ASIT_initPhaseAcpAlg(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC);
+ PAF_AST_Config *pC
+);
-// Purpose: Audio Stream Task Function for initialization of data pointers
-// by allocation for common memory and by instantiation for
-// algorithms.
+// (***) FL: ASIT/ASOT currently consider common memory independently.
+// Should simultaneously consider all algs in ASIT/ASOT.
+// Purpose: Audio Stream Input Task Function for allocation of common memory.
Int
-PAF_AST_initPhaseCommon(
+PAF_ASIT_initPhaseCommon(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC);
+ PAF_AST_Config *pC
+);
-// Purpose: Audio Stream Task Function for initialization of data values
-// from parameters for Algorithm Keys.
+// Purpose: Audio Stream Input Task Function for initialization of ASP algorithms.
Int
-PAF_AST_initPhaseAlgKey(
+PAF_ASIT_initPhaseAspAlg(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC);
+ PAF_AST_Config *pC
+);
+
-// Purpose: Audio Stream Task Function for initialization of I/O Devices.
+// Purpose: Audio Stream Input Task Function for initialization of data values
+// from parameters for Algorithm Keys.
Int
-PAF_AST_initPhaseDevice(
+PAF_ASIT_initPhaseAlgKey(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC);
+ PAF_AST_Config *pC
+);
-// Purpose: Audio Stream Task Function for initialization of the Audio
-// Frame(s) by memory allocation and loading of data pointers
-// and values.
+// Purpose: Audio Stream Input Task Function for initialization of Input Devices.
Int
-PAF_AST_initFrame0(
+PAF_ASIT_initPhaseDevice(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC, Int z);
+ PAF_AST_Config *pC
+);
// Purpose: Audio Stream Task Function for initialization or reinitiali-
// zation of the Audio Frame(s) by loading of data values of a
PAF_AST_initFrame1(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC, Int z, Int apply);
+ PAF_AST_Config *pC,
+ Int z,
+ Int apply
+);
// Purpose: Audio Stream Task Function for processing audio data to
// determine the input type without output.
Int
-PAF_AST_autoProcessing(
+PAF_ASIT_autoProcessing(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
PAF_AST_Config *pC,
Int inputTypeSelect,
ALG_Handle pcmAlgMaster);
-// Purpose: Audio Stream Task Function for processing audio data for
-// output on a continuous basis, including detection of the
-// input type.
-//Int
-//PAF_AST_decodeProcessing(
-// const PAF_AST_Params *pP,
-// const PAF_AST_Patchs *pQ,
-// PAF_AST_Config *pC,
-// ALG_Handle decAlgMaster
-//);
+// Purpose: Audio Stream Input Task Function for processing audio data.
+//
Int
-PAF_AST_decodeProcessing(
+PAF_ASIT_decodeProcessing(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
PAF_AST_Config *pC,
- ALG_Handle decAlgMaster,
Int sourceSelect
);
// Purpose: Decoding Function for processing Decode Commands.
Int
-PAF_AST_decodeCommand(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC);
-
-// Purpose: Decoding Function for processing Encode Commands.
-Int
-PAF_AST_encodeCommand(
+PAF_ASIT_decodeCommand(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC);
+ PAF_AST_Config *pC
+);
// Purpose: Decoding Function for reinitializing the decoding process.
-//Int
-//PAF_AST_decodeInit(
-// const PAF_AST_Params *pP,
-// const PAF_AST_Patchs *pQ,
-// PAF_AST_Config *pC,
-// ALG_Handle decAlg[]
-//);
Int
-PAF_AST_decodeInit(
+PAF_ASIT_decodeInit(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
PAF_AST_Config *pC,
- ALG_Handle decAlg[],
Int sourceSelect
);
// Purpose: Decoding Function for processing information in a manner that
// is common for both initial and subsequent frames of input data.
Int
-PAF_AST_decodeInfo(
+PAF_ASIT_decodeInfo(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
PAF_AST_Config *pC,
- ALG_Handle decAlg[],
Int frame,
- Int block);
+ Int block
+);
// Purpose: Decoding Function for processing information in a manner that
// is unique to initial frames of input data.
Int
-PAF_AST_decodeInfo1(
+PAF_ASIT_decodeInfo1(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
PAF_AST_Config *pC,
- ALG_Handle decAlg[],
Int frame,
- Int block);
+ Int block
+);
// Purpose: Decoding Function for processing information in a manner that
// is unique to frames of input data other than the initial one.
Int
-PAF_AST_decodeInfo2(
+PAF_ASIT_decodeInfo2(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
PAF_AST_Config *pC,
- ALG_Handle decAlg[],
Int frame,
- Int block);
+ Int block
+);
// Purpose: Decoding Function for processing that occurs subsequent to
// information processing but antecedent to timing processing
PAF_AST_Config *pC,
ALG_Handle decAlg[],
Int frame,
- Int block);
+ Int block
+);
// Purpose: Decoding Function for processing of input data by the
// Decode Algorithm.
-//Int
-//PAF_AST_decodeDecode(
-// const PAF_AST_Params *pP,
-// const PAF_AST_Patchs *pQ,
-// PAF_AST_Config *pC,
-// ALG_Handle decAlg[],
-// Int frame,
-// Int block);
Int
-PAF_AST_decodeDecode(
+PAF_ASIT_decodeDecode(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
PAF_AST_Config *pC,
- ALG_Handle decAlg[],
Int sourceSelect,
Int frame,
Int block
);
-
-
-// Purpose: Decoding Function for processing of audio frame data by the
-// ASP Algorithms.
-Int
-PAF_AST_decodeStream(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC,
- ALG_Handle decAlg[],
- Int frame,
- Int block);
-
-// Purpose: Decoding Function for processing of audio frame data by the
-// Encode Algorithm.
-Int
-PAF_AST_decodeEncode(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC,
- ALG_Handle decAlg[],
- Int frame,
- Int block);
-
// Purpose: Decoding Function for determining whether processing of the
// current frame is complete.
Int
-PAF_AST_decodeFinalTest(
+PAF_ASIT_decodeFinalTest(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
PAF_AST_Config *pC,
- ALG_Handle decAlg[],
Int frame,
- Int block);
+ Int block
+);
// Purpose: Decoding Function for terminating the decoding process.
Int
-PAF_AST_decodeComplete(
+PAF_ASIT_decodeComplete(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
PAF_AST_Config *pC,
ALG_Handle decAlg[],
Int frame,
- Int block);
+ Int block
+);
-// Purpose: Audio Stream Task Function for selecting the devices used
-// for input and output.
+// Purpose: Audio Stream Input Task Function for selecting the devices used
+// for input.
Int
-PAF_AST_selectDevices(
+PAF_ASIT_selectDevices(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC);
+ PAF_AST_Config *pC
+);
-// Purpose: Audio Stream Task Function for selecting the sources used
+// Purpose: Audio Stream Input Task Function for selecting the sources used
// for decoding of input to output.
Int
-PAF_AST_sourceDecode(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC,
- Int x);
-
-// Purpose: Decoding Function for initiating output.
-Int
-PAF_AST_startOutput(
+PAF_ASIT_sourceDecode(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
PAF_AST_Config *pC,
- double arcRatio) ;
+ Int x
+);
// Purpose: Decoding Function for terminating output.
Int
PAF_AST_stopOutput(
const PAF_AST_Params *pP,
const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC);
-
-// Purpose: Decoding Function for reinitiating output.
-Int
-PAF_AST_setCheckRateX(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC,
- Int check);
+ PAF_AST_Config *pC
+);
// Purpose: Common Function for processing algorithm chains.
Int
PAF_AST_Config *pC,
Int iChainFrameFxns,
Int abortOnError,
- Int logArg);
+ Int logArg
+);
-#endif /* _ASP_H_ */
+#endif /* _ASIP_H_ */