Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6020363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:33:30+00:00 2026-05-23T03:33:30+00:00

This is something which has been bugging me. If I create a SoundEffectInstance via

  • 0

This is something which has been bugging me. If I create a SoundEffectInstance via SoundEffect.CreateInstance() I’m meant to dispose of it when I’m finished with it. SoundEffect.CreateInstance() does not use ContentManager as far as i can tell.

So does it load from file or does it keep a copy in memory? Loading from file would obviously be very slow :-/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:33:31+00:00Added an answer on May 23, 2026 at 3:33 am

    It’s an implementation detail. You don’t know for sure, it doesn’t matter, it might differ between platforms, and it might change in the future.

    However you can make an educated guess: First of all the fact that SoundEffectInstance exists, and that you load sound files into SoundEffect indicates that SoundEffect is probably responsible for holding the sound effect in memory. And the existence of SoundEffect.FromStream and the buffer-based SoundEffect constructors are strong indications that SoundEffect must have a mechanism for keeping a sound buffer in memory. Therefore it is fairly safe to assume that when you load a SoundEffect from a file, it uses the same mechanism.

    If it’s really important, you could test it by deleting or modifying the sound file, after loading the SoundEffect, and then creating an instance.

    As always, if performance is really important, you should measure it.

    Of course, creating a SoundEffectInstance does allocate resources (audio voices, managed and probably unmanaged memory). So it’s not something that you should be creating regularly if you can avoid it – such as by pooling and reusing instances. When you’re using SoundEffect.Play, then SoundEffect is internally managing a pool of SoundEffectInstance objects for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey all. Something which has been bugging me quite a bit recently is this
Have a question regarding something which has been bugging me for some time now.I'm
This is just a simple question. I've been reading the source of something which
Something that has been bugging me since I read an answer on another stackoverflow
I’ve got a long string object which has been formatted like this myString =
Ok, this has been bugging me for a while now. And I wonder how
I'm programming a game in the C# XNA framework and something has been bugging
Something which has been frustrating me is the CSS border:dotted; rule. I have been
I've data which looks something like this. | id | name | depth |
I have a class which looks something like this: public class Test { private

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.