First public contribution.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\multimedia\t_sound2_helper.cpp
19 #include <e32std_private.h>
21 #include "t_soundutils.h"
25 RTest test(_L("t_sound_api_helper"));
27 // don't use JIT if running on emulator because don't want to halt
29 User::SetJustInTime(EFalse);
32 TInt r= User::GetTIntParameter(KSlot, unit);
35 test.Start(_L("t_sound_api_helper"));
37 r = soundSc.Open(unit);
38 test.Printf(_L("RSoundSc::Open --> r=%d\n"), r);
39 test(r==KErrNone || r==KErrPermissionDenied);
44 // Panic with the return code from Open so that t_sound_api
45 // can check for the right error code.
46 User::Panic(KSoundAPICaps, r);
48 // unused return value - present to prevent compiler warning