Commit 2c4aa44f authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files
parents 7b137f02 774b1909
......@@ -776,6 +776,9 @@ ITASIO_API ASIOError ITAsioInitializeDriver(const char* pszDriverName) {
size_t nNumInOutChannels = size_t( lNumInChannels + lNumOutChannels );
asioDriverInfo.channelInfos.resize( nNumInOutChannels );
if( nNumInOutChannels == 0 )
return ASE_InvalidParameter;
// Retrieve channel info
ASIOChannelInfo* pInfo = reinterpret_cast<ASIOChannelInfo*>(&asioDriverInfo.channelInfos.front());
if( ( aeResult = ASIOGetChannelInfo( pInfo ) ) != ASE_OK )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment