|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
||||
|
||||
|
[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 |
|
#2
|
|||||
|
|||||
|
Re: [FTC]: How to play sound from NXT
Assuming you use button 1 to play the sound:
Code:
if (joy1Btn(1))
{
PlaySoundFile("name of sound file name");
}
|
|
#3
|
|||
|
|||
|
Re: [FTC]: How to play sound from NXT
Thats what it was. We just forgot to put in the quotation marks.
|
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FTC]: Help requested, the NXT is not showing the battery as being connected. | crazilyrandom1 | FIRST Tech Challenge | 2 | 17-01-2009 11:24 |
| [FTC]: [FTC]: Can any one explain to me just how powerful the servos are? | sullivan_owns | FIRST Tech Challenge | 19 | 02-12-2008 16:06 |
| [FTC]: Bluetooth/NXT issues | jbbjjbt | FIRST Tech Challenge | 5 | 23-10-2008 16:56 |
| Saving sound in an AVI from max? | Kevin Thorp | 3D Animation and Competition | 1 | 11-02-2005 13:21 |
| How grammatically sound are you? | Joe Ross | Chit-Chat | 16 | 20-04-2004 23:58 |