# How to listen to several songs mp3 in a row without blocking the program

**URL:** <https://qa.fmod.com/t/how-to-listen-to-several-songs-mp3-in-a-row-without-blocking-the-program/16462>\
**Category:** FMOD Engine\
**Created:** [November 23, 2020, 11:52pm UTC](https://qa.fmod.com/t/how-to-listen-to-several-songs-mp3-in-a-row-without-blocking-the-program/16462 "2020-11-23T23:52:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bastien1](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@Bastien1](https://qa.fmod.com/u/Bastien1)\
**Post date:** [November 23, 2020, 11:52pm UTC](https://qa.fmod.com/t/how-to-listen-to-several-songs-mp3-in-a-row-without-blocking-the-program/16462/1 "2020-11-23T23:52:39Z")

</div>

for(i = 0; i \< 2; i++){  
/\* On ouvre la musique \*/  
resultat = FMOD\_System\_CreateSound(system, musics[i], FMOD\_SOFTWARE | FMOD\_2D | FMOD\_CREATESTREAM, 0, &musique);

```
                        /* On vérifie si elle a bien été ouverte (IMPORTANT) */
                        if (resultat != FMOD_OK)
                        {
                            SDL_ExitWithError("Impossible to read the music");
                        }
                        FMOD_System_PlaySound(system, FMOD_CHANNEL_FREE, musique, 0, NULL);
                    }
```
