title: How do you Load an MP3 file without actually using the Content class?
body: <p>I am a beginner at Programming with C Sharp, and I am using the XNA SDK. I am trying to make a simple game to help my fellow classmates with studying for school, and I decided I would like it if there was some way to have them put music they want to listen to while playing the game inside of a file, and have the game automatically Load the music files, and play them in a playlist.</p>
  
  <p>So far, I am able to get the game to detect whether the files are music, by detecting whether the file path name Contains(".mp3") , but I am trying to actually load the file name into a list of type Song, using a for Loop. The code looks like this.</p>
  
  <p>(Declaration)</p>
  
  <pre><code>List&lt;Song&gt; songsToPlay;
  string[] fileNames
  </code></pre>
  
  <p>(Initialize)</p>
  
  <pre><code>fileNames[] = Directory.GetFiles(".\Music")
  </code></pre>
  
  <p>(LoadContent)</p>
  
  <pre><code>for (int i = 0; i &lt; fileNames.Count(); i++)
  {
        if (fileNames[i].Contains(".mp3")
        {
            songsToPlay.Add(fileNames[i]);
        }
  }
  </code></pre>
  
  <p>I have been trying to find a way to add a whole folder to the Content Directory, and have it do something more like </p>
  
  <pre><code>for (int i = 0; i &lt; fileNames.Count(); i++)
  {
      songsToPlay.Add(Content.Load&lt;Song&gt;("fileNames[i]") 
  }
  </code></pre>
  
  <p>I have been unable to find some way to do this... Does anyone know how to make this work, or a better way to do this?</p>