2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
liblscp - LinuxSampler Control Protocol API |
liblscp - LinuxSampler Control Protocol API |
5 |
Copyright (C) 2004-2006, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
6 |
|
|
7 |
This library is free software; you can redistribute it and/or |
This library is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU Lesser General Public |
modify it under the terms of the GNU Lesser General Public |
95 |
|
|
96 |
float lscp_parser_nextnum ( lscp_parser_t *pParser ) |
float lscp_parser_nextnum ( lscp_parser_t *pParser ) |
97 |
{ |
{ |
98 |
float ret = 0; |
float ret = 0.0f; |
99 |
|
|
100 |
if (pParser->pszToken) { |
if (pParser->pszToken) { |
101 |
ret = (float) atof(pParser->pszToken); |
ret = (float) atof(pParser->pszToken); |