1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kernel/eka/include/drivers/soundsc.inl Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,79 @@
1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// e32\include\drivers\soundsc.inl
1.18 +// The kernel side inline header file for the shared chunk sound driver.
1.19 +//
1.20 +//
1.21 +
1.22 +/**
1.23 + @file
1.24 + @internalTechnology
1.25 + @prototype
1.26 +*/
1.27 +
1.28 +// class TSndScTransfer
1.29 +
1.30 +inline TInt TSndScTransfer::GetNotStartedLen()
1.31 + {return(iEndOffset-iStartedOffset);}
1.32 +
1.33 +inline TInt TSndScTransfer::GetStartOffset()
1.34 + {return(iStartedOffset);}
1.35 +
1.36 +inline TInt TSndScTransfer::GetLengthTransferred()
1.37 + {return(iLengthTransferred);}
1.38 +
1.39 +// class TSoundScRequest
1.40 +
1.41 +inline TSoundScRequest::TSoundScRequest()
1.42 + {iNext=NULL; iClientRequest=0;}
1.43 +
1.44 +// class TSoundScPlayRequest
1.45 +
1.46 +inline void TSoundScPlayRequest::SetFail(TInt aCompletionReason)
1.47 + {iCompletionReason=aCompletionReason; iTf.iTfState=TSndScTransfer::ETfDone;}
1.48 +
1.49 +inline void TSoundScPlayRequest::UpdateProgress(TInt aLength)
1.50 + {if (iTf.SetCompleted(aLength)) iCompletionReason=KErrNone;}
1.51 +
1.52 +// class TSoundScRequestQueue
1.53 +
1.54 +inline TBool TSoundScRequestQueue::IsEmpty()
1.55 + {return(iPendRequestQ.IsEmpty());}
1.56 +
1.57 +inline TBool TSoundScRequestQueue::IsAnchor(TSoundScRequest* aReq)
1.58 + {return(aReq==&iPendRequestQ.iA);}
1.59 +
1.60 +// class DRecordBufferManager
1.61 +
1.62 +inline TAudioBuffer* DRecordBufferManager::GetCurrentRecordBuffer()
1.63 + {return(iCurrentBuffer);}
1.64 +
1.65 +inline TAudioBuffer* DRecordBufferManager::GetNextRecordBuffer()
1.66 + {return(iNextBuffer);}
1.67 +
1.68 +// class DSoundScLdd
1.69 +
1.70 +inline DSoundScPdd* DSoundScLdd::Pdd()
1.71 + {return((DSoundScPdd*)iPdd);}
1.72 +
1.73 +inline void DSoundScLdd::CompletePlayRequest(TSoundScPlayRequest* aReq,TInt aResult)
1.74 + {aReq->iCompletionReason=aResult; DoCompletePlayRequest(aReq);}
1.75 +
1.76 +inline DSoundScLdd* DSoundScPdd::Ldd()
1.77 + {return(iLdd);}
1.78 +
1.79 +// class DSoundScPdd
1.80 +
1.81 +inline TInt DSoundScPdd::TimeTransferred(TInt64& /*aTime*/, TInt /*aState*/)
1.82 + {return(KErrNotSupported);}