Thursday, 10 December 2009

sounds rename, clean pair of sox

back to the micropolis-activity package....

I wanted to change the default sounds but the new sounds wouldn't play when I would simply rename them. After checking the properties of the .wav files in the /res/sounds with

sox -V filename -n


I resampled my cleansox.wav so that it lists:

sox: SoX v14.3.0
sox INFO formats: detected file format type `wav'

Input File : 'cleansox.wav'
Channels : 1
Sample Rate : 22050
Precision : 16-bit
Duration : 00:00:04.77 = 105088 samples ~ 357.442 CDDA sectors
File Size : 210k
Bit Rate : 353k
Sample Encoding: 16-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no


Output File : '' (null)
Channels : 1
Sample Rate : 22050
Precision : 16-bit
Duration : 00:00:04.77 = 105088 samples ~ 357.442 CDDA sectors

sox INFO sox: effects chain: input 22050Hz 1 channels
sox INFO sox: effects chain: output 22050Hz 1 channels


Now the game is only playing this sound file for every action.

No comments: