Server Help

General Questions - wav to wa2 convert

Anonymous - Thu Dec 15, 2005 11:12 pm
Post subject: wav to wa2 convert
How can I convert My WAV file to wa2 format?
Mr Ekted - Thu Dec 15, 2005 11:30 pm
Post subject:
Rename the file.
Dr Brain - Thu Dec 15, 2005 11:58 pm
Post subject:
I've been considering making a wav to wa2 converter. As an added bonus, I'd probably throw in bmp to bm2.
wEaViL - Fri Dec 16, 2005 1:36 am
Post subject:
Dr Brain wrote:
I've been considering making a wav to wa2 converter. As an added bonus, I'd probably throw in bmp to bm2.


that would take what? 10 mins max? You probly should then we can stickie it and maybe the dreded wav to wa2 convert question will perish forever icon_biggrin.gif
Anonymous - Fri Dec 16, 2005 8:10 am
Post subject:
how do you save it as a differ file name? And what reallly is the diffrence between da 2? (do you need a program editor to save differ?)
Cerium - Fri Dec 16, 2005 10:14 am
Post subject:
Heres a converter you can use to take those wav files and make wa2 files out of them...
Dr Brain - Fri Dec 16, 2005 11:40 am
Post subject:
Nice job, cerium.
Bak - Fri Dec 16, 2005 12:23 pm
Post subject:
source?

The real question is why would you want to convert from wav to wa2?
Cerium - Fri Dec 16, 2005 6:09 pm
Post subject:
Didnt you know? wa2 files are compressed, have superior sound quality, and cannot be read by the RIAA. These are the files of the future bak; MP3s are soon to be replaced.

Also, the source is so complicated I was forced to delete it as soon as I compiled the project, for fear it might fall into the wrong hands (like the RIAA).
Dr Brain - Fri Dec 16, 2005 7:34 pm
Post subject:
/me laughs
Love.Dog. - Fri Dec 16, 2005 8:02 pm
Post subject:
Cerium wrote:
Didnt you know? wa2 files are compressed, have superior sound quality, and cannot be read by the RIAA. These are the files of the future bak; MP3s are soon to be replaced.

Also, the source is so complicated I was forced to delete it as soon as I compiled the project, for fear it might fall into the wrong hands (like the RIAA).


Yes, well done. I really like your part in where you say they have ;superior sound quality; ;cant be read by the RIAA; (I mean, do they care)
Note: If you think this is a unnecessary post please don't be scared to talk to me.
Donkano - Sat Dec 17, 2005 4:26 pm
Post subject:
Cerium wrote:
Heres a converter you can use to take those wav files and make wa2 files out of them...


I am making a batch file for this (only tested under Win XP SP2)

And I am having difficuties to why it won't rename properly.

Code: Show/Hide
@echo off
cls
::Author: Donkano
::E-Mail: god.donkano@gmail.com
::Domain: http://digital-vortech.ath.cx/

echo WARNING!
echo Only press a button when prompted to.
echo If you are prompted, this program will explain what it is asking for.
echo.
:start
echo -- Options --
echo 1 = Wav to Wa2
echo 2 = Wa2 to Wav
echo 3 = Bmp to Bm2
echo 4 = Bm2 to Bmp

:: [Start] Get Converstion Method Option
SETLOCAL
SET action_vbs=%TEMP%\~tmp.VBS
SET action_cmd=%TEMP%\~tmp.cmd

ECHO Set oFS=CreateObject("Scripting.FileSystemObject")>%action_vbs%
ECHO oFS.OpenTextFile("CON",2).Write "Input an operation integer: ">>%action_vbs%
ECHO S=%1(Trim(oFS.OpenTextFile("CON",1).Readline))>>%action_vbs%

ECHO oFS.CreateTextFile("%action_cmd%",2).Write "set action_input=">>%action_vbs%
ECHO oFS.OpenTextFile("%action_cmd%",8).Write S>>%action_vbs%

