1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Added a comment about an ASSERT that can happen.

Also added a TODO.
This commit is contained in:
james.k.crook@gmail.com 2014-10-10 11:11:55 +00:00
parent 1211725f39
commit f140c0249a

View File

@ -2413,6 +2413,9 @@ int AudioIO::getRecordDevIndex(wxString devName)
// And I can't imagine how far we'll get specifying an "invalid" index later
// on...are we certain "0" even exists?
if (deviceNum < 0) {
// JKC: This ASSERT will happen if you run with no config file
// This happens once. Config file will exist on the next run.
// TODO: Look into this a bit more. Could be relevant to blank Device Toolbar.
wxASSERT(false);
deviceNum = 0;
}