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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user