pcm encoder

List your programs here (game-related or other software).

Moderators: scallenger, Rebel, madppiper, TresCom Support Team

User avatar
Rebel
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 6112
Joined: Sun Nov 10, 2002 10:26 pm
Location: That country nobody likes (you know the one)
Contact:

Re: pcm encoder

Post by Rebel »

In case anyone is following my exploits, I've updated the encoder & decoder code (see attachment). Mainly, the only wav that can be encoded is a pcm & for tres' block specific alignment. The decoder doesn't decode anything but tres' ima/dvi adpcms since windows can play the standardized 512 block alignment without intervention. I left the code to decode the 512s anyways just for reference sake.

*see temp_page for files
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14032
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Re: pcm encoder

Post by Draconisaurus »

I think you just saved an entire day of work for JPDS. I might hug you through the monitor if I could. THANK YOU!
User avatar
Rebel
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 6112
Joined: Sun Nov 10, 2002 10:26 pm
Location: That country nobody likes (you know the one)
Contact:

Re: pcm encoder

Post by Rebel »

Well, I'm not big on man hugs, would a cyber-handshake do? :D

I remembered you and a few others where interested in encoding the waves, so it was one of the main reasons that I decided to look into it. Good to hear the effort wasn't for not. :)
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14032
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Re: pcm encoder

Post by Draconisaurus »

Heheh, we should develop a secret Trespasser handshake where you can only move your arm in ways that Anne can.
User avatar
LtSten
Gallimimus
Gallimimus
Posts: 609
Joined: Fri Nov 27, 2009 8:28 pm
Antispam: No
Location: England, UK

Re: pcm encoder

Post by LtSten »

Draconisaurus wrote:Heheh, we should develop a secret Trespasser handshake where you can only move your arm in ways that Anne can.
So you mean in every single possible direction, apart from behind you, including twisting your wrist all the way around and being able to shoot yourself only if you look at the ground?
Bringing TPA CRCs up the well, amongst other file format adventures.
Blender 3.0 TPM Plugin [Project GitHub]
User avatar
tatu
-=TresCom Website Manager=-
-=TresCom Website Manager=-
Posts: 5087
Joined: Fri Jun 24, 2005 9:40 pm
Antispam: No
Location: Sweden
Contact:

Re: pcm encoder

Post by tatu »

And make the bug with arm so it get stick and then walk far away and it's miles in length? :lol:
Active project: Trespasser: Isla Sorna
Status:
BE-PH1: Released
PH2-IT: Pre-released
PL-SUM: In production

"...there used to be more benches, but InGen's workers removed them during the evacuation in the name of framerate."
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14032
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Re: pcm encoder

Post by Draconisaurus »

LMAO! No, Anne's arm has a specific way of moving, like a body language. You can try now; stick your arm out, and then bring it back in the way Anne's goes, like after trying to grab something. While manipulating some objects can put it in other positions, this operation generally means bending your elbow to the right while keeping the whole arm on a flat plane in front of you, with the top of your hand pointing straight up until and unless you grab something. Bah I don't feel like recording an example, maybe another time.
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14032
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Re: pcm encoder

Post by Draconisaurus »

Oooookay... Call me silly but I'm having trouble using this app. The readme doesn't give much detail -

Code: Select all

Encoder setup for trespasser use.  Only mono, 22050 sample_rate .pcm waves can
be encoded into ima/dvi adpcms.  If you have a stereo (44100 sample_rate) you
wish to encode, first convert it to single channel, 22050, then encode to ima/
dvi adpcm format.
I drag a file of 22050/mono/16-bit into the window. It displays the filepath of the wav. Nothing happens.. I press enter, it Exits, and no changes have been done. Could someone enlighten me as to how I use this to encode waves?? :)
User avatar
machf
T-Rex Killer
T-Rex Killer
Posts: 12368
Joined: Thu Apr 24, 2003 11:20 pm
Location: Lima, Peru
Contact:

Re: pcm encoder

Post by machf »

I guess you don't have to drag it onto the window after clicking on it, but onto the program's icon next to its name, rather... the same way you used other apps like swpz.exe
Visit The Carnivores Saga - a forum devoted to modding Action Forms' Carnivores, Carnivores 2 and Carnivores: Ice Age games
Tres WIP: updated T-Script Reference and File Formats documents
Sound name listings for the Demo (build 117), Retail (build 116), Beta 103, Beta 99, Beta 97, Beta 96, Build 55, PC Gamer Alpha (build 32) and E3 1998 Alpha (build 22) TPA files
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14032
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Re: pcm encoder

