Mercurial > octave-nkf
comparison libinterp/dldfcn/audiodevinfo.cc @ 19600:c36c22808d11
* audiodevinfo.cc: one audio device must be available to play or record (bug #43988)
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Mon, 12 Jan 2015 13:44:24 +0100 |
parents | 810cfb00b72b |
children | 62ca016dbb2a |
comparison
equal
deleted
inserted
replaced
19599:810cfb00b72b | 19600:c36c22808d11 |
---|---|
839 { | 839 { |
840 error ("audioplayer: initialization error!"); | 840 error ("audioplayer: initialization error!"); |
841 return; | 841 return; |
842 } | 842 } |
843 | 843 |
844 if (Pa_GetDeviceCount () < 0) | 844 if (Pa_GetDeviceCount () < 1) |
845 { | 845 { |
846 error ("audioplayer: no audio devices found!"); | 846 error ("audioplayer: no audio devices found or available!"); |
847 return; | 847 return; |
848 } | 848 } |
849 | 849 |
850 int device = get_id (); | 850 int device = get_id (); |
851 | 851 |
872 { | 872 { |
873 error ("audioplayer: initialization error!"); | 873 error ("audioplayer: initialization error!"); |
874 return; | 874 return; |
875 } | 875 } |
876 | 876 |
877 if (Pa_GetDeviceCount () < 0) | 877 if (Pa_GetDeviceCount () < 1) |
878 { | 878 { |
879 error ("audioplayer: no audio devices found!"); | 879 error ("audioplayer: no audio devices found or available!"); |
880 return; | 880 return; |
881 } | 881 } |
882 | 882 |
883 int device = get_id (); | 883 int device = get_id (); |
884 | 884 |
1483 { | 1483 { |
1484 error ("audiorecorder: initialization error!"); | 1484 error ("audiorecorder: initialization error!"); |
1485 return; | 1485 return; |
1486 } | 1486 } |
1487 | 1487 |
1488 if (Pa_GetDeviceCount () < 0) | 1488 if (Pa_GetDeviceCount () < 1) |
1489 { | 1489 { |
1490 error ("audiorecorder: no audio devices found!"); | 1490 error ("audiorecorder: no audio devices found or available!"); |
1491 return; | 1491 return; |
1492 } | 1492 } |
1493 | 1493 |
1494 int device = get_id (); | 1494 int device = get_id (); |
1495 | 1495 |