|
YAACC - UPNP Client and Server
|
Converts samples to 16 bit little endian PCM, the only format the sink takes. More...

Classes | |
| enum | Encoding |
| The sample encodings that can be converted. More... | |
Static Public Member Functions | |
| static byte[] | toPcm16 (byte[] source, int offset, int sampleCount, Encoding encoding) |
Converts samples to 16 bit little endian PCM, the only format the sink takes.
Integer samples of more than 16 bit keep their top 16 bits, rounded to nearest (halves up) and clipped; float samples (-1 to 1) are scaled, rounded and clipped, NaN is silence. Pure.
|
static |
| source | samples in encoding, little endian, interleaved |
| sampleCount | how many samples (not frames) to convert; the source must hold at least that many |
sampleCount 16 bit samples, little endian Referenced by de.yaacc.multiroom.codec.PcmFrameDecoder.decode().
