Sound.playtone()

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

Ria09
New User
Posts: 9
Joined: Fri Apr 14, 2017 3:38 pm

Sound.playtone()

Postby Ria09 » Fri Apr 14, 2017 3:52 pm

I'm new to this forum, but I searched similar topics, but i found none(I apologise if this question had been asked before). Is there a way to make Sound.playtone() run in the background while an IR Beacon Button is pressed? (running in background means that the tone is playing and the robot, for example, is driving in circles)

User avatar
gloomyandy
leJOS Team Member
Posts: 5899
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Sound.playtone()

Postby gloomyandy » Fri Apr 14, 2017 6:00 pm

Just create a thread and run one of your tasks on that. Search for Java tutorials and threads
leJOS news https://lejosnews.wordpress.com/

Ria09
New User
Posts: 9
Joined: Fri Apr 14, 2017 3:38 pm

Re: Sound.playtone()

Postby Ria09 » Sun May 14, 2017 6:29 pm

Thank you!


Return to “EV3 Software”

Who is online

Users browsing this forum: No registered users and 1 guest