Page 1 of 1

Hugo -- interactive sound. (sort of.)

Posted: Sun Feb 16, 2003 7:03 am
by Ice Cream Jonsey
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.

Posted: Sun Feb 16, 2003 4:19 pm
by Lex
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!

Posted: Sun Feb 16, 2003 4:22 pm
by Lex
I SAID TEH RONG KINDOF TWOOOO! TO!

Posted: Sun Feb 16, 2003 4:29 pm
by PoliticallyIncorrectSpide
Shut up, 'Ho!

You got any black chicks? Black chicks give you ANAL!

---Dah 'Spide!

Posted: Sun Feb 16, 2003 4:46 pm
by Offensive Spider
fuk u, don steal my shtik

u got 1 of thos 'special' keybords, didn u

rich yuppie dumfuk

Posted: Sun Feb 16, 2003 7:07 pm
by Ice Cream Jonsey
Thanks for ruining everything, Lex.

music and PlayMusic

Posted: Sun Feb 16, 2003 7:53 pm
by Kent
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.)

Posted: Sun Feb 16, 2003 9:42 pm
by Ice Cream Jonsey
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.)