Did you solved it, brother? I am having similar problem. Need help. If you figured it out, please share
On Monday, August 24, 2009 at 7:00:58 AM UTC+6, tommylion wrote: > > Hi all, > > I used Class MediaRecorder to play mp3 file, > the source like this: > ------------------------------------------------------------------ > MediaRecorder recorder = new MediaRecorder(); > recorder.setAudioSource(MediaRecorder.AudioSource.MIC); > recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); > recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); > recorder.setOutputFile(PATH_NAME); > recorder.prepare(); > recorder.start(); > ------------------------------------------------------------------ > > It runs no problem. > But I want to get the stream,and write the byte array to the stream, > let mick sound the refreing voice. > > by use java source I can did that. > the source like this: > ------------------------------------------------------------------ > SourceDataLine line = (SourceDataLine)AudioSystem.getLine(info); > SourceDataLine line = (SourceDataLine)AudioSystem.getLine(info); > // Initialize Audio > line.open(); line.start(); > byte[] block = new byte[1024]; > line.write(block, 0, block.length); > line.drain(); > ------------------------------------------------------------------ > > you know,Android SDK don't include the class SourceDataLine(package > javax.sound.sampled). > > and who can tell me how to deal with that. > thank you! > > tommy > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/2e4422de-72a1-4190-b85b-e069dcb0d197%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.