Post by Draconisaurus »

Ahaaa....
Well that was kinda helpful to know. Upon doing that, it says "Wave file is already encoded, or wav type is stereo or unknown. Press [enter] to exit _" for each one I'm trying to convert.

I tried the batch file again, which is this:

Code: Select all

 :: Used to create new TPA files
 REM - Please, be patient and touch nothing!!! 
 REM - Adding Sound, may take several minutes. 
 REM - Wait, for program to complete its task! 
 tpaadd.exe Menu.tpa "BIRD 01.wav" "BIRD 01"
 tpaadd.exe Menu.tpa "BIRD 02.wav" "BIRD 02"
 tpaadd.exe Menu.tpa "BIRD 03.wav" "BIRD 03"
 tpaadd.exe Menu.tpa "BIRD 04.wav" "BIRD 04"
 tpaadd.exe Menu.tpa "BIRD 05.wav" "BIRD 05"
 tpaadd.exe Menu.tpa "BIRD 06.wav" "BIRD 06"
 tpaadd.exe Menu.tpa "BIRD 07.wav" "BIRD 07"
 tpaadd.exe Menu.tpa "RapA.wav" "DINO - RAPT DIST A"
 tpaadd.exe Menu.tpa "RapB.wav" "DINO - RAPT DIST B"
 tpaadd.exe Menu.tpa "RapC.wav" "DINO - RAPT DIST C"
 tpaadd.exe Menu.tpa "RexA.wav" "DINO - TREX DIST A"
 tpaadd.exe Menu.tpa "RexB.wav" "DINO - TREX DIST B"
 tpaadd.exe Menu.tpa "RexMisc.wav" "DINO - TREX DIST MISC"
 tpaadd.exe Menu.tpa "Stomp.wav" "DINO - TREX FOOT"
 @REM - Please, do not edit.
 REM - OPERATION COMPLETE.  QUIT, PROGRAM.
 @ECHO OFF
The dino sounds there, which are the new ones non-indigenous to Trespasser, do not play when I fire up the menu. Here's a screen of the window for importing them:
Attachments
Errorz.jpg
Errorz.jpg (229.99 KiB) Viewed 12643 times
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14032
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Re: pcm encoder

Post by Draconisaurus »

Btw, here's one of those non-working wav files:
http://www.box.net/shared/davvvasaha

EDIT: Nevermind! Just before uploading that sound, I tried resaving them using my own sound editor (I'd had Matt do them for me), and forgot to go test it. Now they seem to have imported correctly. Heard them in the menu.
glitchhunter09
Pteranodon
Pteranodon
Posts: 792
Joined: Sun Sep 07, 2008 3:08 pm
Location: Bloomington, IN, USA

Re: pcm encoder

Post by glitchhunter09 »

Excuse me, but how do I use it and where's the actual EXE? What's up with the .h files?
User avatar
Rebel
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 6112
Joined: Sun Nov 10, 2002 10:26 pm
Location: That country nobody likes (you know the one)
Contact:

Re: pcm encoder

Post by Rebel »

glitch, the encoder is on my temp_page, last link. the exe. & instructions of how to use it should be within the file you download.
User avatar
machf
T-Rex Killer
T-Rex Killer
Posts: 12368
Joined: Thu Apr 24, 2003 11:20 pm
Location: Lima, Peru
Contact:

Re: pcm encoder

Post by machf »

Hi again, Rebel! How are things going?
Visit The Carnivores Saga - a forum devoted to modding Action Forms' Carnivores, Carnivores 2 and Carnivores: Ice Age games
Tres WIP: updated T-Script Reference and File Formats documents
Sound name listings for the Demo (build 117), Retail (build 116), Beta 103, Beta 99, Beta 97, Beta 96, Build 55, PC Gamer Alpha (build 32) and E3 1998 Alpha (build 22) TPA files
User avatar
Hilwo
Dilophosaurus
Dilophosaurus
Posts: 2637
Joined: Mon Nov 11, 2002 7:06 pm

Re: pcm encoder

Post by Hilwo »

Hey Rebel, nice to see you around! :)
Post Reply