|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.dctl.hardware.mp3.Decoder
This represents an MP3 decoder. The MP3 decoder has a number of fixed size buffers that are used to transmit data to the decoder without having to allocate any buffers while running.
| Nested Class Summary | |
class |
Decoder.Buffer
The buffer class |
| Field Summary | |
static int |
DCT_CONST_MP3_NORMAL_DATA
Normal data packet |
| Constructor Summary | |
Decoder(int numBuffers,
int bufferSize)
Create a new decoder that has the specified number of buffers of the specified size |
|
| Method Summary | |
void |
clearBuffers()
Clear the buffers |
void |
endTrack()
Finish a track |
int |
getBitRate()
Get the bit rate in kbits/sec |
Decoder.Buffer |
getEmptyBuffer()
Get an empty buffer |
int |
getLeftVolume()
Get the left volume |
int |
getRightVolume()
Get the right volume |
int |
getTrackTime()
Get the track time |
void |
sendFullBuffer(Decoder.Buffer buffer)
Send a full buffer to the player |
void |
setLeftVolume(int left)
Set the left volume |
void |
setRightVolume(int right)
Set the right volume |
void |
start()
Start the decoder running |
void |
startTrack()
Start a new track |
void |
stop()
Stop the decoder running |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DCT_CONST_MP3_NORMAL_DATA
| Constructor Detail |
public Decoder(int numBuffers,
int bufferSize)
throws SystemException
numBuffers - The number of buffersbufferSize - The size of the buffers
SystemException - if there is an error doing this| Method Detail |
public void startTrack()
throws SystemException
SystemException - if there is an error
public void endTrack()
throws SystemException
SystemException - if there is an error
public void start()
throws SystemException
SystemException - if there is an error
public void stop()
throws SystemException
SystemException - if there is an error
public int getLeftVolume()
throws SystemException
SystemException - if there is an error
public int getRightVolume()
throws SystemException
SystemException - if there is an error
public void setLeftVolume(int left)
throws SystemException
SystemException - if there is an error
public void setRightVolume(int right)
throws SystemException
SystemException - if there is an error
public int getTrackTime()
throws SystemException
SystemException - if there is an error
public int getBitRate()
throws SystemException
SystemException - if there is an error
public Decoder.Buffer getEmptyBuffer()
throws SystemException
SystemException - if there is an error getting the buffer
public void sendFullBuffer(Decoder.Buffer buffer)
throws SystemException
buffer - The populated buffer to send
SystemException - if there is an error sending the buffer
public void clearBuffers()
throws SystemException
SystemException - if there is an error clearing the buffers
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||