You cannot simply concatenate sound or video files.
Sound and video files contain structured data with headers giving details on the data that follows and other information such as tags that give information about the file but are nothing to do with the actual sound data.
See the MP3 file format;
MP3 File Format Specification[
^]
MP3 - Wikipedia[
^]
Also, put MP3 in the search box on this site to see code examples of manipulating MP3's.