require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SYS_AUDIOIO_H_)) {
    eval 'sub _SYS_AUDIOIO_H_ () {1;}' unless defined(&_SYS_AUDIOIO_H_);
    eval 'sub AUMODE_PLAY () {0x1;}' unless defined(&AUMODE_PLAY);
    eval 'sub AUMODE_RECORD () {0x2;}' unless defined(&AUMODE_RECORD);
    eval 'sub AUMODE_PLAY_ALL () {0x4;}' unless defined(&AUMODE_PLAY_ALL);
    eval 'sub AUDIO_INITINFO {
        my($p) = @_;
	    eval q(( &void) &memset(( &void *)($p), 0xff, $sizeof{\'struct audio_info\'}));
    }' unless defined(&AUDIO_INITINFO);
    eval 'sub MAX_AUDIO_DEV_LEN () {16;}' unless defined(&MAX_AUDIO_DEV_LEN);
    eval 'sub AUDIO_ENCODING_NONE () {0;}' unless defined(&AUDIO_ENCODING_NONE);
    eval 'sub AUDIO_ENCODING_ULAW () {1;}' unless defined(&AUDIO_ENCODING_ULAW);
    eval 'sub AUDIO_ENCODING_ALAW () {2;}' unless defined(&AUDIO_ENCODING_ALAW);
    eval 'sub AUDIO_ENCODING_PCM16 () {3;}' unless defined(&AUDIO_ENCODING_PCM16);
    eval 'sub AUDIO_ENCODING_LINEAR () { &AUDIO_ENCODING_PCM16;}' unless defined(&AUDIO_ENCODING_LINEAR);
    eval 'sub AUDIO_ENCODING_PCM8 () {4;}' unless defined(&AUDIO_ENCODING_PCM8);
    eval 'sub AUDIO_ENCODING_LINEAR8 () { &AUDIO_ENCODING_PCM8;}' unless defined(&AUDIO_ENCODING_LINEAR8);
    eval 'sub AUDIO_ENCODING_ADPCM () {5;}' unless defined(&AUDIO_ENCODING_ADPCM);
    eval 'sub AUDIO_ENCODING_SLINEAR_LE () {6;}' unless defined(&AUDIO_ENCODING_SLINEAR_LE);
    eval 'sub AUDIO_ENCODING_SLINEAR_BE () {7;}' unless defined(&AUDIO_ENCODING_SLINEAR_BE);
    eval 'sub AUDIO_ENCODING_ULINEAR_LE () {8;}' unless defined(&AUDIO_ENCODING_ULINEAR_LE);
    eval 'sub AUDIO_ENCODING_ULINEAR_BE () {9;}' unless defined(&AUDIO_ENCODING_ULINEAR_BE);
    eval 'sub AUDIO_ENCODING_SLINEAR () {10;}' unless defined(&AUDIO_ENCODING_SLINEAR);
    eval 'sub AUDIO_ENCODING_ULINEAR () {11;}' unless defined(&AUDIO_ENCODING_ULINEAR);
    eval 'sub AUDIO_ENCODING_MPEG_L1_STREAM () {12;}' unless defined(&AUDIO_ENCODING_MPEG_L1_STREAM);
    eval 'sub AUDIO_ENCODING_MPEG_L1_PACKETS () {13;}' unless defined(&AUDIO_ENCODING_MPEG_L1_PACKETS);
    eval 'sub AUDIO_ENCODING_MPEG_L1_SYSTEM () {14;}' unless defined(&AUDIO_ENCODING_MPEG_L1_SYSTEM);
    eval 'sub AUDIO_ENCODING_MPEG_L2_STREAM () {15;}' unless defined(&AUDIO_ENCODING_MPEG_L2_STREAM);
    eval 'sub AUDIO_ENCODING_MPEG_L2_PACKETS () {16;}' unless defined(&AUDIO_ENCODING_MPEG_L2_PACKETS);
    eval 'sub AUDIO_ENCODING_MPEG_L2_SYSTEM () {17;}' unless defined(&AUDIO_ENCODING_MPEG_L2_SYSTEM);
    eval 'sub AUDIO_ENCODING_MPEG_L3_STREAM () {18;}' unless defined(&AUDIO_ENCODING_MPEG_L3_STREAM);
    eval 'sub AUDIO_ENCODING_MPEG_L3_PACKETS () {19;}' unless defined(&AUDIO_ENCODING_MPEG_L3_PACKETS);
    eval 'sub AUDIO_ENCODING_MPEG_L3_SYSTEM () {20;}' unless defined(&AUDIO_ENCODING_MPEG_L3_SYSTEM);
    eval 'sub AUDIO_ENCODINGFLAG_EMULATED () {1;}' unless defined(&AUDIO_ENCODINGFLAG_EMULATED);
    eval 'sub AUDIO_LEFT_BALANCE () {0;}' unless defined(&AUDIO_LEFT_BALANCE);
    eval 'sub AUDIO_MID_BALANCE () {32;}' unless defined(&AUDIO_MID_BALANCE);
    eval 'sub AUDIO_RIGHT_BALANCE () {64;}' unless defined(&AUDIO_RIGHT_BALANCE);
    eval 'sub AUDIO_BALANCE_SHIFT () {3;}' unless defined(&AUDIO_BALANCE_SHIFT);
    eval 'sub AUDIO_SPEAKER () {0x1;}' unless defined(&AUDIO_SPEAKER);
    eval 'sub AUDIO_HEADPHONE () {0x2;}' unless defined(&AUDIO_HEADPHONE);
    eval 'sub AUDIO_LINE_OUT () {0x4;}' unless defined(&AUDIO_LINE_OUT);
    eval 'sub AUDIO_MICROPHONE () {0x1;}' unless defined(&AUDIO_MICROPHONE);
    eval 'sub AUDIO_LINE_IN () {0x2;}' unless defined(&AUDIO_LINE_IN);
    eval 'sub AUDIO_CD () {0x4;}' unless defined(&AUDIO_CD);
    eval 'sub AUDIO_INTERNAL_CD_IN () { &AUDIO_CD;}' unless defined(&AUDIO_INTERNAL_CD_IN);
    eval 'sub AUDIO_GETINFO () { &_IOR(ord(\'A\'), 21, \'struct audio_info\');}' unless defined(&AUDIO_GETINFO);
    eval 'sub AUDIO_SETINFO () { &_IOWR(ord(\'A\'), 22, \'struct audio_info\');}' unless defined(&AUDIO_SETINFO);
    eval 'sub AUDIO_DRAIN () { &_IO(ord(\'A\'), 23);}' unless defined(&AUDIO_DRAIN);
    eval 'sub AUDIO_FLUSH () { &_IO(ord(\'A\'), 24);}' unless defined(&AUDIO_FLUSH);
    eval 'sub AUDIO_WSEEK () { &_IOR(ord(\'A\'), 25, \'u_long\');}' unless defined(&AUDIO_WSEEK);
    eval 'sub AUDIO_RERROR () { &_IOR(ord(\'A\'), 26, \'int\');}' unless defined(&AUDIO_RERROR);
    eval 'sub AUDIO_GETDEV () { &_IOR(ord(\'A\'), 27, \'struct audio_device\');}' unless defined(&AUDIO_GETDEV);
    eval 'sub AUDIO_GETENC () { &_IOWR(ord(\'A\'), 28, \'struct audio_encoding\');}' unless defined(&AUDIO_GETENC);
    eval 'sub AUDIO_GETFD () { &_IOR(ord(\'A\'), 29, \'int\');}' unless defined(&AUDIO_GETFD);
    eval 'sub AUDIO_SETFD () { &_IOWR(ord(\'A\'), 30, \'int\');}' unless defined(&AUDIO_SETFD);
    eval 'sub AUDIO_PERROR () { &_IOR(ord(\'A\'), 31, \'int\');}' unless defined(&AUDIO_PERROR);
    eval 'sub AUDIO_GETIOFFS () { &_IOR(ord(\'A\'), 32, \'struct audio_offset\');}' unless defined(&AUDIO_GETIOFFS);
    eval 'sub AUDIO_GETOOFFS () { &_IOR(ord(\'A\'), 33, \'struct audio_offset\');}' unless defined(&AUDIO_GETOOFFS);
    eval 'sub AUDIO_GETPROPS () { &_IOR(ord(\'A\'), 34, \'int\');}' unless defined(&AUDIO_GETPROPS);
    eval 'sub AUDIO_PROP_FULLDUPLEX () {0x1;}' unless defined(&AUDIO_PROP_FULLDUPLEX);
    eval 'sub AUDIO_PROP_MMAP () {0x2;}' unless defined(&AUDIO_PROP_MMAP);
    eval 'sub AUDIO_PROP_INDEPENDENT () {0x4;}' unless defined(&AUDIO_PROP_INDEPENDENT);
    eval 'sub AUDIO_MIN_GAIN () {0;}' unless defined(&AUDIO_MIN_GAIN);
    eval 'sub AUDIO_MAX_GAIN () {255;}' unless defined(&AUDIO_MAX_GAIN);
    eval 'sub AUDIO_MIXER_LEVEL_MONO () {0;}' unless defined(&AUDIO_MIXER_LEVEL_MONO);
    eval 'sub AUDIO_MIXER_LEVEL_LEFT () {0;}' unless defined(&AUDIO_MIXER_LEVEL_LEFT);
    eval 'sub AUDIO_MIXER_LEVEL_RIGHT () {1;}' unless defined(&AUDIO_MIXER_LEVEL_RIGHT);
    eval 'sub AUDIO_MIXER_CLASS () {0;}' unless defined(&AUDIO_MIXER_CLASS);
    eval 'sub AUDIO_MIXER_ENUM () {1;}' unless defined(&AUDIO_MIXER_ENUM);
    eval 'sub AUDIO_MIXER_SET () {2;}' unless defined(&AUDIO_MIXER_SET);
    eval 'sub AUDIO_MIXER_VALUE () {3;}' unless defined(&AUDIO_MIXER_VALUE);
    eval 'sub AUDIO_MIXER_LAST () {-1;}' unless defined(&AUDIO_MIXER_LAST);
    eval 'sub AUDIO_MIXER_READ () { &_IOWR(ord(\'M\'), 0,  &mixer_ctrl_t);}' unless defined(&AUDIO_MIXER_READ);
    eval 'sub AUDIO_MIXER_WRITE () { &_IOWR(ord(\'M\'), 1,  &mixer_ctrl_t);}' unless defined(&AUDIO_MIXER_WRITE);
    eval 'sub AUDIO_MIXER_DEVINFO () { &_IOWR(ord(\'M\'), 2,  &mixer_devinfo_t);}' unless defined(&AUDIO_MIXER_DEVINFO);
    eval 'sub AudioNmicrophone () {"mic";}' unless defined(&AudioNmicrophone);
    eval 'sub AudioNline () {"line";}' unless defined(&AudioNline);
    eval 'sub AudioNcd () {"cd";}' unless defined(&AudioNcd);
    eval 'sub AudioNdac () {"dac";}' unless defined(&AudioNdac);
    eval 'sub AudioNaux () {"aux";}' unless defined(&AudioNaux);
    eval 'sub AudioNrecord () {"record";}' unless defined(&AudioNrecord);
    eval 'sub AudioNvolume () {"volume";}' unless defined(&AudioNvolume);
    eval 'sub AudioNmonitor () {"monitor";}' unless defined(&AudioNmonitor);
    eval 'sub AudioNtreble () {"treble";}' unless defined(&AudioNtreble);
    eval 'sub AudioNmid () {"mid";}' unless defined(&AudioNmid);
    eval 'sub AudioNbass () {"bass";}' unless defined(&AudioNbass);
    eval 'sub AudioNbassboost () {"bassboost";}' unless defined(&AudioNbassboost);
    eval 'sub AudioNspeaker () {"speaker";}' unless defined(&AudioNspeaker);
    eval 'sub AudioNheadphone () {"headphones";}' unless defined(&AudioNheadphone);
    eval 'sub AudioNoutput () {"output";}' unless defined(&AudioNoutput);
    eval 'sub AudioNinput () {"input";}' unless defined(&AudioNinput);
    eval 'sub AudioNmaster () {"master";}' unless defined(&AudioNmaster);
    eval 'sub AudioNstereo () {"stereo";}' unless defined(&AudioNstereo);
    eval 'sub AudioNmono () {"mono";}' unless defined(&AudioNmono);
    eval 'sub AudioNloudness () {"loudness";}' unless defined(&AudioNloudness);
    eval 'sub AudioNspatial () {"spatial";}' unless defined(&AudioNspatial);
    eval 'sub AudioNsurround () {"surround";}' unless defined(&AudioNsurround);
    eval 'sub AudioNpseudo () {"pseudo";}' unless defined(&AudioNpseudo);
    eval 'sub AudioNmute () {"mute";}' unless defined(&AudioNmute);
    eval 'sub AudioNenhanced () {"enhanced";}' unless defined(&AudioNenhanced);
    eval 'sub AudioNpreamp () {"preamp";}' unless defined(&AudioNpreamp);
    eval 'sub AudioNon () {"on";}' unless defined(&AudioNon);
    eval 'sub AudioNoff () {"off";}' unless defined(&AudioNoff);
    eval 'sub AudioNmode () {"mode";}' unless defined(&AudioNmode);
    eval 'sub AudioNsource () {"source";}' unless defined(&AudioNsource);
    eval 'sub AudioNfmsynth () {"fmsynth";}' unless defined(&AudioNfmsynth);
    eval 'sub AudioNwave () {"wave";}' unless defined(&AudioNwave);
    eval 'sub AudioNmidi () {"midi";}' unless defined(&AudioNmidi);
    eval 'sub AudioNmixerout () {"mixerout";}' unless defined(&AudioNmixerout);
    eval 'sub AudioNswap () {"swap";}' unless defined(&AudioNswap);
    eval 'sub AudioNagc () {"agc";}' unless defined(&AudioNagc);
    eval 'sub AudioNdelay () {"delay";}' unless defined(&AudioNdelay);
    eval 'sub AudioNselect () {"select";}' unless defined(&AudioNselect);
    eval 'sub AudioNvideo () {"video";}' unless defined(&AudioNvideo);
    eval 'sub AudioNcenter () {"center";}' unless defined(&AudioNcenter);
    eval 'sub AudioNdepth () {"depth";}' unless defined(&AudioNdepth);
    eval 'sub AudioNlfe () {"lfe";}' unless defined(&AudioNlfe);
    eval 'sub AudioNextamp () {"extamp";}' unless defined(&AudioNextamp);
    eval 'sub AudioEmulaw () {"mulaw";}' unless defined(&AudioEmulaw);
    eval 'sub AudioEalaw () {"alaw";}' unless defined(&AudioEalaw);
    eval 'sub AudioEadpcm () {"adpcm";}' unless defined(&AudioEadpcm);
    eval 'sub AudioEslinear () {"slinear";}' unless defined(&AudioEslinear);
    eval 'sub AudioEslinear_le () {"slinear_le";}' unless defined(&AudioEslinear_le);
    eval 'sub AudioEslinear_be () {"slinear_be";}' unless defined(&AudioEslinear_be);
    eval 'sub AudioEulinear () {"ulinear";}' unless defined(&AudioEulinear);
    eval 'sub AudioEulinear_le () {"ulinear_le";}' unless defined(&AudioEulinear_le);
    eval 'sub AudioEulinear_be () {"ulinear_be";}' unless defined(&AudioEulinear_be);
    eval 'sub AudioEmpeg_l1_stream () {"mpeg_l1_stream";}' unless defined(&AudioEmpeg_l1_stream);
    eval 'sub AudioEmpeg_l1_packets () {"mpeg_l1_packets";}' unless defined(&AudioEmpeg_l1_packets);
    eval 'sub AudioEmpeg_l1_system () {"mpeg_l1_system";}' unless defined(&AudioEmpeg_l1_system);
    eval 'sub AudioEmpeg_l2_stream () {"mpeg_l2_stream";}' unless defined(&AudioEmpeg_l2_stream);
    eval 'sub AudioEmpeg_l2_packets () {"mpeg_l2_packets";}' unless defined(&AudioEmpeg_l2_packets);
    eval 'sub AudioEmpeg_l2_system () {"mpeg_l2_system";}' unless defined(&AudioEmpeg_l2_system);
    eval 'sub AudioCinputs () {"inputs";}' unless defined(&AudioCinputs);
    eval 'sub AudioCoutputs () {"outputs";}' unless defined(&AudioCoutputs);
    eval 'sub AudioCrecord () {"record";}' unless defined(&AudioCrecord);
    eval 'sub AudioCmonitor () {"monitor";}' unless defined(&AudioCmonitor);
    eval 'sub AudioCequalization () {"equalization";}' unless defined(&AudioCequalization);
}
1;
