Hey.

I am doing some experiments for my own entertainment. I want to break an .mp3 file into smaller files. I found some pieces of codes arround to get an idea and so i wrote:

myFs = new FileStream( "TestTrack.mp3", FileMode.Open, FileAccess.Read );
Byte[] MyByteArray = new Byte[128000];
myFs.Read (MyByteArray, 0, MyByteArray.Length);

then i save this stream to a file "tempfile.mp3".

As it is there, tempfile.mp3 is an exact copy of the original file "TestTrack.mp3"

The aim is to save only some bytes of the original file in a stream or something and save it as an .mp3 file and then play it.


But why all that? I am planing to write an application, that records Line-In signal from my soundcard as a wav or mp3 file, then using buffers send the streams to a client or server program using sockets , which will read the stream and play it while receiving the next one.

So i am at the moment playing arround with small pieces of code to make sure that i fully understand what i am doing.

I will greatly appreciate your help and i'll be happy to share my complete code with u when its finished as there is nothing realy neat arround such an application on the net for amateur programmers.