Example #1
0
        public static Configuration Bxstm(Options options, Configuration inConfig = null)
        {
            BxstmConfiguration config = inConfig as BxstmConfiguration ?? new BxstmConfiguration();

            config.Endianness = options.Endianness;

            switch (options.OutFormat)
            {
            case AudioFormat.GcAdpcm:
                config.Codec = NwCodec.GcAdpcm;
                break;

            case AudioFormat.Pcm16:
                config.Codec = NwCodec.Pcm16Bit;
                break;

            case AudioFormat.Pcm8:
                config.Codec = NwCodec.Pcm8Bit;
                break;
            }

            if (options.LoopAlignment > 0)
            {
                config.LoopPointAlignment = options.LoopAlignment;
            }

            return(config);
        }
Example #2
0
 /// <summary>
 /// Creates a new CSTMExporter instance that uses the given encoding when it has to re-encode a file.
 /// </summary>
 /// <param name="defaultEncoding">The encoding to use</param>
 public CSTMExporter(BxstmConfiguration configuration = null)
 {
     _configuration = configuration;
 }