Commit 3108f02f35685bd57486e198277c600e09d98b13
[CRASH] audioinput and audiooutput examples crash when no devices are
available.
Task-number:QTBUG-7783
Reviewed-by:Justin McPherson
| |   |
| 213 | 213 | |
| 214 | 214 | if(format.sampleSize() != 16) { |
| 215 | 215 | qWarning()<<"audio device doesn't support 16 bit samples, example cannot run"; |
| audioInput = 0; |
| button->setDisabled(true); |
| button2->setDisabled(true); |
| 216 | 219 | return; |
| 217 | 220 | } |
| 218 | 221 | |
| |   |
| 179 | 179 | |
| 180 | 180 | if(settings.sampleSize() != 16) { |
| 181 | 181 | qWarning()<<"audio device doesn't support 16 bit samples, example cannot run"; |
| button->setDisabled(true); |
| button2->setDisabled(true); |
| audioOutput = 0; |
| 182 | 185 | return; |
| 183 | 186 | } |
| 184 | 187 | |