LibMp3LameWrite Method (Int16, Int32, Byte, Int32, Boolean) |
Write 16-bit integer PCM samples to encoder
Namespace: Ozeki.MediaAssembly: OzekiSDK (in OzekiSDK.dll) Version: 1.8.12.0 (1.8.12)
Syntax public int Write(
short[] samples,
int nSamples,
byte[] output,
int outputSize,
bool mono
)
Public Function Write (
samples As Short(),
nSamples As Integer,
output As Byte(),
outputSize As Integer,
mono As Boolean
) As Integer
public:
int Write(
array<short>^ samples,
int nSamples,
array<unsigned char>^ output,
int outputSize,
bool mono
)
member Write :
samples : int16[] *
nSamples : int *
output : byte[] *
outputSize : int *
mono : bool -> int
Parameters
- samples
- Type: SystemInt16
PCM sample data. Interleaved for stereo. - nSamples
- Type: SystemInt32
Number of valid samples. - output
- Type: SystemByte
Buffer to write encoded data to - outputSize
- Type: SystemInt32
Size of buffer. - mono
- Type: SystemBoolean
True if mono, false if stereo.
Return Value
Type:
Int32Number of bytes of encoded data written to output buffer.
See Also