AudioStream.writeSamplesFloat

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

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

Meta