<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Yup, that's basically all it does.<br>
      <br>
      It's hard to say re: the gain result; if you're not already using
      OpenAL Soft you'll want to check with that first. As long as the
      listener/source gains seem right and it all aligns with the
      distance model, you should be able to make adjustments from there
      to get it to where you want.<br>
      <br>
      -Ethan<br>
      <br>
      On 04/20/2014 09:22 PM, Villermen wrote:<br>
    </div>
    <blockquote
cite="mid:CAK+vQdpuxYf3ioQAaahM+69BbfnvoMNsOMqEK3hX1fHwpF8ytw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks for the quick replay Ethan!
        <div><br>
        </div>
        <div>This does seem like the closest it gets. Do I get it right
          if I say that it sort of creates a half-circle around the
          z-axis to make the distance to the listener stay the same?</div>
        <div><br>
        </div>
        <div>The actual gain around -1f and 1f  for INTERNAL_pan does
          seem higher than 1. Is there a way to get this closer? If not
          I'll happily take this way of handling it as it's too close to
          really give anything about it.</div>
        <div><br>
        </div>
        <div>Gr.Villermen</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, Apr 21, 2014 at 2:52 AM, Ethan
          Lee <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:flibitijibibo@flibitijibibo.com"
              target="_blank">flibitijibibo@flibitijibibo.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <div>In FNA we do something like this, but it's probably
                not ideal (if not just incorrect):<br>
                <br>
                <a moz-do-not-send="true"
href="https://github.com/flibitijibibo/MonoGame/blob/monogame-sdl2/MonoGame.Framework/Audio/SoundEffectInstance.cs#L58"
                  target="_blank">https://github.com/flibitijibibo/MonoGame/blob/monogame-sdl2/MonoGame.Framework/Audio/SoundEffectInstance.cs#L58</a><br>
                <br>
                I know for sure that this doesn't provide hard panning,
                but you probably didn't _really_ want to do hard pans
                anyway. We do that work to keep things at the 1.0f
                distance, but if attenuation isn't required for your
                project, you can turn that off and possibly save some
                time/effort:<br>
                <br>
                <a moz-do-not-send="true"
href="https://github.com/flibitijibibo/MonoGame/blob/monogame-sdl2/MonoGame.Framework/Audio/OpenALDevice.cs#L102"
                  target="_blank">https://github.com/flibitijibibo/MonoGame/blob/monogame-sdl2/MonoGame.Framework/Audio/OpenALDevice.cs#L102</a><br>
                <br>
                -Ethan
                <div>
                  <div class="h5"><br>
                    <br>
                    On 04/20/2014 08:44 PM, Villermen wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hey there, 
                      <div><br>
                      </div>
                      <div>After not being able to figure this one out
                        myself I've posted my question on the OpenTK
                        forums and StackOverflow, where I was suggested
                        by the OpenTK dev to ask you about it =)</div>
                      <div><br>
                      </div>
                      <div>Basically I'd like to have a balance value of
                        -1f (left channel only) to 1f (right channel
                        only) be converted into a position for an OpenAL
                        source where it will act as such:</div>
                      <div><span>When having 0f (default value) as
                          balance value both sides (left/right ear)
                          should be at 100% gain. </span></div>
                      <div><span>When 1f 100% for the right ear and 0%
                          for the left ear and the opposite for -1f.</span></div>
                      <div><span>They should attenuate in a linear way.</span></div>
                      <div><br>
                      </div>
                      <div>For what I've tried so far please read <a
                          moz-do-not-send="true"
href="http://stackoverflow.com/questions/23154049/linear-1d-audio-balance-with-openal"
                          target="_blank">my post on StackOverflow</a>.
                        I'm working with the OpenTK library but I am
                        pretty sure I can convert any OpenAL related
                        answer to it, just as long as I can understand
                        it in general.</div>
                      <div><br>
                      </div>
                      <div>I would really like to know if and how this
                        is possible, and any thoughts on this are
                        welcome!</div>
                      <div><br>
                      </div>
                      <div>Gr.Villermen</div>
                      <div> </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
openal mailing list
<a moz-do-not-send="true" href="mailto:openal@openal.org" target="_blank">openal@openal.org</a>
<a moz-do-not-send="true" href="http://openal.org/mailman/listinfo/openal" target="_blank">http://openal.org/mailman/listinfo/openal</a>
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            openal mailing list<br>
            <a moz-do-not-send="true" href="mailto:openal@openal.org">openal@openal.org</a><br>
            <a moz-do-not-send="true"
              href="http://openal.org/mailman/listinfo/openal"
              target="_blank">http://openal.org/mailman/listinfo/openal</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <br>
        <div style="text-align:left"><a moz-do-not-send="true"
            style="color:rgb(192,192,192)"
            href="http://www.villermen.com/" target="_blank"><font
              face="comic sans ms,sans-serif">villermen.com</font></a><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
openal mailing list
<a class="moz-txt-link-abbreviated" href="mailto:openal@openal.org">openal@openal.org</a>
<a class="moz-txt-link-freetext" href="http://openal.org/mailman/listinfo/openal">http://openal.org/mailman/listinfo/openal</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>