|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.kwis.msp.media.Clip
이 클래스는 Player에 의해 재생되는 클립을 구현한다.
Field Summary | |
protected byte[] |
buf
|
protected int |
bufLength
|
protected int[] |
duration
|
protected int |
eventParm
|
protected int |
front
|
protected int[] |
hiFreq
|
protected boolean |
isNotifyWM
|
protected int |
left
|
protected int[] |
lowFreq
|
protected int |
magicID
|
protected int |
playerID
|
protected int |
prgID
|
protected int |
rear
|
protected int[] |
tone
|
protected int |
waterMarkLength
|
Constructor Summary | |
Clip(String type)
특정 타입의 클립을 생성한다. |
|
Clip(String type,
byte[] buf)
이미 데이타가 저장되어 있는 매개변수를 받아들여 클립을 생성한다. |
|
Clip(String type,
int bufSize)
특정 타입의 CLIP을 생성한다. |
|
Clip(String type,
String resourceName)
|
Method Summary | |
protected void |
atomicGetUpdate(int getSize)
|
protected void |
atomicPutUpdate(int putSize)
|
int |
availableDataSize()
클립에서 이용가능한 데이타 크기(클립 내부버퍼 크기가 아님) |
void |
clearData()
클립내의 이용가능한 데이타를 모두 버린다. |
protected static int |
control(int playerID,
int cmd,
Object buf1,
Object buf2)
HAL단의 MH_mdaControl()에 연결되는 함수이다. |
int |
getData(byte[] buf,
int off,
int len)
클립에서 buf로 미디어 데이타를 복사한다. |
protected int |
getPlayerID(String type)
|
String |
getType()
클립의 Type을 구한다. |
int |
getVolume()
클립 재생기의 볼륨을 읽어온다. |
protected int |
mediaFreeze()
|
protected int |
mediaReadData()
|
protected int |
mediaWriteData()
|
protected boolean |
playStart(boolean repeat)
Player.play(Clip clip, boolean repeat)메쏘드안에서 실제 재생함수를 부르기전 repeat값을 매개변수로 불러준다. |
boolean |
playUpdate(int event,
int parm)
클립 재생시 상태변화를 알린다. |
int |
putData(byte[] buf,
int off,
int len)
클립에 미디어 데이타를 복사한다. |
protected boolean |
recordStart()
Player.record(Clip clip)메쏘드안에서 실제 record함수를 부르기전 불러준다. |
boolean |
setBuffer(byte[] buf,
int dataSize)
클립의 내부버퍼을 설정한다. |
void |
setListener(PlayListener listener)
클립 재생시 상태변화를 알려줄 listener를 등록한다. |
boolean |
setPosition(int ms)
재생을 시작할 위치를 설정한다. |
boolean |
setVolume(int level)
클립 재생기의 볼륨을 설정한다. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int prgID
protected int playerID
protected byte[] buf
protected int[] tone
protected int[] hiFreq
protected int[] lowFreq
protected int[] duration
protected int bufLength
protected int left
protected int front
protected int rear
protected int waterMarkLength
protected boolean isNotifyWM
protected int magicID
protected int eventParm
Constructor Detail |
public Clip(String type, int bufSize)
type
- 리소스 타입bufSize
- 클립내부에 생성될 버퍼의 크기(바이트 단위)public Clip(String type)
type
- 리소스 타입public Clip(String type, byte[] buf)
type
- 리소스 타입buf
- 데이타가 들어 있는 버퍼public Clip(String type, String resourceName)
Method Detail |
protected int getPlayerID(String type)
protected void atomicPutUpdate(int putSize)
protected int mediaWriteData()
protected void atomicGetUpdate(int getSize)
protected int mediaReadData()
protected int mediaFreeze()
protected static int control(int playerID, int cmd, Object buf1, Object buf2)
public boolean setBuffer(byte[] buf, int dataSize)
buf
- 버퍼dataSize
- 버퍼안에 들어있는 데이타 크기public int putData(byte[] buf, int off, int len)
buf
- 데이타 버퍼off
- 버퍼 offsetlen
- 복사할 크기public int getData(byte[] buf, int off, int len)
buf
- 클립내부의 데이타가 복사될 버퍼off
- 복사될 시작위치len
- 복사될 크기public int availableDataSize()
public void clearData()
public String getType()
public boolean setPosition(int ms)
ms
- 클립 재생을 시작할 시작 시점(milli second)public final int getVolume()
public final boolean setVolume(int level)
level
- 볼륨값public void setListener(PlayListener listener)
listener
- 새로운 listener, 만일 null 이면 기존 것을 제거함protected boolean playStart(boolean repeat)
repeat
- Player.play()에 전달된 repeat값protected boolean recordStart()
public boolean playUpdate(int event, int parm)
event
- 상태값parm
- 각 event에 추가 전달값이 있을 경우 사용
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AromaSoft Corp. Proprietary and Confidential
(C)opyright 2003 AromaSoft Corp. All right reserved.
Contact : contact@aromasoft.com