|
From: | John W. Eaton |
Subject: | Re: gsoc2013 octave audio system |
Date: | Thu, 18 Apr 2013 19:42:28 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11 |
On 04/18/2013 05:36 PM, Vytautas Jancauskas wrote:
Thanks, I updated the code with these suggestions. How come when I run audiodevinfo(1), args(0).is_integer_type() returns 0? what check do I use to see if the argument is an integer?
Because in Octave, a constant like 1 is a double precision value. This behavior is required for Matlab compatibility.
But that doesn't matter much, you can extract an integer.Also, if possible, we avoid inquiring about value types. Instead, attempt to extract the type of value you want and check to see whether the operation succeeded.
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |