Due to the fact that Ben has minute after sizzling minute of music lately (I think that he has broken the hour mark, in fact) and due to the fact that ChainGangGuy's song "Untitled" (it's the one by the Pseudo Band -- it is in a thread in the AG) has quickly become one of my favorite songs period, I decided to take the plunge and have music in the thing I'm working on.
It's 7:00am in the morning and I've been up way too long. But what I do recall is that music has been a topic of conversation in this base, and I want to share what code I write with everyone. I've got two main questions that I'll answer when I wake up:
1) What's the difference between the "music" and "playmusic" library functions?
2) Can Hugo recognize on move #2 that it is playing a given song per the request of what went on in move #1? Can you essentially generate an awareness of what's being played? Can this be tested for? If the answers to these questions result in the affirmative, it opens up the door to many possibilties. If not, I think (but I'm not sure) that I need to get it to the point where it can do this.
The first question is in the manual, so I just need to run a search for that. The second one I'll investigate when I wake up.
Hugo -- interactive sound. (sort of.)
Moderators: Ice Cream Jonsey, joltcountry
- Ice Cream Jonsey
- Posts: 30193
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Hugo -- interactive sound. (sort of.)
the dark and gritty...Ice Cream Jonsey!
-
- Posts: 976
- Joined: Sat Apr 27, 2002 4:03 pm
- Location: Scotland, Bonnie
- Contact:
come to Abertay. We have Hot Chix. And sweet little Indian girls with scottish accents. C'mon.
Not your deal? Then how about Asian girls with upper-class English accents?
JUST DO IT UP!
(durr-dee-dee-dee-durr-durr-durr-durr-dee-dee-durrdurrdurrdurrdurrdeedurrdurr).
It's a shame that one of my favourite songs of all time is from the original Command & Conquer, and I play Quantum Redshift two it.
THEY ARE TWO COMPLETLEY DIFFERENT GENRES!
Not your deal? Then how about Asian girls with upper-class English accents?
JUST DO IT UP!
(durr-dee-dee-dee-durr-durr-durr-durr-dee-dee-durrdurrdurrdurrdurrdeedurrdurr).
It's a shame that one of my favourite songs of all time is from the original Command & Conquer, and I play Quantum Redshift two it.
THEY ARE TWO COMPLETLEY DIFFERENT GENRES!
WHOOA!
-
- Posts: 976
- Joined: Sat Apr 27, 2002 4:03 pm
- Location: Scotland, Bonnie
- Contact:
- Ice Cream Jonsey
- Posts: 30193
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
music and PlayMusic
Basically 'music' is the language statement and 'PlayMusic' is a library wrapper around it. The benefit of using PlayMusic whenever you want to start or stop music is that you can keep track of what's being played, not force-restart it if it's already playing, etc. Check resource.h for the global variables set by PlayMusic--you should be able to check these at any time to get the current state of any playing music. (And ditto for PlaySound and sounds.)
- Ice Cream Jonsey
- Posts: 30193
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Ah, that's perfect then. I'll take a look at resource.h. The way you describe it sounds like it behaves in just the way that I hoped that it would.
(I'll close this thread in a bit, so everyone who needed to get in shots to settle the last remaining scores and such should now do so.)
(I'll close this thread in a bit, so everyone who needed to get in shots to settle the last remaining scores and such should now do so.)
the dark and gritty...Ice Cream Jonsey!