The OpenD Programming Language

AudioStream.writeSamplesFloat

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

  1. int writeSamplesFloat(const(float)* inData, int frames)
    struct AudioStream
    nothrow @nogc nothrow @nogc
    int
    writeSamplesFloat
    (
    const(float)* inData
    ,
    int frames
    )
  2. int writeSamplesFloat(const(float)[] 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