Iran Posted August 5, 2015 Share Posted August 5, 2015 Well it would be nice to know if AUD files with stereo support are possible or not. Link to comment Share on other sites More sharing options...
Blade Posted August 5, 2015 Share Posted August 5, 2015 Well, are any of the VQA files from RA or TD stereo? That would suggest the games at least know how to deal with a stereo stream if they encounter one. Quite how Vladan Bato deduced that the header flags determine if a file is stereo or not presumably without having a stereo file would be interesting to know. Link to comment Share on other sites More sharing options...
Lightning Hunter Posted August 5, 2015 Author Share Posted August 5, 2015 Well, if we can figure out how to get stereo AUD files, I have the whole soundtrack ready to convert. It would only take a matter of 30 minutes to convert and upload. Link to comment Share on other sites More sharing options...
Lightning Hunter Posted August 7, 2015 Author Share Posted August 7, 2015 Hey Nyerguds, can you explain how you got XCC Mixer to convert 44kHz WAV files to AUD? I noticed a bug in the editor in which some 44kHz WAV files will have the option to "copy to AUD", while other files are blacked out. There seems to be no reason for this. All 48kHz files have the option to "copy as AUD". I think you mentioned some hack that fixes this, but I have no clue how to apply a "one-byte hack". Better yet, if you could just upload the hacked .exe for me, that would be easier... Link to comment Share on other sites More sharing options...
Lightning Hunter Posted August 9, 2015 Author Share Posted August 9, 2015 Triple post, but nobody is responding. I realized that XCC mixer is labeling half of the WAV files that I'm trying to convert as an "unknown" file type, which is why they can't be converted to AUD. Other wav files appear as "WAV" and can be converted just fine. I have no idea why this is, since all the files I'm trying to convert are the same format in 48kHz Mono. Link to comment Share on other sites More sharing options...
Blade Posted August 10, 2015 Share Posted August 10, 2015 XCC uses some inbuilt file "fingerprints" where it examines various bytes in a file that should have some known value in certain file types and uses that to decide if it knows what the file it. Its not perfect though and you are probably running into that issue with the wave files. It also doesn't recognise some TD/RA type shp files that come with the beta patch or SS even though they are valid shp files. Fact of the matter is that it seems you'll just have to wait for someone to write a new encoder that will handle all the wav files you want to use and that will encode a stereo file. Link to comment Share on other sites More sharing options...
Lightning Hunter Posted August 10, 2015 Author Share Posted August 10, 2015 Fact of the matter is that it seems you'll just have to wait for someone to write a new encoder that will handle all the wav files you want to use and that will encode a stereo file. That will be the day! But yes, I tried using Audacity this time to convert the WAV files from stereo to Mono before converting them to AUD in XCC Mixer, and it recognized them all just fine. I guess XCC did not like something about the WAV files created from the other converter I was using... I hope someone can get stereo files working now! Link to comment Share on other sites More sharing options...
Lightning Hunter Posted August 11, 2015 Author Share Posted August 11, 2015 Hey Iran, is there a way to get the menu music, credits music, etc. to appear in the playlist? I don't want to add them to music.ini, because I've already used up the 128 entry limit. It seems to me these should be easy to get to appear. Also, did you get my Private Message? Link to comment Share on other sites More sharing options...
Blade Posted August 18, 2015 Share Posted August 18, 2015 The game appears to have code that will decode an interleaved stereo aud file, but what the game then does with it and if it will actually output it as stereo is a different matter. Link to comment Share on other sites More sharing options...
sylandro Posted August 19, 2015 Share Posted August 19, 2015 Cool, how about Tiberian Dawn? Of course I can use a mp3 player to play those scores anyway... I actually already did create a high quality soundtrack for Tiberian Dawn and Covert Operations. I just haven't released it yet, because I wanted to see if people cared about the Red Alert version first. The only problem with the Tiberian Dawn version is that I couldn't find high quality versions of Act on Instinct, Stop Them, In Trouble, No Mercy, and Just Do It Up WITHOUT vocals. In my opinion, the CD versions with talking and vocals do not fit in the game. Thus, I feel the original tracks are better, even in lower quality. If someone can find high quality versions of those tracks without vocals, I would include them. Awesome work you've done compiling the HQ tracks! I second the petition for TD tracks... even if they have vocals, some of us wouldn't mind hearing them in game. Also, could a similar thing be technically possible to do with Dune 2000? I believe they use a different audio format. Link to comment Share on other sites More sharing options...
Nyerguds Posted August 22, 2015 Share Posted August 22, 2015 Nope. The aud format is about the only thing they used from the C&C game engine. Link to comment Share on other sites More sharing options...
Blade Posted August 22, 2015 Share Posted August 22, 2015 Good news everyone. Seems the earlier games (TD, RA, SS) do support stereo and will play it according to testing conducted by Tomson with a tool I wrote. Just need to do a bit more QA on the tool, but shortly we should have a command line wav2aud program that can encode 48000 16bit stereo wave files into corresponding aud files that the game can use. Link to comment Share on other sites More sharing options...
Lightning Hunter Posted August 22, 2015 Author Share Posted August 22, 2015 Good news everyone. Seems the earlier games (TD, RA, SS) do support stereo and will play it according to testing conducted by Tomson with a tool I wrote. Just need to do a bit more QA on the tool, but shortly we should have a command line wav2aud program that can encode 48000 16bit stereo wave files into corresponding aud files that the game can use. That's awesome news! I will certainly be releasing a Stereo soundtrack promptly after the release of this tool. Can I make a request for wildcards in the command line tool, so I can perform a batch conversion? I have like 200 WAV files to convert to AUD, so it would take forever if I had to do them one at a time. Link to comment Share on other sites More sharing options...
Blade Posted August 22, 2015 Share Posted August 22, 2015 It won't do wildcards I'm afraid, the interface is going to be really basic. You'll need to write a batch file to deal with multiple files. Link to comment Share on other sites More sharing options...
Lightning Hunter Posted August 22, 2015 Author Share Posted August 22, 2015 It won't do wildcards I'm afraid, the interface is going to be really basic. You'll need to write a batch file to deal with multiple files. Hmm. Well, is is it even possible to use a batch file to deal with multiple files? Don't I still have to copy each filename individually? Link to comment Share on other sites More sharing options...
Blade Posted August 24, 2015 Share Posted August 24, 2015 http://cnc-comm.com/community/index.php?topic=4386.0 for the tool. I've included a sample batch file that should process a directory of wave files for you though its untested. No need to write all the file names, that would make writing the batch file a waste of time Link to comment Share on other sites More sharing options...
Nyerguds Posted August 24, 2015 Share Posted August 24, 2015 Just use dir /b *.wav and do a search-and-replace to add the command before each line. Link to comment Share on other sites More sharing options...
Lightning Hunter Posted August 24, 2015 Author Share Posted August 24, 2015 Just use dir /b *.wav and do a search-and-replace to add the command before each line. Yeah, I have no clue how to type that out in a batch file. Link to comment Share on other sites More sharing options...
Blade Posted August 24, 2015 Share Posted August 24, 2015 You should run the batch file with the path to your wave filled folder as an argument. dirset.bat c:\path\to\dir Give that a go and see if it works. Link to comment Share on other sites More sharing options...
Lightning Hunter Posted August 24, 2015 Author Share Posted August 24, 2015 You should run the batch file with the path to your wave filled folder as an argument. dirset.bat c:\path\to\dir Give that a go and see if it works. I'll try it. Did you see my post in the other thread about certain WAV files not being recognized? Link to comment Share on other sites More sharing options...
tomsons26 Posted August 25, 2015 Share Posted August 25, 2015 Notes on Stereo support. C&C DOS supports Stereo aud files however it is forced to play audio back as Mono. C&C95 and RA fully support Stereo aud's up to 48000 hz currently, however 64000 should be the theoretical limit, at this time the tool seems to corrupt audio with higher frequencies than 48000. Sole Survivor does not properly support Stereo audio. It does play it back in stereo but with pops and clicks Dune 2000 Does not support Stereo at all Tiberian Sun Does not support Stereo at all either Red Alert 2 support is unknown, its known it should be able to handle aud but if it indeed does its likely to be the same as TS. Link to comment Share on other sites More sharing options...
Blade Posted August 25, 2015 Share Posted August 25, 2015 Strange that SS should struggle with the stereo audio, maybe they took out the general decoder and just left the optimised mono decoder in for some reason? Link to comment Share on other sites More sharing options...
Nyerguds Posted August 25, 2015 Share Posted August 25, 2015 Just use dir /b *.wav and do a search-and-replace to add the command before each line. Yeah, I have no clue how to type that out in a batch file. on the command line, type dir /b *.wav > list.txt This will create a file called list.txt containing a list of all .wav files in that folder. Then you just need to open list.txt, paste the conversion command on the start of each line and remove the .wav at the end, (which is something that can be done rather easily with search & replace on any text editing tool slightly more advanced than Notepad), rename to .bat, and run it. Link to comment Share on other sites More sharing options...
Lightning Hunter Posted August 25, 2015 Author Share Posted August 25, 2015 Just use dir /b *.wav and do a search-and-replace to add the command before each line. Yeah, I have no clue how to type that out in a batch file. on the command line, type dir /b *.wav > list.txt This will create a file called list.txt containing a list of all .wav files in that folder. Then you just need to open list.txt, paste the conversion command on the start of each line and remove the .wav at the end, (which is something that can be done rather easily with search & replace on any text editing tool slightly more advanced than Notepad), rename to .bat, and run it. Ah, yes; not sure why I never thought of that! Of course, I still have to copy/paste the command before each line, but that is still faster. Link to comment Share on other sites More sharing options...
Nyerguds Posted August 26, 2015 Share Posted August 26, 2015 Well as I said, in a more advanced text editor which can search & replace text including line breaks, all that can be done in one single action. Personally, though, since Editpad Pro supports it, I prefer the regular expressions approach: ^(.*?)\.wav$ to audioset.exe \1 Gods, I love regex Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now