comparison libinterp/dldfcn/audiodevinfo.cc @ 19973:7aaf756b1532

use "!", not "not" * octave-gui.cc, audiodevinfo.cc: Avoid using "not" operator.
author John W. Eaton <jwe@octave.org>
date Thu, 19 Mar 2015 14:32:40 -0400
parents 19755f4fc851
children 075a5e2e1ba5
comparison
equal deleted inserted replaced
19972:117ccb5080c1 19973:7aaf756b1532
280 { 280 {
281 error ("audiodevinfo: please specify 0 for output and 1 for input devices"); 281 error ("audiodevinfo: please specify 0 for output and 1 for input devices");
282 return retval; 282 return retval;
283 } 283 }
284 } 284 }
285 if (not found) 285 if (! found)
286 error ("audiodevinfo: no device meeting the specified criteria found"); 286 error ("audiodevinfo: no device meeting the specified criteria found");
287 } 287 }
288 else if (nargin == 3) 288 else if (nargin == 3)
289 { 289 {
290 // FIXME: what was supposed to happen here? 290 // FIXME: what was supposed to happen here?
1248 return; 1248 return;
1249 1249
1250 PaError err; 1250 PaError err;
1251 set_sample_number (0); 1251 set_sample_number (0);
1252 reset_end_sample (); 1252 reset_end_sample ();
1253 if (not Pa_IsStreamStopped (get_stream ())) 1253 if (! Pa_IsStreamStopped (get_stream ()))
1254 { 1254 {
1255 err = Pa_AbortStream (get_stream ()); 1255 err = Pa_AbortStream (get_stream ());
1256 if (err != paNoError) 1256 if (err != paNoError)
1257 { 1257 {
1258 error ("audioplayer: failed to stop audio playback stream"); 1258 error ("audioplayer: failed to stop audio playback stream");
1875 { 1875 {
1876 if (get_stream () == 0) 1876 if (get_stream () == 0)
1877 return; 1877 return;
1878 1878
1879 PaError err; 1879 PaError err;
1880 if (not Pa_IsStreamStopped (get_stream ())) 1880 if (! Pa_IsStreamStopped (get_stream ()))
1881 { 1881 {
1882 err = Pa_AbortStream (get_stream ()); 1882 err = Pa_AbortStream (get_stream ());
1883 if (err != paNoError) 1883 if (err != paNoError)
1884 { 1884 {
1885 error ("audioplayer: unable to stop audio playback stream"); 1885 error ("audioplayer: unable to stop audio playback stream");