| View previous topic :: View next topic |
| Author |
Message |
Scott08495
Joined: 28 Jun 2008 Posts: 1
Digg It |
Posted: Sat Jun 28, 2008 10:39 pm Post subject: How to get sound? |
|
|
Hi my name is Scott this is my first ever post. I am a true time scripter and i am brand new to this program glovepie. I was just wondering how do i get a sound to come out of my computer speaker or out of the wiimote speaker please reply |
|
| Back to top |
|
 |
Wreyth

Joined: 03 Nov 2007 Posts: 91
Digg It |
Posted: Mon Jun 30, 2008 4:34 am Post subject: |
|
|
i belive if i remember right off the top of my head it's
playsound("C:\whaterver\whatever.wav")
i'm not at my pc at the moment to verify but i think thats it you just have to include the path and the filename in (" ") |
|
| Back to top |
|
 |
WiiAreVenom
Joined: 11 Oct 2008 Posts: 2
Digg It |
Posted: Mon Oct 13, 2008 1:08 am Post subject: |
|
|
I just tried it and it does indeed play sound from the computer speakers that way.
| Code: | | playsound("D:\Music\spectacular spider-man\The Spectacular Spider-Man_Theme.wav") = Wiimote1.One |
|
|
| Back to top |
|
 |
MoreDread
Joined: 30 Oct 2008 Posts: 21
Digg It |
Posted: Fri Oct 31, 2008 1:37 pm Post subject: |
|
|
as far as i've heard you can't really use the wiimote speakers yet.
you can tell it to play a frequency value
| Code: | if wiimote.up
var.freq = var.freq + 10
endif
if wiimote.down
var.freq = var.freq - 10
endif
wiimote.frequency = var.freq |
this will allow you to change the frequency with the up and down buttons on the dpad
havent found anything on actually playing a sample tho |
|
| Back to top |
|
 |
|