The OpenD Programming Language

AudioStream.writeSamplesDouble

Write interleaved double samples to the stream, from the given buffer inData[0..frames].

  1. int writeSamplesDouble(const(double)* inData, int frames)
  2. int writeSamplesDouble(const(double)[] inData)
    struct AudioStream
    nothrow @nogc nothrow @nogc
    int
    writeSamplesDouble
    (
    const(double)[] inData
    )

Return Value

Type: int

Number of actually written frames. Multiply by getNumChannels() to get the number of written samples. When that number is less than frames, it means the stream had a write error. In that case, the isError() flag is also set.

Meta