"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "usr/lib/oss/build/softoss.c" of archive oss-linux-v4.0-1016-x86_64.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 /*
    2  * Automatically generated file - do not edit.
    3  */
    4 #define DRIVER_NAME	softoss
    5 #define DRIVER_NICK	"softoss"
    6 #define DRIVER_STR_INFO	softoss_str_info
    7 #define DRIVER_ATTACH	softoss_attach
    8 #define DRIVER_DETACH	softoss_detach
    9 #define DRIVER_TYPE	DRV_VIRTUAL
   10 
   11 int softoss_masterdev=-1;
   12 /*
   13  * Master device to attach the SoftOSS engine to. -1 is automatic detection
   14  * Values: 0-N,	Default: -1 (autodetect)
   15  */
   16 
   17 int softoss_rate=48000;
   18 /*
   19  * Maximum sample rate to use for the virtual mixer - this means that audio
   20  * played at the sample rate of virtual mixer will pass through without SRC.
   21  * Values: 8000-48000	Default: 48000
   22  */
   23 
   24 int softoss_devices=4;
   25 /*
   26  * Number of Virtual Mixer /dev/dsp# devices to create
   27  * Values: 1-32		Default: 4
   28  */
   29 
   30 int softoss_loopdevs=0;
   31 /*
   32  * Number of loopback recording devices to create. Loopback devices are
   33  * special devices that can be used to record mix/sum of the audio outputs
   34  * by an application running in the same computer.
   35  * Values: 0-4	Default: 0
   36  */
   37 
   38 int softoss_use_src=1;
   39 /*
   40  * Enable Linear Interpolation or full SRC
   41  * Values: 1=On 0=Off	Default: 1
   42  */
   43 
   44 int softoss_redirect=0;
   45 /*
   46  * Allow OSS to automatically redirect audio to virtual mixer devices or
   47  * disable the feature
   48  * Values: 1=On 0=Off	Default: 1
   49  */
   50 
   51 int softoss_channels=2;
   52 /*
   53  * Number of channels supported by Virtual Mixer - currently it's 2 but
   54  * in the future it can be 4 or 6 channels of audio.
   55  * Values: 2, 4, 6	Default: 2
   56  */
   57 
   58 int softoss_disable=0;
   59 /*
   60  * Disable the Virtual Mixer from attaching
   61  * Values: 1=Disable 0=Enable	Default: 0
   62  */
   63 #include "module.inc"
   64 
   65 module_param(softoss_masterdev, int, S_IRUGO);
   66 MODULE_PARM_DESC(softoss_masterdev,
   67 "\n"
   68 "Master device to attach the SoftOSS engine to. -1 is automatic detection\n"
   69 "Values: 0-N,	Default: -1 (autodetect)\n"
   70 "\n"
   71 "\n");
   72 module_param(softoss_rate, int, S_IRUGO);
   73 MODULE_PARM_DESC(softoss_rate,
   74 "\n"
   75 "Maximum sample rate to use for the virtual mixer - this means that audio\n"
   76 "played at the sample rate of virtual mixer will pass through without SRC.\n"
   77 "Values: 8000-48000	Default: 48000\n"
   78 "\n"
   79 "\n");
   80 module_param(softoss_devices, int, S_IRUGO);
   81 MODULE_PARM_DESC(softoss_devices,
   82 "\n"
   83 "Number of Virtual Mixer /dev/dsp# devices to create\n"
   84 "Values: 1-32		Default: 4\n"
   85 "\n"
   86 "\n");
   87 module_param(softoss_loopdevs, int, S_IRUGO);
   88 MODULE_PARM_DESC(softoss_loopdevs,
   89 "\n"
   90 "Number of loopback recording devices to create. Loopback devices are\n"
   91 "special devices that can be used to record mix/sum of the audio outputs\n"
   92 "by an application running in the same computer.\n"
   93 "Values: 0-4	Default: 0\n"
   94 "\n"
   95 "\n");
   96 module_param(softoss_use_src, int, S_IRUGO);
   97 MODULE_PARM_DESC(softoss_use_src,
   98 "\n"
   99 "Enable Linear Interpolation or full SRC\n"
  100 "Values: 1=On 0=Off	Default: 1\n"
  101 "\n"
  102 "\n");
  103 module_param(softoss_redirect, int, S_IRUGO);
  104 MODULE_PARM_DESC(softoss_redirect,
  105 "\n"
  106 "Allow OSS to automatically redirect audio to virtual mixer devices or\n"
  107 "disable the feature\n"
  108 "Values: 1=On 0=Off	Default: 1\n"
  109 "\n"
  110 "\n");
  111 module_param(softoss_channels, int, S_IRUGO);
  112 MODULE_PARM_DESC(softoss_channels,
  113 "\n"
  114 "Number of channels supported by Virtual Mixer - currently it's 2 but \n"
  115 "in the future it can be 4 or 6 channels of audio.\n"
  116 "Values: 2, 4, 6	Default: 2\n"
  117 "\n"
  118 "\n");
  119 module_param(softoss_disable, int, S_IRUGO);
  120 MODULE_PARM_DESC(softoss_disable,
  121 "\n"
  122 "Disable the Virtual Mixer from attaching\n"
  123 "Values: 1=Disable 0=Enable	Default: 0\n"
  124 "\n");
  125 
  126