|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-C6ABE2CA-901E-55F1-9837-7018A1612BCF" xml:lang="en"><title>Set Up</title><shortdesc>Describes how to use the template port to start your port.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
13 <p>The code for the template port Sound Driver is split into two files: </p> |
|
14 <ul> |
|
15 <li id="GUID-6CF84764-1EE7-5891-8212-33A1548958B8"><p>This file holds the |
|
16 code for the record driver channel </p> <p> <filepath> ...\template\template_variant\specific\soundsc_rx.cpp</filepath> </p> </li> |
|
17 <li id="GUID-3309787F-7D0E-5E9A-A7B0-B55E0A7AA0FB"><p>This file holds code |
|
18 for the playback driver channel together with code which is common to both |
|
19 channels. </p> <p> <filepath>...\template\template_variant\specific\soundsc_tx.cpp</filepath> </p> </li> |
|
20 </ul> |
|
21 <p>The header file for the above can be found in: </p> |
|
22 <p> <filepath>...\template\template_variant\inc\soundsc_plat.h</filepath> </p> |
|
23 <p>The template <filepath>.mmp</filepath> file can be found in: </p> |
|
24 <p> <filepath>...\template\template_variant\soundsctemplate.mmp</filepath> </p> |
|
25 <p>Following the general pattern, your implementation is contained in the |
|
26 directory: </p> |
|
27 <p> <filepath>path to your variant\specific</filepath> </p> |
|
28 <p>For example, <filepath>...\omap_hrp\h4\specific</filepath> </p> |
|
29 <p>Now complete these steps: </p> |
|
30 <ul> |
|
31 <li id="GUID-77DD9781-8D04-50F9-A372-BCED22354FC3"><p>create a copy of the |
|
32 template port implementation files <filepath>soundsc_rx.cpp</filepath> and <filepath>soundsc_tx.cpp</filepath>, |
|
33 copy them into your variant specific directory </p> </li> |
|
34 <li id="GUID-A6A250DB-F4D6-58F5-88A0-C86A919C7076"><p>create a copy of the |
|
35 header file <filepath>soundsc_plat.h</filepath>, copy it to the include directory |
|
36 for your variant </p> </li> |
|
37 <li id="GUID-785D0DF1-7251-5408-ADEA-5BE2CF9CD4F6"><p>rename the Sound Driver |
|
38 PDD factory class <filepath>DTemplateSoundScPddFactory</filepath>, to reflect |
|
39 the name of your device </p> </li> |
|
40 <li id="GUID-0D45F6BD-AB06-5F04-BCC7-D3A7B16FCE20"><p>rename the classes <filepath>DTemplateSoundScRxPdd</filepath> and <filepath>DTemplateSoundScTxPdd</filepath> to reflect the name of your device. </p> </li> |
|
41 </ul> |
|
42 <p><note> You should also be prepared to add your own private data and functions |
|
43 to the Sound Driver. </note></p> |
|
44 </conbody></concept> |