AudioStream.readSamplesDouble

Read interleaved double samples in the given buffer outData.

  1. int readSamplesDouble(double* outData, int frames)
    struct AudioStream
    @nogc
    int
    readSamplesDouble
    (
    double* outData
    ,
    int frames
    )
  2. int readSamplesDouble(double[] outData)

Return Value

Type: int

Number of actually read frames. Multiply by getNumChannels() to get the number of read samples. When that number is less than frames, it means the stream is done decoding, or that there was a decoding error.

TODO: once this returned less than frames, are we guaranteed we can keep calling that and it returns 0?

Meta