# AudioFormatReader buffer type

**URL:** <https://forum.juce.com/t/audioformatreader-buffer-type/22754>\
**Category:** General JUCE discussion\
**Created:** [June 4, 2017, 5:36pm UTC](https://forum.juce.com/t/audioformatreader-buffer-type/22754 "2017-06-04T17:36:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![conradjones](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@conradjones](https://forum.juce.com/u/conradjones)\
**Post date:** [June 4, 2017, 5:36pm UTC](https://forum.juce.com/t/audioformatreader-buffer-type/22754/1 "2017-06-04T17:36:52Z")

</div>

I am bit confused in trying to use an AudioFormatReader in that this function

` void read (AudioSampleBuffer* buffer,
                   int startSampleInDestBuffer,
                   int numSamples,
                   int64 readerStartSample,
                   bool useReaderLeftChan,
                   bool useReaderRightChan);
`

and uses AudioSampleBuffer

which is typedef’d as a float version of AudioBuffer.

which means makes it tricky to use in the double version of the process function in an AudioProcessor.

I must be missing something.
