/*
* This file is part of DisOrder.
- * Copyright (C) 2006 Richard Kettlewell
+ * Copyright (C) 2006, 2007 Richard Kettlewell
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
char s[32];
snprintf(s, sizeof s, "%.1f", (double)value);
- return xstrdup(s);
+ return g_strdup(s);
}
/* Called to format the balance value. */
char s[32];
if(fabs(value) < 0.1)
- return xstrdup("0");
+ return g_strdup("0");
snprintf(s, sizeof s, "%+.1f", (double)value);
- return xstrdup(s);
+ return g_strdup(s);
}
/* Volume mapping. We consider left, right, volume to be in [0,1]