sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32\include\drivers\soundsc.inl sl@0: // The kernel side inline header file for the shared chunk sound driver. sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: @prototype sl@0: */ sl@0: sl@0: // class TSndScTransfer sl@0: sl@0: inline TInt TSndScTransfer::GetNotStartedLen() sl@0: {return(iEndOffset-iStartedOffset);} sl@0: sl@0: inline TInt TSndScTransfer::GetStartOffset() sl@0: {return(iStartedOffset);} sl@0: sl@0: inline TInt TSndScTransfer::GetLengthTransferred() sl@0: {return(iLengthTransferred);} sl@0: sl@0: // class TSoundScRequest sl@0: sl@0: inline TSoundScRequest::TSoundScRequest() sl@0: {iNext=NULL; iClientRequest=0;} sl@0: sl@0: // class TSoundScPlayRequest sl@0: sl@0: inline void TSoundScPlayRequest::SetFail(TInt aCompletionReason) sl@0: {iCompletionReason=aCompletionReason; iTf.iTfState=TSndScTransfer::ETfDone;} sl@0: sl@0: inline void TSoundScPlayRequest::UpdateProgress(TInt aLength) sl@0: {if (iTf.SetCompleted(aLength)) iCompletionReason=KErrNone;} sl@0: sl@0: // class TSoundScRequestQueue sl@0: sl@0: inline TBool TSoundScRequestQueue::IsEmpty() sl@0: {return(iPendRequestQ.IsEmpty());} sl@0: sl@0: inline TBool TSoundScRequestQueue::IsAnchor(TSoundScRequest* aReq) sl@0: {return(aReq==&iPendRequestQ.iA);} sl@0: sl@0: // class DRecordBufferManager sl@0: sl@0: inline TAudioBuffer* DRecordBufferManager::GetCurrentRecordBuffer() sl@0: {return(iCurrentBuffer);} sl@0: sl@0: inline TAudioBuffer* DRecordBufferManager::GetNextRecordBuffer() sl@0: {return(iNextBuffer);} sl@0: sl@0: // class DSoundScLdd sl@0: sl@0: inline DSoundScPdd* DSoundScLdd::Pdd() sl@0: {return((DSoundScPdd*)iPdd);} sl@0: sl@0: inline void DSoundScLdd::CompletePlayRequest(TSoundScPlayRequest* aReq,TInt aResult) sl@0: {aReq->iCompletionReason=aResult; DoCompletePlayRequest(aReq);} sl@0: sl@0: inline DSoundScLdd* DSoundScPdd::Ldd() sl@0: {return(iLdd);} sl@0: sl@0: // class DSoundScPdd sl@0: sl@0: inline TInt DSoundScPdd::TimeTransferred(TInt64& /*aTime*/, TInt /*aState*/) sl@0: {return(KErrNotSupported);}