equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Interface indicating changes in the playback state. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 package com.nokia.mid.sound; |
|
20 |
|
21 /** |
|
22 * <p> |
|
23 * This interface is used by applications which need to receive events |
|
24 * that indicate changes in the playback state of the Sound objects. |
|
25 * </p> |
|
26 * @see com.nokia.mid.sound.Sound |
|
27 * @version 1.1 |
|
28 * @since 1.0 |
|
29 */ |
|
30 |
|
31 public interface SoundListener |
|
32 { |
|
33 |
|
34 /** |
|
35 * Called when playback state of an Sound has been changed. |
|
36 * Listener will be notified when playback has been started |
|
37 * or stopped. |
|
38 * @see com.nokia.mid.sound.Sound#setSoundListener(SoundListener listener) |
|
39 * @see com.nokia.mid.sound.Sound#SOUND_PLAYING |
|
40 * @see com.nokia.mid.sound.Sound#SOUND_STOPPED |
|
41 * @param sound the sound object this event relates to |
|
42 * @param event the sound changed event, SOUND_PLAYING or SOUND_STOPPED |
|
43 * @since 1.0 |
|
44 */ |
|
45 public abstract void soundStateChanged(Sound sound, int event); |
|
46 |
|
47 } |