# Playing multiple audio files at once in JUCE

**URL:** <https://forum.juce.com/t/playing-multiple-audio-files-at-once-in-juce/43456>\
**Category:** General JUCE discussion\
**Created:** [December 25, 2020, 7:04pm UTC](https://forum.juce.com/t/playing-multiple-audio-files-at-once-in-juce/43456 "2020-12-25T19:04:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethanpvr18](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@ethanpvr18](https://forum.juce.com/u/ethanpvr18)\
**Post date:** [December 25, 2020, 7:04pm UTC](https://forum.juce.com/t/playing-multiple-audio-files-at-once-in-juce/43456/1 "2020-12-25T19:04:02Z")

</div>

I can’t seem to figure out how to play multiple files with no limit using JUCE. What I am having trouble with is when I run this getNextAudioBlock method below it returns an error saying: `Built-in Output (9): EXC_BAD_ACCESS (code=1, address=0xc415f1d5b80)`

CODE:

```
void getNextAudioBlock (const juce::AudioSourceChannelInfo& bufferToFill) override {
        if(rowNumSelected != 0){
            if (readerSource.get() == nullptr){
                bufferToFill.clearActiveBufferRegion();
                return;
            }
                             
            mixer.getNextAudioBlock (bufferToFill);
        }
    }

```

ENTIRE CODE:

[https://github.com/ethanpvr18/Day-to-Dark](https://github.com/ethanpvr18/Day-to-Dark)
