![]() |
[FTC]: How to play sound from NXT
Hello there, my team is trying to play a sound by pressing a button on the controller. The sound is one that we have put onto the brick, not a stock sound. It will play the sound if selected in the sound menu on the brick, however we can not figure out how to play it when we press a button, we are using RobotC.
Thanks, Greg |
Re: [FTC]: How to play sound from NXT
Assuming you use button 1 to play the sound:
Code:
if (joy1Btn(1)) |
Re: [FTC]: How to play sound from NXT
Thats what it was. We just forgot to put in the quotation marks.
|
Re: [FTC]: How to play sound from NXT
We found that using a clearsounds() (or something like that) at the beginning would stop the sound from repeating indefinately.
|
Re: [FTC]: How to play sound from NXT
Now how do you download sound files onto the nxt? I've tried to download multiple files in mp3 format to the brick so that we can play the sound when we press a button.
|
Re: [FTC]: How to play sound from NXT
You have to convert the mp3 to a .rso
just google it- there is a free converter. |
| All times are GMT -5. The time now is 18:08. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi