<?xml version="1.0" encoding="utf-8"?>
<audio-profiles>
  <profiles>
    <profile id="wma-asf">
      <_name>Windows Media Audio</_name>
      <_description>A proprietary lossy audio format with high quality output at a lower file size than MP3. A 96 kbps WMA is equivalent to a 128 kbps MP3.</_description>
      <output-file-extension>wma</output-file-extension>
      <mimetype>audio/x-ms-wma</mimetype>
      <mimetype>taglib/wma</mimetype>
      <pipeline>
        <process id="gstreamer">
        <![CDATA[
            (gst-construct-pipeline
                "audioconvert" 
                (gst-construct-element "fluwmaenc"
                    (if (cast-bool vbr)
                        ("quality" quality)
                        ("bitrate" (* 1000 bitrate)))
                    "vbr" (cast-bool vbr))
                "fluasfmux")
        ]]>
        </process>
        <variable id="vbr" enables="quality" disables="bitrate">
          <_name>Use a variable bitrate</_name>
          <control-type>check</control-type>
          <default-value>0</default-value>
        </variable>
        <variable id="bitrate">
          <_name>Bitrate</_name>
          <control-type>combo</control-type>
          <default-value>64</default-value>
          <possible-values>
            <value value="16">16 Kbps</value>
            <value value="24">24 Kbps</value>
            <value value="32">32 Kbps</value>
            <value value="64">64 Kbps</value>
            <value value="96">96 Kbps</value>
            <value value="128">128 Kbps</value>
          </possible-values>
        </variable>
        <variable id="quality">
          <_name>Audio Quality</_name>
          <control-type>slider</control-type>
          <min-value>0</min-value>
          <max-value>100</max-value>
          <_min-label>Worst</_min-label>
          <_max-label>Best</_max-label>
          <step-value>1</step-value>
          <default-value>75</default-value>
        </variable>
      </pipeline>
    </profile>
  </profiles>
</audio-profiles>
