ShootersForever.com Forum Index

GoldenEye 007 Nintendo 64 Community, GoldenEye X, Nintendo 64 Games Discussion
GoldenEye Cheats, GoldenEye X Codes, Tips, Help, Nintendo 64 Gaming Community


adding your own audio

 
Post new topic   Reply to topic    ShootersForever.com Forum Index -> Q-Lab Hacking Department
View previous topic :: View next topic  
madmax386
Agent
Agent


Joined: 30 Apr 2008
Posts: 196
Location: New Zealand

 PostPosted: Thu May 01, 2008 8:57 pm    Post subject: adding your own audio Reply with quote Back to top

i was wondering if there was any way of adding your own audio or music to goldeneye or perfect dark?
 
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
SubDrag
Administrator
Administrator


Joined: 16 Aug 2006
Posts: 6125

 PostPosted: Fri May 02, 2008 3:06 am    Post subject: Reply with quote Back to top

We don't know the audio format but would love for someone who does to help there!
 
View user's profile Send private message
Kode-Z
Hacker
Hacker


Joined: 09 Nov 2007
Posts: 1142
Location: London, England

 PostPosted: Fri May 02, 2008 9:23 am    Post subject: Reply with quote Back to top

I believe the audio format is a .usf file, which in layman's terms is a more advanced version of the MIDI file. The instruments used in the tracks are taken from a soundbank which is stored in the ROM (similiar to a soundbank stored on an electronic keyboard). [Please correct me if I'm wrong, but I'm sure this is right!]

I remember I made an AR code years back which removed certain instrument parts from the tracks in GE.

It's funny you should mention this as I have been working on this for a while. As a musician myself, I have composed my own version of the James Bond Theme that I think would be great for a solo mission!
 
View user's profile Send private message
radorn
007
007


Joined: 23 Sep 2007
Posts: 1424

 PostPosted: Fri May 02, 2008 12:11 pm    Post subject: Reply with quote Back to top

Kode-Z.
USF is not the format for goldeneye, nor for any game, but rather for N64.
USF files are not something that exist inside a rom, but rather USF's are hacked and trimmed down roms (.libusf) plus custom save states (.miniusf) of the game's execution so they only contain the stuff necessary to play music.
The player is actually a N64 emulator that runs these roms and the songs are "selected" through the use of those save states.

You can play the music not because the player understands the specific format of a given game, but because the trimmed down ROM contains the program that runs on n64's hardware to play it. USF's contain both the sequences and samples AND the program that plays them on the N64. USF set makers don't need to understand a game's specific format because they already have the code that plays it inside the very game.

You can't, say, modify or create a USF an insert it in a ROM. It just doesn't work that way. USF's are not MIDIs, not even close.
MIDI is an interpretable sequence of commands that play sounds on an instrument (be it virtual or real), while USF is a complex custom pile of code that HAPPENS TO SERVE THE PURPOSE OF PLAYING MUSIC, but you don't intepret it, you rather execute it as is. You don't understand it more than you understand N64's hardware.
 
View user's profile Send private message
Kode-Z
Hacker
Hacker


Joined: 09 Nov 2007
Posts: 1142
Location: London, England

 PostPosted: Fri May 02, 2008 12:44 pm    Post subject: Reply with quote Back to top

radorn wrote:
Kode-Z.
USF is not the format for goldeneye, nor for any game, but rather for N64.
USF files are not something that exist inside a rom, but rather USF's are hacked and trimmed down roms (.libusf) plus custom save states (.miniusf) of the game's execution so they only contain the stuff necessary to play music.
The player is actually a N64 emulator that runs these roms and the songs are "selected" through the use of those save states.

You can play the music not because the player understands the specific format of a given game, but because the trimmed down ROM contains the program that runs on n64's hardware to play it. USF's contain both the sequences and samples AND the program that plays them on the N64. USF set makers don't need to understand a game's specific format because they already have the code that plays it inside the very game.

You can't, say, modify or create a USF an insert it in a ROM. It just doesn't work that way. USF's are not MIDIs, not even close.
MIDI is an interpretable sequence of commands that play sounds on an instrument (be it virtual or real), while USF is a complex custom pile of code that HAPPENS TO SERVE THE PURPOSE OF PLAYING MUSIC, but you don't intepret it, you rather execute it as is. You don't understand it more than you understand N64's hardware.


Fair enough - Looks like the person who told me this info a few years back didn't know what he was talking about! I was merely quoting that person, hence the comment about correcting me if I'm wrong, which you did!!! Wink

I don't have a lot of knowledge on the N64 Hardware, but the info this person told me just seemed to make sense.
 
View user's profile Send private message
zoinkity
007
007


Joined: 24 Nov 2005
Posts: 1687

 PostPosted: Sat May 03, 2008 8:31 am    Post subject: Reply with quote Back to top

To get a better idea how you program audio, I suggest looking at some of BigN's demos, as well as the tracker and mp3 demo source. The last two were probably the work of either obsidian or crazynation - can't remember off hand.

As for reverse-engineering the audio code... Well, it may have used only standard libraries with no modification. If that's the case, then the same can be done to generate new audio. If not... well, that would suck royally. Either way it's a pain. There's too many other things to do.
_________________
(\_/) Beware
(O.o) ze
(> <) Hoppentruppen!
 
View user's profile Send private message Send e-mail
DELETED
Guest





 PostPosted: Sat May 03, 2008 8:40 am    Post subject: Re: adding your own audio Reply with quote Back to top

DELETED

Last edited by DELETED on Sat May 03, 2008 8:45 am; edited 2 times in total
 
zoinkity
007
007


Joined: 24 Nov 2005
Posts: 1687

 PostPosted: Sat May 03, 2008 8:43 am    Post subject: Reply with quote Back to top

PD is different. It uses mp3s with a different header or something.

You can recover the audio binary however by setting a small bit of code off of the AI interrupt, copying the pertinent data to a set location. As for interpretation, that would require reverse-engineering the routine and reading an awful lot of documents.
_________________
(\_/) Beware
(O.o) ze
(> <) Hoppentruppen!
 
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    ShootersForever.com Forum Index -> Q-Lab Hacking Department All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Cobalt 2.0 BB theme/template by Jakob Persson.
Copyright © 2002-2004 Jakob Persson


Powered by BB © 01, 02 BB Group

 


Please Visit My Other Sites: GoldenEyeForever.com | GrandTheftAutoForever.com

Got kids? Check out my Dora The Explorer site with games and coloring pages!

Our forums feature Nintendo 64 games, GoldenEye 007 N64 New Maps and Missions, GoldenEye Cheats, N64 Emulator, Gameshark, GoldenEye Multiplayer and more!

[ Privacy Policy ]