equal
deleted
inserted
replaced
81 #endif |
81 #endif |
82 #ifdef USE_FILE_FORMATS |
82 #ifdef USE_FILE_FORMATS |
83 |
83 |
84 //=/TInt KErrRecFormats = -1130; |
84 //=/TInt KErrRecFormats = -1130; |
85 //[*]TPtrC FileNamePtr; |
85 //[*]TPtrC FileNamePtr; |
86 TInt Error=KErrNone; |
86 |
87 //[*]if ( !section->GetLine(KTagSoundFile, FileNamePtr, ENoTag) ) |
87 //[*]if ( !section->GetLine(KTagSoundFile, FileNamePtr, ENoTag) ) |
88 //[*] { |
88 //[*] { |
89 //[*] TFileName FileName = FileNamePtr; |
89 //[*] TFileName FileName = FileNamePtr; |
90 //[*] iLogger->Log(_L("Creating simple player with file [%S]"), &FileNamePtr); |
90 //[*] iLogger->Log(_L("Creating simple player with file [%S]"), &FileNamePtr); |
91 //[*] CSimpleSoundPlayer *sndPlayer = CSimpleSoundPlayer::NewLC( FileName, TestModuleIf() , *iLogger); |
91 //[*] CSimpleSoundPlayer *sndPlayer = CSimpleSoundPlayer::NewLC( FileName, TestModuleIf() , *iLogger); |
132 //TRAPD(err3,controller = CMMFControllerImplementationInformation::NewL( *(aArray[j]) ) ); |
132 //TRAPD(err3,controller = CMMFControllerImplementationInformation::NewL( *(aArray[j]) ) ); |
133 |
133 |
134 if (err3 != KErrNone) |
134 if (err3 != KErrNone) |
135 { |
135 { |
136 iLogger->Log(_L("Error %d openning controller"),err3); |
136 iLogger->Log(_L("Error %d openning controller"),err3); |
137 aResult.iResult = Error = err3; |
137 aResult.iResult = err3; |
138 break; |
138 break; |
139 //continue; |
139 //continue; |
140 } |
140 } |
141 CleanupStack::PushL(controller); |
141 CleanupStack::PushL(controller); |
142 |
142 |
148 CleanupStack::PushL(info); |
148 CleanupStack::PushL(info); |
149 |
149 |
150 for (TInt l = 0; l < (info->SupportedFileExtensions()).Count(); l++) |
150 for (TInt l = 0; l < (info->SupportedFileExtensions()).Count(); l++) |
151 { |
151 { |
152 iLogger->Log(_L("Calling CMMFFormatImplementationInformation::SupportedFileExtensions()")); |
152 iLogger->Log(_L("Calling CMMFFormatImplementationInformation::SupportedFileExtensions()")); |
153 iLogger->Log(_L("Format supported: %S"),(info->SupportedFileExtensions())[l]); |
153 //iLogger->Log(_L("Format supported: %S"),(info->SupportedFileExtensions())[l]); |
154 } |
154 } |
155 CleanupStack::PopAndDestroy(); |
155 CleanupStack::PopAndDestroy(); |
156 } |
156 } |
157 formats.Close(); |
157 formats.Close(); |
158 CleanupStack::PopAndDestroy(controller); |
158 CleanupStack::PopAndDestroy(controller); |