pcm encoder
Moderators: scallenger, Rebel, madppiper, TresCom Support Team
-
- Pteranodon
- Posts: 792
- Joined: Sun Sep 07, 2008 3:08 pm
- Location: Bloomington, IN, USA
Re: pcm encoder
Thanks Rebel!
- Rebel
- -=TresCom Developer=-
- Posts: 6137
- Joined: Sun Nov 10, 2002 10:26 pm
- Location: That country nobody likes (you know the one)
- Contact:
Re: pcm encoder
Hey Hilwo, machf, how's it going. Nice to see you 2 still around. I'm busy with work mostly, & life, well, that pretty much sucks, but no point in complaining. Grin n' bear it, right? Be back for xmas -
Castaway Final Release Link: https://www.mediafire.com/file/ro5qzl88 ... l.zip/file
Final Walkthru (Updated): https://www.mediafire.com/file/skkxy7b0 ... u.zip/file
Castaway Final (optional update): https://www.mediafire.com/file/2bh23l30 ... e.zip/file
Final Walkthru (Updated): https://www.mediafire.com/file/skkxy7b0 ... u.zip/file
Castaway Final (optional update): https://www.mediafire.com/file/2bh23l30 ... e.zip/file
- awesome24712
- Pteranodon
- Posts: 889
- Joined: Sun Oct 02, 2011 1:56 am
- Antispam: No
- Location: USA
- Contact:
Re: pcm encoder
All right, all right—something's wrong.
I'm trying to import new sounds into my TPA file that I plan to use for my level, "Craters." So far, no luck.
The First thing I tried to do is use Audacity, seeing that I already have it installed. Made my sound 16-bit, mono, at a 22050 sample rate, saved as a IMA ADPCM .wav sound file. Then I tried to convert into a .cau for TPA_Reader, and it gives me an error. I tried a test to see if I was converting or importing incorrectly by using a .wav from another TPA, but that file imported just fine. I opened both files up in Audacity to compare them, but I saw no differences (other than the Bit-Rate, but I don't think that should affect anything). But after seeing other posts on this thread about Microsoft's IMA ADPCM not having the correct block size or something like that, I decided to try Rebel's encoder here...
I got the same thing as Draco did:
I'm trying to import new sounds into my TPA file that I plan to use for my level, "Craters." So far, no luck.
The First thing I tried to do is use Audacity, seeing that I already have it installed. Made my sound 16-bit, mono, at a 22050 sample rate, saved as a IMA ADPCM .wav sound file. Then I tried to convert into a .cau for TPA_Reader, and it gives me an error. I tried a test to see if I was converting or importing incorrectly by using a .wav from another TPA, but that file imported just fine. I opened both files up in Audacity to compare them, but I saw no differences (other than the Bit-Rate, but I don't think that should affect anything). But after seeing other posts on this thread about Microsoft's IMA ADPCM not having the correct block size or something like that, I decided to try Rebel's encoder here...
I got the same thing as Draco did:
Although I don't quite understand Machf's explanation:Draconisaurus wrote: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??
Anyone care to clarify on how I "drag 'n drop" to convert them?machf wrote: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
Check out the HL2 mod I'm helping with:
Visit my Steam! http://steamcommunity.com/id/awesome24712/
Visit my YouTube! http://www.youtube.com/user/awesome24712
Post benchamrks:
1 [x] 2 [x] 4 [x] 8 [x] 16 [x] 32 [x] 64 [x] 128 [x] 256 [x] 512 [x] 1024 [ ] 2048 [ ] 4096 [ ] 9192 [ ]
Visit my Steam! http://steamcommunity.com/id/awesome24712/
Visit my YouTube! http://www.youtube.com/user/awesome24712
Post benchamrks:
1 [x] 2 [x] 4 [x] 8 [x] 16 [x] 32 [x] 64 [x] 128 [x] 256 [x] 512 [x] 1024 [ ] 2048 [ ] 4096 [ ] 9192 [ ]
Re: pcm encoder
Don't run the program... make a shortcut for it on your desktop (or wherever you like), then drag the file you want to open on top of the shortcut.
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
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
Re: pcm encoder
Similarly to how you'd drag files into a folder, except you're dragging onto a shortcut...
Bringing TPA CRCs up the well, amongst other file format adventures.
Blender 3.0 TPM Plugin [Project GitHub]
Blender 3.0 TPM Plugin [Project GitHub]
- awesome24712
- Pteranodon
- Posts: 889
- Joined: Sun Oct 02, 2011 1:56 am
- Antispam: No
- Location: USA
- Contact:
Re: pcm encoder
... Ok...
Yep! Works fine now. Sorry for the trouble—Thanks! Never thought of that
EDIT: But, now how do I assign an '$Name' to a sound?
Yep! Works fine now. Sorry for the trouble—Thanks! Never thought of that
EDIT: But, now how do I assign an '$Name' to a sound?
Check out the HL2 mod I'm helping with:
Visit my Steam! http://steamcommunity.com/id/awesome24712/
Visit my YouTube! http://www.youtube.com/user/awesome24712
Post benchamrks:
1 [x] 2 [x] 4 [x] 8 [x] 16 [x] 32 [x] 64 [x] 128 [x] 256 [x] 512 [x] 1024 [ ] 2048 [ ] 4096 [ ] 9192 [ ]
Visit my Steam! http://steamcommunity.com/id/awesome24712/
Visit my YouTube! http://www.youtube.com/user/awesome24712
Post benchamrks:
1 [x] 2 [x] 4 [x] 8 [x] 16 [x] 32 [x] 64 [x] 128 [x] 256 [x] 512 [x] 1024 [ ] 2048 [ ] 4096 [ ] 9192 [ ]
- Rebel
- -=TresCom Developer=-
- Posts: 6137
- Joined: Sun Nov 10, 2002 10:26 pm
- Location: That country nobody likes (you know the one)
- Contact:
Re: pcm encoder
Well, if you're using tpa_reader, type in the stringname & any caption data you want assigned to the wave before you import the .cau file into the .tpa. There's a complete help file with the program, just hit the ? button, or go into the readers folder to access the hhp file directly. Note: you can only encode pcm files, and microsoft ima/pcms do not work in trespasser, therefore tpa_reader does not allow you to convert them into a .cau file for import.
Castaway Final Release Link: https://www.mediafire.com/file/ro5qzl88 ... l.zip/file
Final Walkthru (Updated): https://www.mediafire.com/file/skkxy7b0 ... u.zip/file
Castaway Final (optional update): https://www.mediafire.com/file/2bh23l30 ... e.zip/file
Final Walkthru (Updated): https://www.mediafire.com/file/skkxy7b0 ... u.zip/file
Castaway Final (optional update): https://www.mediafire.com/file/2bh23l30 ... e.zip/file
- awesome24712
- Pteranodon
- Posts: 889
- Joined: Sun Oct 02, 2011 1:56 am
- Antispam: No
- Location: USA
- Contact:
Re: pcm encoder
All right. Everything's working now. The sounds are playing fine in-game. I just thought that since I could see the names of the sounds when looking in other .tpas, I would be able to see them in mine. It just shows: "missing" Although the sounds still play just fine.Rebel wrote:Well, if you're using tpa_reader, type in the stringname & any caption data you want assigned to the wave before you import the .cau file into the .tpa. There's a complete help file with the program, just hit the ? button, or go into the readers folder to access the hhp file directly. Note: you can only encode pcm files, and microsoft ima/pcms do not work in trespasser, therefore tpa_reader does not allow you to convert them into a .cau file for import.
Check out the HL2 mod I'm helping with:
Visit my Steam! http://steamcommunity.com/id/awesome24712/
Visit my YouTube! http://www.youtube.com/user/awesome24712
Post benchamrks:
1 [x] 2 [x] 4 [x] 8 [x] 16 [x] 32 [x] 64 [x] 128 [x] 256 [x] 512 [x] 1024 [ ] 2048 [ ] 4096 [ ] 9192 [ ]
Visit my Steam! http://steamcommunity.com/id/awesome24712/
Visit my YouTube! http://www.youtube.com/user/awesome24712
Post benchamrks:
1 [x] 2 [x] 4 [x] 8 [x] 16 [x] 32 [x] 64 [x] 128 [x] 256 [x] 512 [x] 1024 [ ] 2048 [ ] 4096 [ ] 9192 [ ]
- Rebel
- -=TresCom Developer=-
- Posts: 6137
- Joined: Sun Nov 10, 2002 10:26 pm
- Location: That country nobody likes (you know the one)
- Contact:
Re: pcm encoder
Your new stringnames can be found inside the reader's log files, awesome. Look thru the help file, it'll tell you how to add your new crc values so they can be picked up by the reader.awesome24712 wrote:All right. Everything's working now. The sounds are playing fine in-game. I just thought that since I could see the names of the sounds when looking in other .tpas, I would be able to see them in mine. It just shows: "missing" Although the sounds still play just fine.Rebel wrote:Well, if you're using tpa_reader, type in the stringname & any caption data you want assigned to the wave before you import the .cau file into the .tpa. There's a complete help file with the program, just hit the ? button, or go into the readers folder to access the hhp file directly. Note: you can only encode pcm files, and microsoft ima/pcms do not work in trespasser, therefore tpa_reader does not allow you to convert them into a .cau file for import.
Castaway Final Release Link: https://www.mediafire.com/file/ro5qzl88 ... l.zip/file
Final Walkthru (Updated): https://www.mediafire.com/file/skkxy7b0 ... u.zip/file
Castaway Final (optional update): https://www.mediafire.com/file/2bh23l30 ... e.zip/file
Final Walkthru (Updated): https://www.mediafire.com/file/skkxy7b0 ... u.zip/file
Castaway Final (optional update): https://www.mediafire.com/file/2bh23l30 ... e.zip/file
- awesome24712
- Pteranodon
- Posts: 889
- Joined: Sun Oct 02, 2011 1:56 am
- Antispam: No
- Location: USA
- Contact:
Re: pcm encoder
Ahh... help files. Where would we be without them? I think I read it earlier when I was failing to convert them, I guess I didn't read them closly enough. Thanks for adding that little file. TPA_reader shows me the names of the sounds. Just to prove I'm not lying, here's a screenshot:Rebel wrote:Your new stringnames can be found inside the reader's log files, awesome. Look thru the help file, it'll tell you how to add your new crc values so they can be picked up by the reader.awesome24712 wrote:All right. Everything's working now. The sounds are playing fine in-game. I just thought that since I could see the names of the sounds when looking in other .tpas, I would be able to see them in mine. It just shows: "missing" Although the sounds still play just fine.Rebel wrote:Well, if you're using tpa_reader, type in the stringname & any caption data you want assigned to the wave before you import the .cau file into the .tpa. There's a complete help file with the program, just hit the ? button, or go into the readers folder to access the hhp file directly. Note: you can only encode pcm files, and microsoft ima/pcms do not work in trespasser, therefore tpa_reader does not allow you to convert them into a .cau file for import.
- Spoiler: show
Check out the HL2 mod I'm helping with:
Visit my Steam! http://steamcommunity.com/id/awesome24712/
Visit my YouTube! http://www.youtube.com/user/awesome24712
Post benchamrks:
1 [x] 2 [x] 4 [x] 8 [x] 16 [x] 32 [x] 64 [x] 128 [x] 256 [x] 512 [x] 1024 [ ] 2048 [ ] 4096 [ ] 9192 [ ]
Visit my Steam! http://steamcommunity.com/id/awesome24712/
Visit my YouTube! http://www.youtube.com/user/awesome24712
Post benchamrks:
1 [x] 2 [x] 4 [x] 8 [x] 16 [x] 32 [x] 64 [x] 128 [x] 256 [x] 512 [x] 1024 [ ] 2048 [ ] 4096 [ ] 9192 [ ]
- Draconisaurus
- T-Rex Killer
- Posts: 14075
- Joined: Mon Dec 06, 2004 5:21 pm
- Antispam: No
- Location: Isla Sorna
- Contact:
Re: pcm encoder
Soooo I grabbed tpas_pcm-encoder.zip Version: 1.0 and did a test sound of about 10 seconds with a human voice. Ingame result is absolutely awful. I am using Audacity... Got the 22050 and 16 bit specified, however there was nothing about setting block alignment. Recorded in mono. Help?Rebel wrote:if mono;
22050, 16bit, 1024 block alignment
stereo;
41000, 16bit, 2048 block alignment
Re: pcm encoder
Why don't you just use TPAreader?
Or EffectsEditor?
Or EffectsEditor?
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
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
- Rebel
- -=TresCom Developer=-
- Posts: 6137
- Joined: Sun Nov 10, 2002 10:26 pm
- Location: That country nobody likes (you know the one)
- Contact:
Re: pcm encoder
Drac, it's been yeas since I messed with this, but I think you're going about this all wrong. Record
the voice in 44000 16bit stereo, then decoding that wav will put it into a tres compatible wav. So,
save your wave in 44000 16bit stereo/ima/dvi format, then decode.
Or, do as machf suggested and us the Effects Editor -
@Edit: Block alignments I may have mentioned in read me files is meant as additional information
for anyone who wanted to alter the program's code. Industry standard is 1024/2048, no other program
out there saves for trespasser's block alignments, except of course the Effects Editor.
the voice in 44000 16bit stereo, then decoding that wav will put it into a tres compatible wav. So,
save your wave in 44000 16bit stereo/ima/dvi format, then decode.
Or, do as machf suggested and us the Effects Editor -
@Edit: Block alignments I may have mentioned in read me files is meant as additional information
for anyone who wanted to alter the program's code. Industry standard is 1024/2048, no other program
out there saves for trespasser's block alignments, except of course the Effects Editor.
Castaway Final Release Link: https://www.mediafire.com/file/ro5qzl88 ... l.zip/file
Final Walkthru (Updated): https://www.mediafire.com/file/skkxy7b0 ... u.zip/file
Castaway Final (optional update): https://www.mediafire.com/file/2bh23l30 ... e.zip/file
Final Walkthru (Updated): https://www.mediafire.com/file/skkxy7b0 ... u.zip/file
Castaway Final (optional update): https://www.mediafire.com/file/2bh23l30 ... e.zip/file
- Draconisaurus
- T-Rex Killer
- Posts: 14075
- Joined: Mon Dec 06, 2004 5:21 pm
- Antispam: No
- Location: Isla Sorna
- Contact:
Re: pcm encoder
Erm. Few options to play around with.
I tried the stereo format option. The encoding app of yours proceeds to tell me that it doesn't do stereo.
Also, what do we use around here to create CAU files for sounds not already in a TPA file?
And in general I'm unsure how to use EffectsEditor.
I tried the stereo format option. The encoding app of yours proceeds to tell me that it doesn't do stereo.
Also, what do we use around here to create CAU files for sounds not already in a TPA file?
And in general I'm unsure how to use EffectsEditor.
- Rebel
- -=TresCom Developer=-
- Posts: 6137
- Joined: Sun Nov 10, 2002 10:26 pm
- Location: That country nobody likes (you know the one)
- Contact:
Re: pcm encoder
Drac, below are the instructions included within encoder and decoder:
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.
The encoded waves are still not perfect, but they sound good enough to import
& use in_game. Much better than the original encoder released earlier - I al-
so took a temp_pcm wav (was a converted stereo to mono, 22050 for player use),
encoded and imported that and the music sounded quite good.
Reb.
Useage: Drag n' drop utility. Decodes ima/dvi adpcm (format 20) to standard
pcm wave.
Sample_rates: Code assumes mono as 22050 & stereo as 44100. Whether stereo
or mono, current code outputs mono, pcm wave. (The two sample_rates are the
only frequencies dealt with, so reading & writing out individual headers was
not needed -
The decoder class was searched out to decode the game trespasser's odd_ball
block alignment of 1028/2056. Although windows environment can play ima/dvi
waves natively, it does require standard block alignments of 512/1024. Thus,
looking to play the waves inside my audio program that was written to access
the game's packed audio files, I was lured into this decoding process -
Code is included, the ima class is courtesy of J.d. Medhurst (aka tixy). The
remainder of the mess is mine. Feel free to change the code in whatever way
you'd like, tailor it to meet your own needs. Hopefully, the next person to
require doing this sort of thing won't go insane looking for the solution -
Reb.
As for creating cau files, tpareader does that. The how to should be in the help
files. I'm pretty sure it's not complicated, but I can't remember the control layout.
It's just been too long for my feeble mind to recall -
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.
The encoded waves are still not perfect, but they sound good enough to import
& use in_game. Much better than the original encoder released earlier - I al-
so took a temp_pcm wav (was a converted stereo to mono, 22050 for player use),
encoded and imported that and the music sounded quite good.
Reb.
Useage: Drag n' drop utility. Decodes ima/dvi adpcm (format 20) to standard
pcm wave.
Sample_rates: Code assumes mono as 22050 & stereo as 44100. Whether stereo
or mono, current code outputs mono, pcm wave. (The two sample_rates are the
only frequencies dealt with, so reading & writing out individual headers was
not needed -
The decoder class was searched out to decode the game trespasser's odd_ball
block alignment of 1028/2056. Although windows environment can play ima/dvi
waves natively, it does require standard block alignments of 512/1024. Thus,
looking to play the waves inside my audio program that was written to access
the game's packed audio files, I was lured into this decoding process -
Code is included, the ima class is courtesy of J.d. Medhurst (aka tixy). The
remainder of the mess is mine. Feel free to change the code in whatever way
you'd like, tailor it to meet your own needs. Hopefully, the next person to
require doing this sort of thing won't go insane looking for the solution -
Reb.
As for creating cau files, tpareader does that. The how to should be in the help
files. I'm pretty sure it's not complicated, but I can't remember the control layout.
It's just been too long for my feeble mind to recall -
Castaway Final Release Link: https://www.mediafire.com/file/ro5qzl88 ... l.zip/file
Final Walkthru (Updated): https://www.mediafire.com/file/skkxy7b0 ... u.zip/file
Castaway Final (optional update): https://www.mediafire.com/file/2bh23l30 ... e.zip/file
Final Walkthru (Updated): https://www.mediafire.com/file/skkxy7b0 ... u.zip/file
Castaway Final (optional update): https://www.mediafire.com/file/2bh23l30 ... e.zip/file