Hi Kai,
I couldn`t send mails to the list, could you sent de next for me?
Hi all,
I had a problem using some ladspa effects: if you use the chain
operator, per example, "-el,Eq,10,10,10,10,10,10,10,10,10,10", when I
get the position using command "get-position", last_float() always
return a float without the decimal part. If I don`t use those ladspa
effects, last_float() works well.
In ecasoundc_sa.c, function void eci_impl_set_last_values(struct
eci_parser* parser), line 954, I could see that only when use those
ladspa effects, parser->buffer_repp has a string using the character ","
as decimal separator (and not ".") so atof() doesn`t get the decimal
part. I don't know if it could be a problem with the locale config, but
I solve this writing the next code in this funtion (I suppose could be a
better solution):
case 'f':
{
// Checking if use ',' instead of '.' for replace it
char *string_aux;
string_aux = strstr(parser->buffer_repp, ",");
if (string_aux != NULL) {
string_aux[0] = '.';
}
parser->last_f_rep = atof(parser->buffer_repp);
break;
}
Regards:
Pedro
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Thu Nov 30 00:15:09 2006
This archive was generated by hypermail 2.1.8 : Thu Nov 30 2006 - 00:15:09 EET