hello !
i m reading a wav file by int b=ins.read(); and writing b on other wav file by
outs.write(b); in a loop until b==-1
where
InputStream ins = new FileInputStream ("C:/audio.wav");
OutputStream outs = new FileOututStream (new File("c:/audio1.wav"));
its playing
but when i write something to output file in byte form having some value from my own it does not play
eg. byte b[] = new byte[1];
and b[0] having some value 123 and writing b by
outs.write(b); at some place and copying other as it is.
it show an error when on playing ie. cannot create audio stream from input stream
what is the problem with this? can anyone help me out?
i m reading a wav file by int b=ins.read(); and writing b on other wav file by
outs.write(b); in a loop until b==-1
where
InputStream ins = new FileInputStream ("C:/audio.wav");
OutputStream outs = new FileOututStream (new File("c:/audio1.wav"));
its playing
but when i write something to output file in byte form having some value from my own it does not play
eg. byte b[] = new byte[1];
and b[0] having some value 123 and writing b by
outs.write(b); at some place and copying other as it is.
it show an error when on playing ie. cannot create audio stream from input stream
what is the problem with this? can anyone help me out?
Comment