Merging Mp3 files together from specific points in time in C#
<p>I am trying to merge two mp3 files together from a specific point time in the first mp3 file to a specific point in time for the 2nd mp3 (in C#) 
When I say specific point in time, I want to copy everything from the first mp3 file 10 sec after it has played and then the entire mp3. Then I want to merge this together with the 2nd mp3 first 20 seconds. How do I do this?</p>

<p>Just to merge the two files together I am doing as follows:</p>

<pre><code>using (var fs = File.OpenWrite("combined.mp3")) 
{ 
  var buffer = File.ReadAllBytes("test1.mp3"); 
  fs.Write(buffer, 0, buffer.Length); 
  buffer = File.ReadAllBytes("test.mp3"); 
  fs.Write(buffer, 0, buffer.Length); fs.Flush(); 
}
</code></pre>

<p>The above code was found somewhere here on Stackoverflow. I know that I am not removing the header from the 2nd file, but this kinda works anyways. (If you can tell me how to remove the header this will be appreciated). </p>

<p>Is there a way to find out how many bytes each second is (or how many frames) in the mp3 files? </p>

<p>Due to the format of my mp3 files I cannot use NAudio.NET. NAudio gives me an error when I try to play these on these mp3 files (Not a recognised MP3 header).</p>
