comparison libinterp/dldfcn/audioread.cc @ 23580:2230f9e10fb3

maint: Deprecate is_integer_type and replace with isinteger. * ov.h (is_integer_type): Use OCTAVE_DEPRECATED macro around function. * ov.h (isinteger): New function. * cellfun.cc, data.cc, find.cc, graphics.cc, oct-stream.cc, typecast.cc, audioread.cc, qr.cc, ov-base.h, ov-class.cc, ov-intx.h, ov.cc: Replace instances of is_integer_type with isinteger.
author Rik <rik@octave.org>
date Mon, 12 Jun 2017 17:53:28 -0700
parents ddcbf10c8c39
children 336f89b6208b
comparison
equal deleted inserted replaced
23579:c20a0fa91c0c 23580:2230f9e10fb3
283 bias = scale = std::pow (2.0, 7); 283 bias = scale = std::pow (2.0, 7);
284 else if (args(1).is_int16_type ()) 284 else if (args(1).is_int16_type ())
285 scale = std::pow (2.0, 15); 285 scale = std::pow (2.0, 15);
286 else if (args(1).is_int32_type ()) 286 else if (args(1).is_int32_type ())
287 scale = std::pow (2.0, 31); 287 scale = std::pow (2.0, 31);
288 else if (args(1).is_integer_type ()) 288 else if (args(1).isinteger ())
289 err_wrong_type_arg ("audiowrite", args(1)); 289 err_wrong_type_arg ("audiowrite", args(1));
290 290
291 Matrix audio = args(1).matrix_value (); 291 Matrix audio = args(1).matrix_value ();
292 292
293 int samplerate = args(2).int_value (); 293 int samplerate = args(2).int_value ();