25 |
25 |
26 #include <e32svr.h> |
26 #include <e32svr.h> |
27 #include <e32base.h> |
27 #include <e32base.h> |
28 #include <e32cons.h> |
28 #include <e32cons.h> |
29 #include <tms.h> |
29 #include <tms.h> |
30 #include <TmsFactory.h> |
30 #include <tmsfactory.h> |
31 #include <TmsCall.h> |
31 #include <tmscall.h> |
32 #include <TmsStream.h> |
32 #include <tmsstream.h> |
33 #include <TmsFormat.h> |
33 #include <tmsformat.h> |
34 #include <TmsDtmf.h> |
34 #include <tmsclientsink.h> |
35 #include <TmsClientSink.h> |
35 #include <tmsclientsource.h> |
36 #include <TmsClientSource.h> |
36 #include <tmsclientsourceobsrvr.h> |
37 #include <TmsClientSourceObsrvr.h> |
37 #include <tmsclientsinkobsrvr.h> |
38 #include <TmsClientSinkObsrvr.h> |
38 #include <tmsvolumeeffect.h> |
39 #include <TmsVolumeEffect.h> |
39 #include <tmsglobalvoleffect.h> |
40 #include <TmSGlobalVolEffect.h> |
40 #include <tmsgaineffect.h> |
41 #include <TmsGainEffect.h> |
41 #include <tmsglobalgaineffect.h> |
42 #include <TmSGlobalGainEffect.h> |
42 #include <tmseffectobsrvr.h> |
43 #include <TmsEffectObsrvr.h> |
43 #include <tmsstreamobsrvr.h> |
44 #include <TmsStreamObsrvr.h> |
44 #include <tmsbuffer.h> |
45 #include <TmsBuffer.h> |
45 #include <tmsglobalrouting.h> |
46 #include <TmsGlobalRouting.h> |
46 #include <tmsglobalroutingobsrvr.h> |
47 #include <TmsGlobalRoutingObsrvr.h> |
47 #include <tmsg711format.h> |
48 #include <TMSG711Format.h> |
48 #include <tmsg729format.h> |
49 #include <TMSG729Format.h> |
49 #include <tmsilbcformat.h> |
50 #include <TMSiLBCFormat.h> |
50 #include <tmspcmformat.h> |
51 #include <TMSPCMFormat.h> |
51 #include <tmsamrformat.h> |
52 #include <TMSAMRFormat.h> |
|
53 |
52 |
54 #include "TimeoutController.h" |
53 #include "TimeoutController.h" |
55 |
54 |
56 using namespace TMS; |
55 using namespace TMS; |
57 |
56 |
330 TInt GetEffectType(CStifItemParser& aItem); |
329 TInt GetEffectType(CStifItemParser& aItem); |
331 TInt CreateDownlinkStream(CStifItemParser& aItem); |
330 TInt CreateDownlinkStream(CStifItemParser& aItem); |
332 TInt GetDownlinkVersion(CStifItemParser& aItem); |
331 TInt GetDownlinkVersion(CStifItemParser& aItem); |
333 TInt CreateUplinkStream(CStifItemParser& aItem); |
332 TInt CreateUplinkStream(CStifItemParser& aItem); |
334 TInt GetUplinkVersion(CStifItemParser& aItem); |
333 TInt GetUplinkVersion(CStifItemParser& aItem); |
335 TInt CreateDTMFTonePlayer(CStifItemParser& aItem); |
|
336 TInt DeleteDTMFTonePlayer(CStifItemParser& aItem); |
|
337 TInt CreateRingTonePlayer(CStifItemParser& aItem); |
|
338 TInt GetSupportedFormats(CStifItemParser& aItem); |
334 TInt GetSupportedFormats(CStifItemParser& aItem); |
339 TInt IsCallTypeSupported(CStifItemParser& aItem); |
335 TInt IsCallTypeSupported(CStifItemParser& aItem); |
340 // TInt GetSupportedUplinkFormats( CStifItemParser& aItem ); |
|
341 TInt SetDownlinkFormat(CStifItemParser& aItem); |
336 TInt SetDownlinkFormat(CStifItemParser& aItem); |
342 TInt SetUplinkFormat(CStifItemParser& aItem); |
337 TInt SetUplinkFormat(CStifItemParser& aItem); |
343 TInt ReSetDownlinkFormat(CStifItemParser& aItem); |
338 TInt ReSetDownlinkFormat(CStifItemParser& aItem); |
344 TInt ReSetUplinkFormat(CStifItemParser& aItem); |
339 TInt ReSetUplinkFormat(CStifItemParser& aItem); |
345 TInt OpenDownlink(CStifItemParser& aItem); |
340 TInt OpenDownlink(CStifItemParser& aItem); |
349 TInt Pause(CStifItemParser& aItem); |
344 TInt Pause(CStifItemParser& aItem); |
350 TInt Stop(CStifItemParser& aItem); |
345 TInt Stop(CStifItemParser& aItem); |
351 TInt Close(CStifItemParser& aItem); |
346 TInt Close(CStifItemParser& aItem); |
352 TInt Gain(CStifItemParser& aItem); |
347 TInt Gain(CStifItemParser& aItem); |
353 TInt Volume(CStifItemParser& aItem); |
348 TInt Volume(CStifItemParser& aItem); |
354 |
|
355 TInt InitDTMFTonePlayer(CStifItemParser& aItem); |
|
356 TInt DTMFTonePlay(CStifItemParser& aItem); |
|
357 TInt CloseDTMFPlayer(CStifItemParser& aItem); |
|
358 TInt StopDTMFTonePlayer(CStifItemParser& aItem); |
|
359 |
349 |
360 TInt GetBufferType(CStifItemParser& aItem); |
350 TInt GetBufferType(CStifItemParser& aItem); |
361 |
351 |
362 // TInt GetSupportedBitrates( CStifItemParser& aItem ); |
352 // TInt GetSupportedBitrates( CStifItemParser& aItem ); |
363 |
353 |
428 |
418 |
429 TMSFactory* iFactory; |
419 TMSFactory* iFactory; |
430 TMSStream* iTmsDnlink; |
420 TMSStream* iTmsDnlink; |
431 TMSCall* iTmsCall; |
421 TMSCall* iTmsCall; |
432 TMSStream* iTmsUplink; |
422 TMSStream* iTmsUplink; |
433 TMSDTMF* iDTMFTonePlayerDn; |
|
434 TMSDTMF* iDTMFTonePlayerUp; |
|
435 TMSAudioOutput iDevice; |
423 TMSAudioOutput iDevice; |
436 |
424 |
437 // Codec format APIs |
425 // Codec format APIs |
438 TMSBuffer* iTmsBuffer; |
426 TMSBuffer* iTmsBuffer; |
439 TMSFormat* iTmsFormat; |
427 TMSFormat* iTmsFormat; |
464 |
452 |
465 // For storing codec configuration locally |
453 // For storing codec configuration locally |
466 TBool iPlc; |
454 TBool iPlc; |
467 TBool iCng; |
455 TBool iCng; |
468 TBool iVad; |
456 TBool iVad; |
469 // TBool iFrameMode; |
|
470 // TBool iFrameModeReqEC; |
|
471 // TBool iSpkr; |
|
472 guint iMaxGain; |
457 guint iMaxGain; |
473 guint iGain; |
458 guint iGain; |
474 guint iMaxVolume; |
459 guint iMaxVolume; |
475 guint iVolume; |
460 guint iVolume; |
476 TUint currentBitrate; |
461 TUint currentBitrate; |
477 // RArray<TUint> iBitratesArray; |
|
478 |
462 |
479 // For streaming buffer control |
463 // For streaming buffer control |
480 TMSBuffer* iPlayBuf; |
464 TMSBuffer* iPlayBuf; |
481 TMSBuffer* iRecBuf; |
465 TMSBuffer* iRecBuf; |
482 // TPtr8 iPlayBufPtr; |
|
483 // TPtr8 iRecBufPtr; |
|
484 |
|
485 TBool iPlayBufReady; |
466 TBool iPlayBufReady; |
486 TBool iRecBufReady; |
467 TBool iRecBufReady; |
487 |
468 |
488 // Active object with a timer to timeout the test case |
469 // Active object with a timer to timeout the test case |
489 CSimpleTimeout * iTimeoutController; |
470 CSimpleTimeout * iTimeoutController; |