cscript.exe //nologo %action_vbs%
CALL %action_cmd%

DEL %action_vbs%
DEL %action_cmd%

SET action_input
ENDLOCAL & SET action_input=%action_input%
:: [End] Get Converstion Method Option

echo.
pause
echo.

echo Set "dir_input" as [directory]
echo WITHOUT the filename. Make sure it has a trailing "\".
echo Ex: C:\Program Files\Continuum\Edit\Convert\WB-Converter\
echo Ex: [C:\Program Files\Continuum\Edit\WB-Converter]\
echo Ex: C:\Program Files\Continuum\WB-Converter\
echo Ex: [C:\Program Files\Continuum\Convert\WB-Converter]\
:: [Start] Get Directory Name
SETLOCAL
SET dir_vbs=%TEMP%\~tmp.VBS
SET dir_cmd=%TEMP%\~tmp.cmd

ECHO Set oFS=CreateObject("Scripting.FileSystemObject")>%dir_vbs%
ECHO oFS.OpenTextFile("CON",2).Write "Input directory of file: ">>%dir_vbs%
ECHO S=%1(Trim(oFS.OpenTextFile("CON",1).Readline))>>%dir_vbs%

ECHO oFS.CreateTextFile("%dir_cmd%",2).Write "set dir_input=">>%dir_vbs%
ECHO oFS.OpenTextFile("%dir_cmd%",8).Write S>>%dir_vbs%

cscript.exe //nologo %dir_vbs%
CALL %dir_cmd%

DEL %dir_vbs%
DEL %dir_cmd%

SET dir_input
ENDLOCAL & SET dir_input=%dir_input%
:: [End] Get Directory Name

echo.
pause
echo.

echo Do NOT include the extension of the file.
:: [Start] Get Filename
SETLOCAL
SET file_vbs=%TEMP%\~tmp.VBS
SET file_cmd=%TEMP%\~tmp.cmd

ECHO Set oFS=CreateObject("Scripting.FileSystemObject")>%file_vbs%
ECHO oFS.OpenTextFile("CON",2).Write "Input name of file to be converted: ">>%file_vbs%
ECHO S=%1(Trim(oFS.OpenTextFile("CON",1).Readline))>>%file_vbs%

ECHO oFS.CreateTextFile("%file_cmd%",2).Write "set file_input=">>%file_vbs%
ECHO oFS.OpenTextFile("%file_cmd%",8).Write S>>%file_vbs%

cscript.exe //nologo %file_vbs%
CALL %file_cmd%

DEL %file_vbs%
DEL %file_cmd%

SET file_input
ENDLOCAL & SET file_input=%file_input%
:: [End] Get Filename

if %action_input%==4 (goto four)
if %action_input%==3 (goto three)
if %action_input%==2 (goto two)
if %action_input%==1 (goto one)
cls
echo WARNING!
echo Only press a button when prompted to.
echo If you are prompted, this program will explain what it is asking for.
echo.
echo Error!
echo You have input an unexpected value for "action_input".
echo Program restarted.
echo.
goto start

:one
:: Wav to Wa2
if exist %dir_input%%dir_input%.Wav (ren "%dir_input%%file_input%.Wav" %file_input%.Wa2) else echo %dir_input%%file_input%.Wav is not a file.
if exist %dir_input%%file_input%.Wa2 (echo File converted successfully.) else echo Program failed to convert %dir_input%%file_input%.Wav
goto end

:two
:: Wa2 to Wav
if exist %dir_input%%file_input%.Wa2 (ren "%dir_input%%file_input%.Wa2" %file_input%.Wav) else echo %dir_input%%file_input%.Wa2 is not a file.
if exist %dir_input%%file_input%.Wav (echo File converted successfully.) else echo Program failed to convert %dir_input%%file_input%.Wa2
goto end

