1
0
mirror of http://mpg123.de/trunk/.git synced 2025-10-29 14:09:21 +03:00

I couldn't help myself... here is the option for a build using the generic decoder that produces 32bit float output.

You select it via --with-cpu=generic_float, which implies dummy output and also disables the buffer.
The decoded audio can be written raw or to a IEEE float wav file.

This demonstrates that it's doable and not too complicated for the generic code.
Next would be to a) make it into a runtime option and b) adapt assembler opts to that.
The latter will most likely not happen for every opt.



git-svn-id: svn://scm.orgis.org/mpg123/trunk@668 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
thor
2007-05-31 15:54:06 +00:00
parent 2861500b29
commit 933198fc46
15 changed files with 292 additions and 125 deletions

View File

@@ -71,6 +71,7 @@ int performoption (int argc, char *argv[], topt *opt)
debug1("int at %p", opt->var);
*( (int *) opt->var ) = (int) opt->value;
}
/* GLO_DOUBLE is not supported here */
else prog_error();
debug("casting assignment done");
@@ -90,6 +91,8 @@ int performoption (int argc, char *argv[], topt *opt)
*((long *) opt->var) = atol(loptarg);
else if(opt->flags & GLO_INT)
*((int *) opt->var) = atoi(loptarg);
else if(opt->flags & GLO_DOUBLE)
*((double *) opt->var) = atof(loptarg);
else prog_error();
}
else