Fixed mixer chunk load and line ending detection for good.

This commit is contained in:
Lorenz Meier
2013-10-13 11:44:26 +02:00
parent 42b75ae896
commit 1dc9569e31
9 changed files with 229 additions and 56 deletions
+23
View File
@@ -212,6 +212,24 @@ protected:
*/
static int scale_check(struct mixer_scaler_s &scaler);
/**
* Find a tag
*
* @param buf The buffer to operate on.
* @param buflen length of the buffer.
* @param tag character to search for.
*/
static const char * findtag(const char *buf, unsigned &buflen, char tag);
/**
* Skip a line
*
* @param buf The buffer to operate on.
* @param buflen length of the buffer.
* @return 0 / OK if a line could be skipped, 1 else
*/
static const char * skipline(const char *buf, unsigned &buflen);
private:
};
@@ -240,6 +258,11 @@ public:
*/
void reset();
/**
* Count the mixers in the group.
*/
unsigned count();
/**
* Adds mixers to the group based on a text description in a buffer.
*