Problems with sound editing

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: [Help] Problems with sound editing

No, no. It's Audacity, for some reason I can't change the bitrate all of the sudden.
 
Joined
Jan 25, 2013
Messages
73
RE: [Help] Problems with sound editing

maybe you need to convert them to wav first, as they are mp3 files I sent you
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: [Help] Problems with sound editing

Yeah, I don't know, this is so odd, I could have sworn I could change the bit rate, I'll try it tomorrow, 3:22 am here.

I definitely know I got it to work earlier today though, no idea what the problem is right now.

Edit: here we go, knew I shoulda used Adobe Audition from the start.

22050hz, 16bit = 356kbps, for wavs. Also switched from stereo to mono.

Exported without a drop in quality, unlike Audacity, works in game.

I'll edit your files real quick.


Edit:

Here you go

Really happy that I got a way of doing it without loss, for the effects, Audacity killed the quality.

Send me any .mp3's you want converted!

P.S. I only tested one file, but I'm sure the others work too.
 
Joined
Jan 25, 2013
Messages
73
RE: [Help] Problems with sound editing

Hey thanks for that
[hr]
I have one more for you. This will be for the sonic weapons in the game, I will be using the geonosiss sonic blaster sound for them.

https://www.dropbox.com/sh/j358oj1myhl5ed6/wqANj3XhxN/Sonic.mp3
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: [Help] Problems with sound editing

Up!

Quality dropped a TINY bit, but I think it had more to do with it going mono than stereo.

Doubt anyone would ever notice it though.
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: [Help] Problems with sound editing

Always happy to help.

By the way, might want to look into this, I found it in the ANH wiki.

I was document them myself, but I'm glad someone else beat me to it. Thought I'd post it, especially since you mentioned volume in the other thread.

46 4f 52 4d // FORM (Element)

00 00 00 a7 // Length Of Data that Follows (Count starts after this byte) (a7 = 167)

53 44 32 44 // SD2D (Element)

30 30 30 33 // 0003 (Version ?)

00 00 00 9b // string length

73 61 6d 70
6c 65 2f 61
6d 62 5f 63
6c 6f 6e 69
6e 67 5f 66
61 63 69 6c
69 74 79 5f
69 6e 74 5f
6c 70 2e 77
61 76 00 00 // sample/amb_cloning_facility_int_lp.wav

00 00 00 00 // ?
00 00 00 00
00

C0 // Bitrate (192)

3F // Volume ?

00 00

C0 // Bitrate (192) (Again?)

3F // Volume ?

FF FF FF FF
FF FF FF FF // ?

00
00 00 00 00
00 00 00 00

00

C0 // Bitrate (192) (Again?)

3F // Volume ?

00 00

C0 // Bitrate (192) (Again?)

3F // Volume ?

00
00 00 00 00
00 00 00 00

00 00 00 00
00 00 00 01
00 00 00 01
00 00 00 00

00 00 00 00
00 00 00 00
00 80 3F 00
00 80 3F 00

00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00

00 00 00 00
00 00 00 02
00 00 00 CD
CC CC 3D
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: [Help] Problems with sound editing

Haha, sorry. It's the hex values inside the .snd files, forgot to specify, got distracted.

Basically:


I haven't tested it, but according to the documentation, the 3F hex I highlighted in the screenshot, would control the volume of that sound in game.

3F= 63, so I'd assume 63% volume

To change it to 100, you'd need to change 3F to 64, which is 100 in hex.

I'll need to check multiple .snd files to see if those really control volume or not, and if the one before it, the '80', controls the bitrate (Actually, weird, the NGE file of the example has the bitrate, supposedly, at 128, while the one the guy from ANH posted about, used 168.)

I'll investigate in the next few days.
 

NotSpamKyle

New Member
Joined
Oct 31, 2013
Messages
2
RE: [Help] Problems with sound editing

Timbab said:
Always happy to help.

By the way, might want to look into this, I found it in the ANH wiki.

I was document them myself, but I'm glad someone else beat me to it. Thought I'd post it, especially since you mentioned volume in the other thread.
I was researching snd files, saw some familiar names, and thought that I would point out that the provided breakdown is slightly incorrect. SND files can contain a list of sounds. The 4 bytes prior to the initial wav path is a list size.
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: [Help] Problems with sound editing

Can you share your notes? I haven't looked into .snd files any further, been busy with other stuff.

I made a thread about file documentation here.

Still got to update it with more of my notes.
 

NotSpamKyle

New Member
Joined
Oct 31, 2013
Messages
2
RE: [Help] Problems with sound editing

Timbab said:
Can you share your notes? I haven't looked into .snd files any further, been busy with other stuff.

I made a thread about file documentation here.

Still got to update it with more of my notes.
I don't have complete notes, just a somewhat renewed morbid curiosity with file formats. The lack of useful tools for SWG is pretty appalling at this point. We had tools to open the tre files and view in 2003, and everything else seems to be a new iteration of the original tools. I'll post if/when I figure out the actual struct. just wanted to point out that the assumptions in the ANH breakdown are at least partially wrong, if not mostly.
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: [Help] Problems with sound editing

Yeah I've noticed errors too.

I'm building a fairly simple tool to edit/create new files based on existing file templates.

So any documentation/notes that you have, let me know.

Still got a few little kinks to iron out, but I'll most likely post a preview soon, maybe tonight, idk yet.
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: [Help] Problems with sound editing

I'd like to update that the ANH documentation I posted on the previous page is all sorts of wrong.

At that point I didn't really understand what a float was and didn't see the obvious.

You're correct Kyle, the 4 byte in front of the file name is an integer of how many files are linked inside the .SND. I've looked at a bunch of .SND files, some can contain upwards of 20 files. Not sure what all the other values below the file names are, but I've mapped them all except for 5 4 bytes, couldn't find a reference if they're floats, ints, booleans, shorts, etc. Every .SND I've opened had them as nul.
 
Top Bottom