os/mm/devsoundextensions/mmfcustominterfaces/ErrConcealmentIntfc/ErrorConcealmentIntfc/src/ErrorConcealmentIntfc.cpp
Update contrib.
2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Interface definition for error concealment interface.
21 #include "ErrorConcealmentIntfcProxy.h"
22 #include "ErrorConcealmentIntfc.h"
23 #include <mdaaudiooutputstream.h>
24 #include <sounddevice.h>
27 // EXTERNAL DATA STRUCTURES
29 // EXTERNAL FUNCTION PROTOTYPES
35 // LOCAL CONSTANTS AND MACROS
37 // MODULE DATA STRUCTURES
39 // LOCAL FUNCTION PROTOTYPES
41 // FORWARD DECLARATIONS
43 // ============================= LOCAL FUNCTIONS ===============================
45 // ============================ MEMBER FUNCTIONS ===============================
47 // -----------------------------------------------------------------------------
48 // CErrorConcealmentIntfc::NewL
49 // Creates the custom interface.
50 // Calls the custom interface method on the devsound passed in.
51 // Devsound will return the handle to the custom interface proxy.
52 // (other items were commented in a header).
53 // -----------------------------------------------------------------------------
55 EXPORT_C CErrorConcealmentIntfc*
56 CErrorConcealmentIntfc::NewL(CMMFDevSound& aDevSound)
58 CErrorConcealmentIntfcProxy* errorConcealmentIntfcProxy;
59 errorConcealmentIntfcProxy =
60 (CErrorConcealmentIntfcProxy*)aDevSound.CustomInterface(
61 KUidErrorConcealmentIntfc);
62 if (!errorConcealmentIntfcProxy)
64 User::Leave(KErrNotFound);
66 return errorConcealmentIntfcProxy;
69 // -----------------------------------------------------------------------------
70 // CErrorConcealmentIntfc::NewL
71 // Creates the custom interface.
72 // Calls the custom interface method on the CMdaAudioOutputStream passed in.
73 // The CMdaAudioOutputStream utility will return the handle to the custom
75 // (other items were commented in a header).
76 // -----------------------------------------------------------------------------
78 EXPORT_C CErrorConcealmentIntfc*
79 CErrorConcealmentIntfc::NewL(CMdaAudioOutputStream& aUtility)
81 CErrorConcealmentIntfcProxy* errorConcealmentIntfcProxy;
82 errorConcealmentIntfcProxy =
83 (CErrorConcealmentIntfcProxy*)aUtility.CustomInterface(
84 KUidErrorConcealmentIntfc);
85 if (!errorConcealmentIntfcProxy)
87 User::Leave(KErrNotFound);
89 return errorConcealmentIntfcProxy;
92 // ========================== OTHER EXPORTED FUNCTIONS =========================