Skip to content

Audio-problem: SoundEffect / SoundEffectInstance - not playing. TypeLoadException.. #5

Description

@MortenTantum

Trying to play audio-file in MonoGame - embedded in a WPF-app: Via

SoundEffect _sound = null;
SoundEffectInstance _soundSpil;

It gives me the error below. Anyone know how to solve this issue?

System.TypeLoadException
HResult=0x80131522
Message=Could not load type 'SharpDX.ComObjectCallback' from assembly 'SharpDX, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b4dcf0f35e5521f1'.
Source=MonoGame.Framework
StackTrace:
at Microsoft.Xna.Framework.Audio.SoundEffectInstance.PlatformDispose(Boolean disposing)
at Microsoft.Xna.Framework.Audio.SoundEffectInstance.Dispose(Boolean disposing)
at Microsoft.Xna.Framework.Audio.SoundEffectInstance.Finalize()

The file is silent, not playing...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions