当前位置: 首页>>代码示例>>Java>>正文


Java OutputChannels.BOTH_CHANNELS属性代码示例

本文整理汇总了Java中javazoom.jl.decoder.OutputChannels.BOTH_CHANNELS属性的典型用法代码示例。如果您正苦于以下问题:Java OutputChannels.BOTH_CHANNELS属性的具体用法?Java OutputChannels.BOTH_CHANNELS怎么用?Java OutputChannels.BOTH_CHANNELS使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在javazoom.jl.decoder.OutputChannels的用法示例。


在下文中一共展示了OutputChannels.BOTH_CHANNELS属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: jlcArgs

public jlcArgs()
 {
which_c = OutputChannels.BOTH_CHANNELS;
use_own_scalefactor = false;
  	scalefactor = (float) 32768.0;
   //stdout_mode = false;
   verbose_mode = false;
 }
 
开发者ID:EndlessBot,项目名称:jLib,代码行数:8,代码来源:jlc.java

示例2: jlcArgs

public jlcArgs()
{
	which_c = OutputChannels.BOTH_CHANNELS;
	use_own_scalefactor = false;
	scalefactor = (float) 32768.0;
	//stdout_mode = false;
	verbose_mode = false;
}
 
开发者ID:kuhnmi,项目名称:jukefox,代码行数:8,代码来源:jlc.java

示例3: processArgs

/**
  * Process user arguments.
  *
  * Returns true if successful.
  */
 public boolean processArgs(String[] argv)
 {
 filename = null;
 Crc16[] crc;
 crc = new Crc16[1];
    int i;
 int argc = argv.length;

 //stdout_mode  = false;
    verbose_mode = false;
    output_mode = OutputChannels.BOTH_CHANNELS;
    output_filename = "";
    if (argc < 2 || argv[1].equals("-h"))
	 return Usage();

 	 i = 1;
    while (i < argc)
 {
   /* System.out.println("Option = "+argv[i]);*/
   if (argv[i].charAt(0) == '-')
   {
	 if (argv[i].startsWith("-v"))
	 {
	 	verbose_mode = true;
		if (argv[i].length()>2)
		{
			try
			{
				String level = argv[i].substring(2);
				verbose_level = Integer.parseInt(level);
			}
			catch (NumberFormatException ex)
			{
				System.err.println("Invalid verbose level. Using default.");
			}
		}
		System.out.println("Verbose Activated (level "+verbose_level+")");
	 }
	 /* else if (argv[i].equals("-s"))
		ma.stdout_mode = true; */
	 else if (argv[i].equals("-p"))
	 {
     		if (++i == argc)
	  	{
           System.out.println("Please specify an output filename after the -p option!");
	           System.exit (1);
         	}
        //output_mode = O_WAVEFILE;
 		    output_filename = argv[i];
	 }
	 /*else if (argv[i].equals("-f"))
	 {
        if (++i == argc)
		{
           System.out.println("Please specify a new scalefactor after the -f option!");
           System.exit(1);
   		}
   	    ma.use_own_scalefactor = true;
   		// ma.scalefactor = argv[i];
	 }*/
     else return Usage();
     }
  else
  {
  	filename = argv[i];
	System.out.println("FileName = "+argv[i]);
	if (filename == null) return Usage();
  }
  i++;
   }
if (filename == null)
	return Usage();

return true;
 }
 
开发者ID:EndlessBot,项目名称:jLib,代码行数:80,代码来源:jlc.java

示例4: processArgs

/**
 * Process user arguments.
 * 
 * Returns true if successful.
 */
public boolean processArgs(String[] argv)
{
	filename = null;
	Crc16[] crc;
	crc = new Crc16[1];
	int i;
	int argc = argv.length;

	//stdout_mode  = false;
	verbose_mode = false;
	output_mode = OutputChannels.BOTH_CHANNELS;
	output_filename = "";
	if (argc < 2 || argv[1].equals("-h"))
		return Usage();

	i = 1;
	while (i < argc)
	{
		/* System.out.println("Option = "+argv[i]);*/
		if (argv[i].charAt(0) == '-')
		{
			if (argv[i].startsWith("-v"))
			{
				verbose_mode = true;
				if (argv[i].length() > 2)
				{
					try
					{
						String level = argv[i].substring(2);
						verbose_level = Integer.parseInt(level);
					} catch (NumberFormatException ex)
					{
						System.err.println("Invalid verbose level. Using default.");
					}
				}
				System.out.println("Verbose Activated (level " + verbose_level + ")");
			}
			/* else if (argv[i].equals("-s"))
			ma.stdout_mode = true; */
			else if (argv[i].equals("-p"))
			{
				if (++i == argc)
				{
					System.out.println("Please specify an output filename after the -p option!");
					System.exit(1);
				}
				//output_mode = O_WAVEFILE;
				output_filename = argv[i];
			}
			/*else if (argv[i].equals("-f"))
			{
			   if (++i == argc)
			{
			      System.out.println("Please specify a new scalefactor after the -f option!");
			      System.exit(1);
			}
			   ma.use_own_scalefactor = true;
			// ma.scalefactor = argv[i];
			}*/
			else
				return Usage();
		}
		else
		{
			filename = argv[i];
			System.out.println("FileName = " + argv[i]);
			if (filename == null)
				return Usage();
		}
		i++;
	}
	if (filename == null)
		return Usage();

	return true;
}
 
开发者ID:kuhnmi,项目名称:jukefox,代码行数:81,代码来源:jlc.java


注:本文中的javazoom.jl.decoder.OutputChannels.BOTH_CHANNELS属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。