# How to play FSB5 files

**URL:** <https://qa.fmod.com/t/how-to-play-fsb5-files/21615>\
**Category:** FMOD Engine\
**Created:** [May 12, 2024, 10:13am UTC](https://qa.fmod.com/t/how-to-play-fsb5-files/21615 "2024-05-12T10:13:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyb46b46](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@cyb46b46](https://qa.fmod.com/u/cyb46b46)\
**Post date:** [May 12, 2024, 10:13am UTC](https://qa.fmod.com/t/how-to-play-fsb5-files/21615/1 "2024-05-12T10:13:34Z")

</div>

I am a beginner in FMOD core API and I am trying to play FSB5 files using C #, but it is not working. I am not sure where the problem lies, and I hope someone can answer it for me. I would greatly appreciate it.

This is my code:

```
    FMOD.System system;
    FMOD.Factory.System_Create(out system);
    FMOD.Sound sound;
    FMOD.Channel channel;
    FMOD.ChannelGroup channelGroup;
    FMOD.CREATESOUNDEXINFO exinfo;

    //string fsbFilePath = "E:\\vorbis.ogg"; //This has a sound
    string fsbFilePath = "E:\\wave_vorbis.fsb"; //This is No sound
    FileInfo fileInfo = new FileInfo(fsbFilePath);
    long fileSize = fileInfo.Length;

    system.init(32, FMOD.INITFLAGS.NORMAL, IntPtr.Zero);

    system.createChannelGroup("MyChannelGroup", out channelGroup);

    exinfo = new FMOD.CREATESOUNDEXINFO();
    exinfo.cbsize = Marshal.SizeOf(exinfo);
    exinfo.fileoffset = 0;
    exinfo.length = (uint)fileSize;
    exinfo.suggestedsoundtype = SOUND_TYPE.FSB;

    system.createSound(fsbFilePath, MODE.DEFAULT, ref exinfo, out sound);

    system.playSound(sound, channelGroup, false, out channel);

    Console.WriteLine("press any key to exit...");
    Console.ReadKey();

    sound.release();
    system.close();
    system.release();

```

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [May 13, 2024, 2:01am UTC](https://qa.fmod.com/t/how-to-play-fsb5-files/21615/2 "2024-05-13T02:01:40Z")

</div>

Hi,

What version of the FMOD integration are you using?

Could you please add an [FMOD\_RESULT](https://fmod.com/docs/2.02/api/core-api-common.html#fmod_result) to the FMOD function calls and log any that do not return `FMOD_OK` and post them here?

The issue may be you are trying to play the `FSBank` rather than the sub sounds attached to it.

Could you please try retrieving the sounds from the `FSBank` first using [Sounds::getSubSound](https://fmod.com/docs/2.02/api/core-api-sound.html#sound_getsubsound) and passing that to the `system.playSound()` call?

Hope this helps!

---

<div class="post-metadata">

**Author:** ![cyb46b46](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@cyb46b46](https://qa.fmod.com/u/cyb46b46)\
**Post date:** [May 13, 2024, 11:08am UTC](https://qa.fmod.com/t/how-to-play-fsb5-files/21615/3 "2024-05-13T11:08:17Z")

</div>

that worked, thanks!