:three
:: Bmp to Bm2
if exist %dir_input%%file_input%.Bmp (ren "%dir_input%%file_input%.Bmp" %file_input%.Bm2) else echo %dir_input%%file_input%.Bmp is not a file.
if exist %dir_input%%file_input%.Bm2 (echo File converted successfully.) else echo Program failed to convert %dir_input%%file_input%.Bmp
goto end

:four
:: Bm2 to Bmp
if exist %dir_input%%file_input%.Bm2 (ren "%dir_input%%file_input%.Bm2" %file_input%.Bmp) else echo %dir_input%%file_input%.Bm2 is not a file.
if exist %dir_input%%file_input%.Bmp (echo File converted successfully.) else echo Program failed to convert %dir_input%%file_input%.Bm2

:end
echo You have reached the end of the program. Press any key to exit.
pause
exit

Bak - Sat Dec 17, 2005 4:55 pm
Post subject:
no
Solo Ace - Sat Dec 17, 2005 6:31 pm
Post subject:
Haha, even for a .bat script that is badly written.
Cyan~Fire - Sun Dec 18, 2005 10:59 am
Post subject:
emot-wtf.gif. If you're going to run a batch, you might as well just use REN...
Donkano - Sun Dec 18, 2005 12:01 pm
Post subject:
Cyan~Fire, I am.

if exist %dir_input%%file_input%.Bmp (ren "%dir_input%%file_input%.Bmp" %file_input%.Bm2) else echo %dir_input%%file_input%.Bmp is not a file.
Love.Dog. - Sun Dec 18, 2005 12:02 pm
Post subject:
Cerium wrote:
Didnt you know? wa2 files are compressed, have superior sound quality, and cannot be read by the RIAA. These are the files of the future bak; MP3s are soon to be replaced.

Also, the source is so complicated I was forced to delete it as soon as I compiled the project, for fear it might fall into the wrong hands (like the RIAA).


Ok wait.... If you are saying wa2's are better.
That means:
bm2 files are more compressed than bmp files
and bm2s have more picture quality than bmp.s?
Purge - Sun Dec 18, 2005 12:04 pm
Post subject:
Love.Dog. wrote:
[..]



Ok wait.... If you are saying wa2's are better.
That means:
bm2 files are more compressed than bmp files
and bm2s have more picture quality than bmp.s?


He was sarcastic. WA2s and BM2s are exactly the same as WAVs and BMPs.
Donkano - Sun Dec 18, 2005 12:04 pm
Post subject:
......

He was being SARCASTIC.

BM2 = BMP
BMP = BM2

WA2 = WAV
WAV = WA2

It is just a different alias. Exact same format.
Bak - Sun Dec 18, 2005 3:12 pm
Post subject:
He was being sarcastic...

bm2=bmp

wa2=wav
Cyan~Fire - Sun Dec 18, 2005 4:30 pm
Post subject:
He was being sarcastic...

BM2 = BMP = BM2 = BMP
WA2 = WAV = WA2 = WAV



Donkano wrote:
Cyan~Fire, I am.

Sorry, I meant manually. Somehow I don't think avoiding a single command is worth a VBS.
Donkano - Sun Dec 18, 2005 6:15 pm
Post subject:
How else do I find out what directory/file it is that is to be renamed?
Cyan~Fire - Mon Dec 19, 2005 12:04 pm
Post subject:
YOU DON'T USE A BATCH FILE. You are already having the user type in the filename and directory, it is so much easier to just cd to the proper directory and type "ren blah.wa2 blah.wav".

And that still isn't the easiest way to do it. Control Panel -> Folder Options -> View -> Uncheck "Hide extensions for known file types".
Bak - Mon Dec 19, 2005 2:59 pm
Post subject:
you don't even need to do that, since bm2 and wa2 is not a known type it should show up anyway
Cyan~Fire - Tue Dec 20, 2005 10:23 am
Post subject:
True, but it's less confusing my way since the extension doesn't just disappear.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group