summaryrefslogtreecommitdiff
path: root/src/sms/sms.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sms/sms.h')
-rw-r--r--src/sms/sms.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/sms/sms.h b/src/sms/sms.h
index 0613ab3..d1ac049 100644
--- a/src/sms/sms.h
+++ b/src/sms/sms.h
@@ -58,7 +58,7 @@
* the documentation will be updated to reflect which members of the header
* are useful in manipulations, and what functions to use for these manipulatinos
*/
-typedef struct
+typedef struct SMSHeader
{
int iSmsMagic; /*!< identification constant */
int iHeadBSize; /*!< size in bytes of header */
@@ -88,7 +88,7 @@ typedef struct
* pFSinPha is optional in the final output, but it is always used to construct the
* residual signal.
*/
-typedef struct
+typedef struct SMSData
{
sfloat *pSmsData; /*!< pointer to all SMS data */
int sizeData; /*!< size of all the data */
@@ -132,7 +132,7 @@ typedef struct
} SMS_Peak;
/* a collection of spectral peaks */
-typedef struct
+typedef struct SMSSpectralPeaks
{
SMS_Peak *pSpectralPeaks;
int nPeaks;
@@ -193,7 +193,7 @@ typedef struct
* This structure contains all the necessary settings and memory for residual synthesis.
*
*/
-typedef struct
+typedef struct SMSResidualParams
{
int samplingRate;
int hopSize;
@@ -228,7 +228,7 @@ typedef struct
* and peak detection/continuation process can be re-computed with more accuracy.
*
*/
-typedef struct
+typedef struct SMSAnalysisParams
{
int iDebugMode; /*!< debug codes enumerated by SMS_DBG \see SMS_DBG */
int iFormat; /*!< analysis format code defined by SMS_Format \see SMS_Format */
@@ -242,6 +242,7 @@ typedef struct
sfloat fPeakContToGuide; /*!< contribution of previous peak to current guide (between 0 and 1) */
sfloat fFundContToGuide; /*!< contribution of current fundamental to current guide (between 0 and 1) */
sfloat fFreqDeviation; /*!< maximum deviation from peak to peak */
+ int realtime; /*!< perform realtime analysis */
int iSamplingRate; /*! sampling rate of sound to be analyzed */
int iDefaultSizeWindow; /*!< default size of analysis window in samples */
int windowSize; /*!< the current window size */
@@ -320,7 +321,7 @@ typedef struct
* synthesized frame.
*
*/
-typedef struct
+typedef struct SMSSynthParams
{
int iStochasticType; /*!< type of stochastic model defined by SMS_StocSynthType
\see SMS_StocSynthType */
@@ -671,7 +672,7 @@ void sms_sineSynthFrame(SMS_Data *pSmsFrame, sfloat *pBuffer,
void sms_initHeader(SMS_Header *pSmsHeader);
int sms_getHeader(char *pChFileName, SMS_Header **ppSmsHeader, FILE **ppInputFile);
-void sms_fillHeader(SMS_Header *pSmsHeader, SMS_AnalParams *pAnalParams, char *pProgramString);
+void sms_fillHeader(SMS_Header *pSmsHeader, SMS_AnalParams *pAnalParams);
int sms_writeHeader(char *pFileName, SMS_Header *pSmsHeader, FILE **ppOutSmsFile);
int sms_writeFile(FILE *pSmsFile, SMS_Header *pSmsHeader);
int sms_initFrame(int iCurrentFrame, SMS_AnalParams *pAnalParams, int sizeWindow);