forked from hex007/freej2me
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flesh out sprintpcs.media a bit more.
Should be mostly conformant now, after examining a few jars, it appears that the constructor for Clip and DualTone is mostly similar, so the "unknown" arguments were actually priority and vibration. PlayerListener and some additional player methods are also here, although the PlayerListener cycle isn't fully implemented (END_OF_DATA events aren't issued at all, since that would require messing with PlatformPlayer's internals quite a bit, and i want Nokia Tone support before that, as it might conflict)
- Loading branch information
1 parent
696d37d
commit 1b2bf79
Showing
4 changed files
with
92 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
This file is part of FreeJ2ME. | ||
FreeJ2ME is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
FreeJ2ME is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with FreeJ2ME. If not, see http://www.gnu.org/licenses/ | ||
*/ | ||
package com.sprintpcs.media; | ||
|
||
public interface PlayerListener extends javax.microedition.media.PlayerListener | ||
{ | ||
public static final int AUDIO_DEVICE_UNAVAILABLE = 0; | ||
public static final int END_OF_DATA = 1; | ||
public static final int ERROR = 2; | ||
public static final int STARTED = 3; | ||
public static final int STOPPED = 4; | ||
public static final int PAUSED = 5; | ||
public static final int RESUME = 6; | ||
public static final int PREEMPTED = 7; | ||
|
||
public void playerUpdate(int event, Object eventData); | ||
} |