|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfi.helsinki.cs.ohtu.mpeg2.audio.AudioEncoder
public abstract class AudioEncoder
Represents an abstract audio encoder.
| Nested Class Summary | |
|---|---|
static class |
AudioEncoder.Mode
Represents an encoder mode. |
static class |
AudioEncoder.SampleRate
Represents a sample rate. |
| Constructor Summary | |
|---|---|
AudioEncoder()
|
|
| Method Summary | |
|---|---|
AudioFrame |
encode(double[] samples)
Encodes a single-channel frame of samples. |
abstract AudioFrame |
encode(double[][] samples)
Encodes a multi-channel frame of samples. |
abstract int |
getSampleFrameSize()
Returns size of next accepted sample frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AudioEncoder()
| Method Detail |
|---|
public abstract int getSampleFrameSize()
public abstract AudioFrame encode(double[][] samples)
x
in samples must satisfy the condition
-1.0 < x < 1.0. Otherwise meaningless loss of detail
may occur.
public AudioFrame encode(double[] samples)
encode(double[][])
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||