summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Glover <j@johnglover.net>2012-07-02 19:33:32 +0100
committerJohn Glover <j@johnglover.net>2012-07-02 19:33:32 +0100
commitaf16463b5a877c1662328bc80cd10cc1c552c986 (patch)
tree7c93842a94a8a4c36238cc5da2bb336b62857844
parent6386745c7c5edd99876181fded4f8e6543a2df45 (diff)
downloadsimpl-af16463b5a877c1662328bc80cd10cc1c552c986.tar.gz
simpl-af16463b5a877c1662328bc80cd10cc1c552c986.tar.bz2
simpl-af16463b5a877c1662328bc80cd10cc1c552c986.zip
[sms] Name header and data structs, no need for char parameter to sms_fillHeader.
-rw-r--r--src/sms/fileIO.c3
-rw-r--r--src/sms/sms.h6
2 files changed, 4 insertions, 5 deletions
diff --git a/src/sms/fileIO.c b/src/sms/fileIO.c
index e870c5a..240a266 100644
--- a/src/sms/fileIO.c
+++ b/src/sms/fileIO.c
@@ -63,9 +63,8 @@ void sms_initHeader(SMS_Header *pSmsHeader)
*
* \param pSmsHeader header for SMS file (to be stored)
* \param pAnalParams structure of analysis parameters
- * \param pProgramString pointer to a string containing the name of the program that made the analysis data
*/
-void sms_fillHeader(SMS_Header *pSmsHeader, SMS_AnalParams *pAnalParams, char *pProgramString)
+void sms_fillHeader(SMS_Header *pSmsHeader, SMS_AnalParams *pAnalParams)
{
sms_initHeader(pSmsHeader);
pSmsHeader->nFrames = pAnalParams->nFrames;
diff --git a/src/sms/sms.h b/src/sms/sms.h
index 4e6e5c1..14399fc 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 */
@@ -671,7 +671,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);