////------------------- /// FFMultiSet::Display //----------------------- // // void FFMultiSet::Display( TNameTable &Unprocessed, TNameTable &Processed ) { for ( int i = 0 ; i < mSet.size() ; i++ ){ TNameTable Temp1, Temp2; Temp1.clear(); Temp2.clear(); Temp1.insert( Temp1.begin(), Processed.begin(), Processed.end() ); mSet[ i ]->Display( Temp1, Temp2 ); } }
void FFSet::GetDisplayTokens( TNameTable &Tokens ) { if ( ff_developer->integer ) { Tokens.push_back( "order" ); Tokens.push_back( "files" ); } }
void FFSystem::GetDisplayTokens( TNameTable &Tokens ) { FFChannelSet::GetDisplayTokens( Tokens ); if ( ff_developer->integer ) { Tokens.push_back( "effects" ); } }
void FFSet::Display( TNameTable &Unprocessed, TNameTable &Processed ) { for ( TNameTable::iterator itName = Unprocessed.begin() ; itName != Unprocessed.end() ; ){ if ( stricmp( "order", (*itName).c_str() ) == 0 ) { if ( ff_developer->integer ) DisplaySearchOrder(); //else // Com_Printf( "\"order\" only available when ff_developer is set\n" ); Processed.push_back( *itName ); itName = Unprocessed.erase( itName ); } else if ( stricmp( "files", (*itName).c_str() ) == 0 ) { if ( ff_developer->integer ) DisplayLoadedFiles(); //else // Com_Printf( "\"files\" only available when ff_developer is set\n" ); Processed.push_back( *itName ); itName = Unprocessed.erase( itName ); } else { itName++; } } }
void FFChannelSet::Display( TNameTable &Unprocessed, TNameTable &Processed ) { FFMultiSet::Display( Unprocessed, Processed ); for ( TNameTable::iterator itName = Unprocessed.begin() ; itName != Unprocessed.end() ; ){ if ( stricmp( "channels", (*itName).c_str() ) == 0 ) { Com_Printf( "[available channels]\n" ); for ( int i = 0 ; i < FF_CHANNEL_MAX ; i++ ){ Com_Printf( "%d) %s devices:", i, gChannelName[ i ] ); for ( ChannelIterator itChannel( mChannel, i ) ; itChannel != mChannel.end() ; ++itChannel ){ Com_Printf( " %d", (**itChannel).second ); } Com_Printf( "\n" ); } Processed.push_back( *itName ); itName = Unprocessed.erase( itName ); } else if ( stricmp( "devices", (*itName).c_str() ) == 0 ) { Com_Printf( "[initialized devices]\n" ); for ( int i = 0 ; i < mDevices->GetNumDevices() ; i++ ){ char ProductName[ FF_MAX_PATH ]; ProductName[ 0 ] = 0; mDevices->GetDevice( i )->GetProductName( ProductName, FF_MAX_PATH - 1 ); Com_Printf( "%d) %s\n", i, ProductName ); } Processed.push_back( *itName ); itName = Unprocessed.erase( itName ); } else { itName++; } } }
void FFSystem::Display( TNameTable &Unprocessed, TNameTable &Processed ) { for ( TNameTable::iterator itName = Unprocessed.begin() ; itName != Unprocessed.end() ; ){ if ( stricmp( "effects", (*itName).c_str() ) == 0 ) { if ( ff_developer->integer ) { Com_Printf( "[registered effects]\n" ); TNameTable EffectNames; int total = 0; Channel::Set &ffSet = mChannel.GetSets(); for ( int i = 0 ; i < ffSet.size() ; i++ ){ char ProductName[ FF_MAX_PATH ]; *ProductName = 0; ffSet[ i ]->GetDevice()->GetProductName( ProductName, FF_MAX_PATH - 1 ); Com_Printf( "%s...\n", ProductName ); EffectNames.clear(); EffectNames.resize( mHandle.size(), "" ); ffSet[ i ]->GetRegisteredNames( EffectNames ); for ( int j = 1 ; j < EffectNames.size() ; j++ ){ if ( EffectNames[ j ].length() ) Com_Printf( "%3d) \"%s\" channel=%d\n", total++, EffectNames[ j ].c_str(), mHandle[ j ].GetChannel() ); } } EffectNames.clear(); EffectNames.resize( mHandle.size(), "" ); if ( mHandle.GetFailedNames( EffectNames ) ) { Com_Printf( "Failed Registrants...\n" ); for ( int j = 1 ; j < EffectNames.size() ; j++ ){ if ( EffectNames[ j ].length() ) Com_Printf( "%3d) \"%s\" channel=%d\n", total++, EffectNames[ j ].c_str(), mHandle[ j ].GetChannel() ); } } } //else //{ // Com_Printf( "\"effects\" only available when ff_developer is set\n" ); //} Processed.push_back( *itName ); itName = Unprocessed.erase( itName ); } else { itName++; } } mChannel.Display( Unprocessed, Processed ); }
void FFChannelSet::GetDisplayTokens( TNameTable &Tokens ) { FFMultiSet::GetDisplayTokens( Tokens ); Tokens.push_back( "channels" ); Tokens.push_back( "devices" ); }