N
NightCrawler
Hi,
I am doing a project in which I need to deal with Sound input/output.
I am able to play a wave file, and also able to take input from the
microphone and play it back.
To play live data I just keep on dumping the bytes read from
microphone to a stream, and then play it as required. It doesn't mater
that if mic is really getting input or the person holding mic is
silent.
Now my problem is, after starting the TargetDataLine, as soon as that
person starts speaking/making some sound, I need to do somethings, I
am stuck a bit here, not able to find any event that will tell me so,
plz help me.
I'll be Thankful for the solution...
I am doing a project in which I need to deal with Sound input/output.
I am able to play a wave file, and also able to take input from the
microphone and play it back.
To play live data I just keep on dumping the bytes read from
microphone to a stream, and then play it as required. It doesn't mater
that if mic is really getting input or the person holding mic is
silent.
Now my problem is, after starting the TargetDataLine, as soon as that
person starts speaking/making some sound, I need to do somethings, I
am stuck a bit here, not able to find any event that will tell me so,
plz help me.
I'll be Thankful for the solution...