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 562979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:36:41+00:00 2026-05-13T12:36:41+00:00

test1.mp3 and test2.mp3 have the same bitrate and sample rate, and I’m trying to

  • 0

test1.mp3 and test2.mp3 have the same bitrate and sample rate, and I’m trying to merge them in an HTTP response. The resulting file is test.mp3.

test.mp3 plays fine in WMP12 and VLC. In WMP11, I hear only the audio which came from test1.mp3. At the moment you expect to hear the beginning of test2.mp3’s audio, the player stops playing. WMP11 reports no errors… it just stops playing.

What needs to change such that test.mp3 will play correctly in WMP11?

protected void Page_Load(object sender, EventArgs e) {
    Response.Clear();
    Response.ContentType = "audio/mpeg";
    Response.AddHeader("Content-Disposition", "attachment; filename=test.mp3");
    var bytes1 = System.IO.File.ReadAllBytes(@"C:\test1.mp3");
    WriteBytesToResponse(bytes1);
    var bytes2 = System.IO.File.ReadAllBytes(@"C:\test2.mp3");
    WriteBytesToResponse(bytes2);
    Response.End();
}

private void WriteBytesToResponse(byte[] sourceBytes) {
    using (var sourceStream = new MemoryStream(sourceBytes, false)) {
        sourceStream.WriteTo(Response.OutputStream);
    }
}
  • 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-13T12:36:41+00:00Added an answer on May 13, 2026 at 12:36 pm

    MP3 files contain a full MPEG1 header, amongst other information, such as the stream length. You simply cannot concatenate them. WMP read the header, determined the playback length, and stops when the first file is done. The rest of the data is ignored as it shouldn’t be there.

    You will need to use some library or utility which understands MPEG1 or MP3 files to do the concatenation.

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

Sidebar

Related Questions

I have a test in Excel VBA: If (test1) And (test2) And (test3) Then
I have two tables test1 { id, name } and test2 { id, name,
function Obj1(param) { this.test1 = param || 1; } function Obj2(param, par) { this.test2
Is there a better way to do the following: $array = array('test1', 'test2', 'test3',
I have the following statement SELECT id, descr from mytable which returns 1, 'Test1'
Does anyone have any useful advice/links to information about working with mp3 files in
I am experimenting with the sampling rate of the mp3 file to convert it
Amazingly, in bash, you can do $ curl http://mp3.streampower.be/radio1-high.mp3 > test.mp3 with an audiostream
I have an mp3 file in my site. I want to output it as
I have a batch process that converts WAV to MP3 sequentially. The problem is

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.