ROBOTC.net forums
http://robotc.net/forums/

Shouldn't this program produce sound on the EV3???
http://robotc.net/forums/viewtopic.php?f=1&t=9290
Page 1 of 1

Author:  OldieRoboC [ Sun Aug 31, 2014 10:16 pm ]
Post subject:  Shouldn't this program produce sound on the EV3???

// This is written in RobotC 4.1 for a EV3
task main()
{
while(true) // Do FOREVER!
{
clearSounds(); // Clear EV3 sound buffer

// Shouldn't at least ONE of these sounds work???
playSound(soundBeepBeep); // Play a BeepBeep sound
//playTone(500, 100); // 1000 Hz tone for 1 second

sleep(2000); // Sleep for 2 seconds
}
}

It compiles without error but it just blinks the green lights...

Author:  Sirius [ Sun Aug 31, 2014 10:27 pm ]
Post subject:  Re: Shouldn't this program produce sound on the EV3???

I think sound was only added in 4.25!

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/