how to get beep/click sound on each touch on touch pad ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to get beep/click sound on each touch on touch pad ?

1,324 Views
nagesha71
Contributor I

Hi,

My requirement is to get a beep/click sound on each press on touch pad on Java application.

Are there any possibilities to get this feature ?

Your suggestions will be helpful a lot.

thanks,

-Nagesh A

Tags (1)
0 Kudos
4 Replies

1,127 Views
gatelogic
Contributor I

Hmm... the beep functionality is JVM-dependent, I suppose.  What's the JVM you're using?

Can you play a wav file from within java successfully?

0 Kudos

1,127 Views
nagesha71
Contributor I

Hello Alister Roberts,

Thanks for the response.

Our requirement is to development a Java app on Linux. We have tried
test cases and ended up with no luck.
Objective of this application is to sound a long/short beeps on conditionally.

1. the beep sound using a Toolkit beep(), as given below.
Toolkit.getDefaultToolkit().beep();

2. tried code as mentioned in below link.
http://www.rgagnon.com/javadetails/java-0001.html

3. Simple C application with printf's as,
printf("\a");  and printf("\7");

In all the three cases we failed to get beep sound when we run in the target.

But on host PC, the beep sound is coming when we run these templates,
as the host PC is having a buzzer support.

Can you tell us, whether tablet supports buzzer kind of feature (as
when PC gives beep sounds on booting) ?

We are able to play *.wav with aplay tool as, "aplay -D hw:0,0 bird.wav" from command shell.

thanks & regards,

-Nagesh A

0 Kudos

1,127 Views
gatelogic
Contributor I

If you just want to do this in your Java application, then you could implement it entirely there.

You don't say which operating system you're running on the tablet, so it's hard to advise on anything else...

0 Kudos

1,127 Views
nagesha71
Contributor I

Hi again,

I am using i.MX53 SABRE tablet, which used eGalax driver with the following vendor id & version.

vendor = 0x0EEF;
product = 0x0020;
version = 0x0001;

Can any suggest me whether this driver has the support of sound feature on every touch on touchscreen ?

thanks,

-Nagesh A

0 Kudos