devsound/a3fdevsound/src/devsoundadaptor/mmfdevsoundadaptation.cpp
changeset 6 fe9d1bf55678
parent 0 b8ed18f6c07b
equal deleted inserted replaced
5:b220a9341636 6:fe9d1bf55678
   576 	iBody->PlayToneSequenceL(aData);
   576 	iBody->PlayToneSequenceL(aData);
   577 	DP_OUT();
   577 	DP_OUT();
   578 	}
   578 	}
   579 
   579 
   580 // -----------------------------------------------------------------------------
   580 // -----------------------------------------------------------------------------
   581 // CMMFDevSoundAdaptation::PlayFixedSequenceL
       
   582 // Initializes audio device and start playing the specified pre-defined tone
       
   583 // sequence.
       
   584 // Leaves on failure.
       
   585 // (other items were commented in a header).
       
   586 // -----------------------------------------------------------------------------
       
   587 //
       
   588 EXPORT_C void CMMFDevSoundAdaptation::PlayFixedSequenceL(
       
   589 								TInt aSequenceNumber)
       
   590 	{
       
   591 	DP_CONTEXT(CMMFDevSoundAdaptation::PlayFixedSequenceL *CD1*, CtxDevSound, DPLOCAL);
       
   592 	DP_IN();
       
   593 	iBody->PlayFixedSequenceL(aSequenceNumber);
       
   594 	DP_OUT();
       
   595 	}
       
   596 
       
   597 // -----------------------------------------------------------------------------
       
   598 // CMMFDevSoundAdaptation::SetToneRepeats
   581 // CMMFDevSoundAdaptation::SetToneRepeats
   599 // Defines the number of times the audio is to be repeated during the tone
   582 // Defines the number of times the audio is to be repeated during the tone
   600 // playback operation. A period of silence can follow each playing of tone.
   583 // playback operation. A period of silence can follow each playing of tone.
   601 // The tone playing can be repeated indefinitely.
   584 // The tone playing can be repeated indefinitely.
   602 // (other items were commented in a header).
   585 // (other items were commented in a header).
   675 	DP_IN();
   658 	DP_IN();
   676 	DP_OUT();
   659 	DP_OUT();
   677     // TODO - Need to revisit this to allow for async operation
   660     // TODO - Need to revisit this to allow for async operation
   678 	TAny* retVal = iBody->CustomInterface(aInterfaceId);
   661 	TAny* retVal = iBody->CustomInterface(aInterfaceId);
   679 	DP0_RET(retVal, "0x%x");	
   662 	DP0_RET(retVal, "0x%x");	
   680 	}
       
   681 
       
   682 // -----------------------------------------------------------------------------
       
   683 // CMMFDevSoundAdaptation::FixedSequenceCount
       
   684 // Returns the number of available pre-defined tone sequences.
       
   685 // This is the number of fixed sequence supported by DevSound by default.
       
   686 // (other items were commented in a header).
       
   687 // -----------------------------------------------------------------------------
       
   688 //
       
   689 EXPORT_C TInt CMMFDevSoundAdaptation::FixedSequenceCount()
       
   690 	{
       
   691 	DP_CONTEXT(CMMFDevSoundAdaptation::FixedSequenceCount *CD1*, CtxDevSound, DPLOCAL);
       
   692 	DP_IN();
       
   693 	TInt retVal = iBody->FixedSequenceCount();
       
   694 	DP0_RET(retVal, "%d");			
       
   695 	}
       
   696 
       
   697 // -----------------------------------------------------------------------------
       
   698 // CMMFDevSoundAdaptation::FixedSequenceName
       
   699 // Returns the name assigned to a specific pre-defined tone sequence.
       
   700 // This is the number of fixed sequence supported by DevSound by default.
       
   701 // The function raises a panic if sequence number specified invalid.
       
   702 // (other items were commented in a header).
       
   703 // -----------------------------------------------------------------------------
       
   704 //
       
   705 EXPORT_C const TDesC& CMMFDevSoundAdaptation::FixedSequenceName(
       
   706 								TInt aSequenceNumber)
       
   707 	{
       
   708 	DP_CONTEXT(CMMFDevSoundAdaptation::FixedSequenceName *CD1*, CtxDevSound, DPLOCAL);
       
   709 	DP_IN();
       
   710 	DP_OUT();
       
   711 	return(iBody->FixedSequenceName(aSequenceNumber));						
       
   712 	}
   663 	}
   713 
   664 
   714 // -----------------------------------------------------------------------------
   665 // -----------------------------------------------------------------------------
   715 // CMMFDevSoundAdaptation::GetSupportedInputDataTypesL
   666 // CMMFDevSoundAdaptation::GetSupportedInputDataTypesL
   716 // see sounddevice.h
   667 // see sounddevice.h