# In the FMOD Engine, I set up Resonanceaudio's RoomProperties without encountering any errors, but also didn't observe any changes

**URL:** <https://qa.fmod.com/t/in-the-fmod-engine-i-set-up-resonanceaudios-roomproperties-without-encountering-any-errors-but-also-didnt-observe-any-changes/21882>\
**Category:** FMOD Engine\
**Tags:** csharp\
**Created:** [July 14, 2024, 1:03pm UTC](https://qa.fmod.com/t/in-the-fmod-engine-i-set-up-resonanceaudios-roomproperties-without-encountering-any-errors-but-also-didnt-observe-any-changes/21882 "2024-07-14T13:03:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZheYinX](https://avatars.discourse-cdn.com/v4/letter/z/54ee81/32.png) [@ZheYinX](https://qa.fmod.com/u/ZheYinX)\
**Post date:** [July 14, 2024, 1:03pm UTC](https://qa.fmod.com/t/in-the-fmod-engine-i-set-up-resonanceaudios-roomproperties-without-encountering-any-errors-but-also-didnt-observe-any-changes/21882/1 "2024-07-14T13:03:08Z")

</div>

As the title suggests, I’ve encountered a significant issue. I’ve scoured the forums for relevant information and found a crucial post:

> [@Using resonance audio FMOD plugin without using FMOD Studio](https://qa.fmod.com/t/using-resonance-audio-fmod-plugin-without-using-fmod-studio/18724):
>
> Hi there, we’re trying to use the resonance audio plugin for fmod via the fmod core api’s I’m manually creating and attaching the Resonance Audio Listener DSP to an appropriate channel group. And manually attaching a Resonance Audio Source DSP to the channel of a sound that I want to play as spatial audio. during update i’m updating both the fmod 3d position information for the channel, and sending FMOD\_DSP\_PARAMETER\_3DATTRIBUTES to the Resonance Audio Source DSP’s data parameter 7. in this …

The post was using C++, while I’m utilizing C#. However, the objective was the same as mine. I’m unsure where my problem lies; here is the code:

```csharp
namespace VRaudio
{
    public enum MaterialName
    {
        kTransparent = 0,
        kAcousticCeilingTiles,
        kBrickBare,
        kBrickPainted,
        kConcreteBlockCoarse,
        kConcreteBlockPainted,
        kCurtainHeavy,
        kFiberGlassInsulation,
        kGlassThin,
        kGlassThick,
        kGrass,
        kLinoleumOnConcrete,
        kMarble,
        kMetal,
        kParquetOnConcrete,
        kPlasterRough,
        kPlasterSmooth,
        kPlywoodPanel,
        kPolishedConcreteOrTile,
        kSheetrock,
        kWaterOrIceSurface,
        kWoodCeiling,
        kWoodPanel,
        kUniform,
        kNumMaterialNames
    };

    [StructLayout(LayoutKind.Sequential)]
    public struct RoomProperties
    {
        public float[] Position;
        public float[] Rotation;
        public float[] Dimensions;
        public MaterialName[] Material_Names;
        public float Reflection_Scalar;
        public float Reverb_Gain;
        public float Reverb_Time;
        public float Reverb_Brightness;
    }
}

```

Below is the code for creating the structure and setting it to the Resonance Audio Listener parameters:

```csharp
VRaudio.RoomProperties Room = new RoomProperties();
Room.Position = new float[3] { 0, 0, 0 };
Room.Rotation = new float[4] { 0, 0, 0, 1 };
Room.Dimensions = new float[3] { 100, 100, 100 };
Room.Material_Names = new MaterialName[6] { MaterialName.kMetal, MaterialName.kMetal, MaterialName.kMetal, MaterialName.kMetal, MaterialName.kMetal, MaterialName.kMetal };
Room.Reflection_Scalar = 1;
Room.Reverb_Gain = 1;
Room.Reverb_Time = 1;
Room.Reverb_Brightness = 0;
var data = StructToBytes(Room);
FR(dsp.setParameterData(1, data));

```

I’ve checked the return values, there are no issues, and there’s no crashing, but no room reverb effect is present. I have already used the Resonance Audio Source; loading sounds presents no problems.  
The `StructToBytes` function is also working fine. I can’t understand what could be causing this lack of change. I hope you can help me!  
I genuinely appreciate any assistance!

---

<div class="post-metadata">

**Author:** ![ZheYinX](https://avatars.discourse-cdn.com/v4/letter/z/54ee81/32.png) [@ZheYinX](https://qa.fmod.com/u/ZheYinX)\
**Post date:** [July 15, 2024, 4:24am UTC](https://qa.fmod.com/t/in-the-fmod-engine-i-set-up-resonanceaudios-roomproperties-without-encountering-any-errors-but-also-didnt-observe-any-changes/21882/2 "2024-07-15T04:24:08Z")

</div>

Thank you, I have found the problem!

---

<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:** [July 15, 2024, 6:21am UTC](https://qa.fmod.com/t/in-the-fmod-engine-i-set-up-resonanceaudios-roomproperties-without-encountering-any-errors-but-also-didnt-observe-any-changes/21882/3 "2024-07-15T06:21:44Z")

</div>

Hi,

Good to hear you have found a solution. Would you be able to share it?
