devsound/a3fdevsound/src/mmfdevsoundproxy/mmfdevsoundproxy.cpp
changeset 6 fe9d1bf55678
parent 0 b8ed18f6c07b
equal deleted inserted replaced
5:b220a9341636 6:fe9d1bf55678
   854 	iToneMode = ESequence;
   854 	iToneMode = ESequence;
   855 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::PlayToneSequenceL - Exit"));
   855 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::PlayToneSequenceL - Exit"));
   856 	}
   856 	}
   857 
   857 
   858 // -----------------------------------------------------------------------------
   858 // -----------------------------------------------------------------------------
   859 // RMMFDevSoundProxy::PlayFixedSequenceL
       
   860 // Plays the fixed sequence.
       
   861 // (other items were commented in a header).
       
   862 // -----------------------------------------------------------------------------
       
   863 //
       
   864 EXPORT_C void RMMFDevSoundProxy::PlayFixedSequenceL(TInt aSequenceNumber)
       
   865 	{
       
   866 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::PlayFixedSequenceL - Enter"));
       
   867 	if(iState==ETonePlaying)
       
   868 		{
       
   869 		SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::PlayFixedSequenceL - Exit"));
       
   870 		return;
       
   871 		}
       
   872 			
       
   873 	if (!iDevSoundObserver || iState!=EInitialized)
       
   874 		{
       
   875 		User::Leave(KErrNotReady);
       
   876 		}
       
   877 
       
   878 	TPckgBuf<TInt> seqNum(aSequenceNumber);
       
   879 	User::LeaveIfError(SendReceive(EMMFDevSoundProxyPlayFixedSequence, iDestinationPckg, seqNum));
       
   880 	iState = ETonePlaying;
       
   881 	iToneMode = EFixedSequence;
       
   882 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::PlayFixedSequenceL - Exit"));
       
   883 	}
       
   884 
       
   885 // -----------------------------------------------------------------------------
       
   886 // RMMFDevSoundProxy::SetDTMFLengths
   859 // RMMFDevSoundProxy::SetDTMFLengths
   887 // Set attributes for playing DTMF String.
   860 // Set attributes for playing DTMF String.
   888 // (other items were commented in a header).
   861 // (other items were commented in a header).
   889 // -----------------------------------------------------------------------------
   862 // -----------------------------------------------------------------------------
   890 //
   863 //
  1100 				prioritySet);
  1073 				prioritySet);
  1101 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::SetPrioritySettings - Exit"));
  1074 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::SetPrioritySettings - Exit"));
  1102 	}
  1075 	}
  1103 
  1076 
  1104 // -----------------------------------------------------------------------------
  1077 // -----------------------------------------------------------------------------
  1105 // RMMFDevSoundProxy::FixedSequenceName
       
  1106 // Returns the name of fixed sequence for a given sequence number.
       
  1107 // (other items were commented in a header).
       
  1108 // -----------------------------------------------------------------------------
       
  1109 //
       
  1110 EXPORT_C const TDesC& RMMFDevSoundProxy::FixedSequenceName(TInt /*aSequenceNumber*/)
       
  1111 	{
       
  1112 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::FixedSequenceName - Enter"));
       
  1113 	_LIT(KNullDesC, "");
       
  1114 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::FixedSequenceName - Exit"));
       
  1115 	return KNullDesC;
       
  1116 	}
       
  1117 
       
  1118 // -----------------------------------------------------------------------------
       
  1119 // RMMFDevSoundProxy::CustomInterface
  1078 // RMMFDevSoundProxy::CustomInterface
  1120 // Returns a pointer to CustomInterface object.
  1079 // Returns a pointer to CustomInterface object.
  1121 // (other items were commented in a header).
  1080 // (other items were commented in a header).
  1122 // -----------------------------------------------------------------------------
  1081 // -----------------------------------------------------------------------------
  1123 //
  1082 //
  1142 							pckg, pckg2);
  1101 							pckg, pckg2);
  1143 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::CustomInterface - Exit"));
  1102 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::CustomInterface - Exit"));
  1144 	return reinterpret_cast<TAny*> (customInterface);
  1103 	return reinterpret_cast<TAny*> (customInterface);
  1145 	}
  1104 	}
  1146 	
  1105 	
  1147 // -----------------------------------------------------------------------------
       
  1148 // RMMFDevSoundProxy::FixedSequenceCount
       
  1149 // Returns the number of fixed sequences supported by DevSound.
       
  1150 // (other items were commented in a header).
       
  1151 // -----------------------------------------------------------------------------
       
  1152 //
       
  1153 EXPORT_C TInt RMMFDevSoundProxy::FixedSequenceCount()
       
  1154 	{
       
  1155 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::FixedSequenceCount - Enter"));
       
  1156 	TPckgBuf<TInt> fixSeqCountPckg;
       
  1157 	SendReceiveResult(EMMFDevSoundProxyFixedSequenceCount,
       
  1158 					iDestinationPckg,
       
  1159 					KNullDesC8,
       
  1160 					fixSeqCountPckg);
       
  1161 
       
  1162 	SYMBIAN_DEBPRN0(_L("RMMFDevSoundProxy[0x%x]::FixedSequenceCount - Exit"));
       
  1163 	return fixSeqCountPckg();
       
  1164 	}
       
  1165 
       
  1166 // -----------------------------------------------------------------------------
  1106 // -----------------------------------------------------------------------------
  1167 // RMMFDevSoundProxy::BufferToBeFilledData
  1107 // RMMFDevSoundProxy::BufferToBeFilledData
  1168 // Returns data buffer for playback.
  1108 // Returns data buffer for playback.
  1169 // -----------------------------------------------------------------------------
  1109 // -----------------------------------------------------------------------------
  1170 //
  1110 //