Mercurial > hg > octave-nkf
changeset 19763: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 | 9b90d8579c61 |
files | libinterp/dldfcn/audiodevinfo.cc |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/audiodevinfo.cc +++ b/libinterp/dldfcn/audiodevinfo.cc @@ -841,9 +841,9 @@ return; } - if (Pa_GetDeviceCount () < 0) + if (Pa_GetDeviceCount () < 1) { - error ("audioplayer: no audio devices found!"); + error ("audioplayer: no audio devices found or available!"); return; } @@ -874,9 +874,9 @@ return; } - if (Pa_GetDeviceCount () < 0) + if (Pa_GetDeviceCount () < 1) { - error ("audioplayer: no audio devices found!"); + error ("audioplayer: no audio devices found or available!"); return; } @@ -1485,9 +1485,9 @@ return; } - if (Pa_GetDeviceCount () < 0) + if (Pa_GetDeviceCount () < 1) { - error ("audiorecorder: no audio devices found!"); + error ("audiorecorder: no audio devices found or available!"); return; }