Searched defs:pan (Results 1 - 25 of 58) sorted by relevance

123

/external/sonivox/arm-wt-22k/lib_src/
H A Deas_pan.c7 * Calculates left and right gain multipliers based on a pan value from -63 to +63
41 * Assign the left and right gain values corresponding to the given pan value.
52 * pan - pan value (-63 to + 63)
61 void EAS_CalcPanControl (EAS_INT pan, EAS_I16 *pGainLeft, EAS_I16 *pGainRight) argument
67 if (pan < -63)
69 else if (pan > 63)
72 netAngle = pan;
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/soundmanager2/
H A DSMSoundOptions.java24 public int pan = 0; field in class:SMSoundOptions
H A DSMSound.java68 pan: options.@com.badlogic.gdx.backends.gwt.soundmanager2.SMSoundOptions::pan,
108 /** Sets the stereo pan (left/right bias) of the given sound. Affects pan property.
109 * @param pan the panning amount, accepted values: -100 to 100 (L/R, 0 = center.) */
110 public native final void setPan (int pan) /*-{ argument
111 this.@com.badlogic.gdx.backends.gwt.soundmanager2.SMSound::jsSound.setPan(pan);
114 /** Gets the pan of the give sound.
115 * @return the pan as a value between -100-100. (L/R, 0 = center.)*/
117 return this.@com.badlogic.gdx.backends.gwt.soundmanager2.SMSound::jsSound.pan;
[all...]
/external/libgdx/backends/gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/objectal/
H A DALSource.java57 public native void setPan (float pan); argument
H A DOALSimpleAudio.java46 @Method(selector = "playEffect:volume:pitch:pan:loop:")
47 public native ALSource playEffect (String filePath, float volume, float pitch, float pan, boolean loop); argument
49 @Method(selector = "playBuffer:volume:pitch:pan:loop:")
50 public native ALSource playBuffer (ALBuffer buffer, float volume, float pitch, float pan, boolean loop); argument
H A DOALAudioTrack.java71 public native void setPan (float pan); argument
/external/libgdx/gdx/src/com/badlogic/gdx/audio/
H A DSound.java55 * @param pan panning in the range -1 (full left) to 1 (full right). 0 is center position.
57 public long play (float volume, float pitch, float pan); argument
73 * @param pan panning in the range -1 (full left) to 1 (full right). 0 is center position.
75 public long loop (float volume, float pitch, float pan); argument
124 * @param pan panning in the range -1 (full left) to 1 (full right). 0 is center position.
126 public void setPan (long soundId, float pan, float volume); argument
H A DMusic.java77 * @param pan panning in the range -1 (full left) to 1 (full right). 0 is center position.
79 public void setPan (float pan, float volume); argument
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
H A DAndroidSound.java118 public void setPan (long soundId, float pan, float volume) { argument
122 if (pan < 0) {
123 rightVolume *= (1 - Math.abs(pan));
124 } else if (pan > 0) {
125 leftVolume *= (1 - Math.abs(pan));
132 public long play (float volume, float pitch, float pan) { argument
136 if (pan < 0) {
137 rightVolume *= (1 - Math.abs(pan));
138 } else if (pan > 0) {
139 leftVolume *= (1 - Math.abs(pan));
149 loop(float volume, float pitch, float pan) argument
[all...]
H A DAndroidMusic.java138 public void setPan (float pan, float volume) { argument
143 if (pan < 0) {
144 rightVolume *= (1 - Math.abs(pan));
145 } else if (pan > 0) {
146 leftVolume *= (1 - Math.abs(pan));
/external/libgdx/backends/gdx-backend-headless/src/com/badlogic/gdx/backends/headless/mock/audio/
H A DMockMusic.java66 public void setPan(float pan, float volume) { argument
H A DMockSound.java36 public long play(float volume, float pitch, float pan) { argument
51 public long loop(float volume, float pitch, float pan) { argument
106 public void setPan(long soundId, float pan, float volume) { argument
/external/libgdx/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/audio/mock/
H A DMockMusic.java66 public void setPan(float pan, float volume) { argument
H A DMockSound.java36 public long play(float volume, float pitch, float pan) { argument
51 public long loop(float volume, float pitch, float pan) { argument
106 public void setPan(long soundId, float pan, float volume) { argument
/external/libgdx/backends/gdx-backend-moe/src/com/badlogic/gdx/backends/iosmoe/
H A DIOSMusic.java112 public void setPan (float pan, float volume) { argument
113 track.setPan(pan);
H A DIOSSound.java55 public long play (float volume, float pitch, float pan) { argument
56 return play(volume, pitch, pan, false);
59 public long play (float volume, float pitch, float pan, boolean loop) { argument
61 ALSource soundSource = OALSimpleAudio.sharedInstance().playBufferVolumePitchPanLoop(soundBuffer, volume, pitch, pan, loop);
79 public long loop (float volume, float pitch, float pan) { argument
80 return play(volume, pitch, pan, true);
122 public void setPan (long soundId, float pan, float volume) { argument
125 source.setPan(pan);
/external/libgdx/backends/gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/
H A DIOSMusic.java111 public void setPan (float pan, float volume) { argument
112 track.setPan(pan);
H A DIOSSound.java61 public long play (float volume, float pitch, float pan) { argument
62 return play(volume, pitch, pan, false);
65 public long play (float volume, float pitch, float pan, boolean loop) { argument
67 ALSource soundSource = OALSimpleAudio.sharedInstance().playBuffer(soundBuffer, volume, pitch, pan, loop);
85 public long loop (float volume, float pitch, float pan) { argument
86 return play(volume, pitch, pan, true);
128 public void setPan (long soundId, float pan, float volume) { argument
131 source.setPan(pan);
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/
H A DGwtSound.java78 public long play (float volume, float pitch, float pan) { argument
79 return play(volume, pitch, pan, false);
82 private long play (float volume, float pitch, float pan, boolean loop) { argument
91 sound.setPan(pan, volume);
109 public long loop (float volume, float pitch, float pan) { argument
110 return play(volume, pitch, pan, true);
183 public void setPan (long soundId, float pan, float volume) { argument
185 sounds[(int)soundId].setPan(pan, volume);
H A DGwtMusic.java33 private float pan = 0f; field in class:GwtMusic
52 soundOptions.pan = (int)(pan * 100);
103 public void setPan (float pan, float volume) { argument
104 sound.setPan((int)(pan * 100));
106 this.pan = pan;
/external/chromium-trace/catapult/third_party/flot/
H A Djquery.flot.navigate.js1 /* Flot plugin for adding the ability to pan and zoom the plot.
7 to pan. The plugin defines plot.zoom({ center }), plot.zoomOut() and
8 plot.pan( offset ) so you easily can add custom controls. It also fires
19 pan: {
31 interactive for pan, then you'll have a basic plot that supports moving
69 // pan 100 pixels to the left and 20 down
70 plot.pan({ left: -100, top: 20 })
119 pan: {
152 plot.getPlaceholder().css('cursor', plot.getOptions().pan.cursor);
158 var frameRate = plot.getOptions().pan
[all...]
H A Djquery.flot.navigate.min.js7 (function(a){function e(h){var k,j=this,l=h.data||{};if(l.elem)j=h.dragTarget=l.elem,h.dragProxy=d.proxy||j,h.cursorOffsetX=l.pageX-l.left,h.cursorOffsetY=l.pageY-l.top,h.offsetX=h.pageX-h.cursorOffsetX,h.offsetY=h.pageY-h.cursorOffsetY;else if(d.dragging||l.which>0&&h.which!=l.which||a(h.target).is(l.not))return;switch(h.type){case"mousedown":return a.extend(l,a(j).offset(),{elem:j,target:h.target,pageX:h.pageX,pageY:h.pageY}),b.add(document,"mousemove mouseup",e,l),i(j,!1),d.dragging=null,!1;case!d.dragging&&"mousemove":if(g(h.pageX-l.pageX)+g(h.pageY-l.pageY)<l.distance)break;h.target=l.target,k=f(h,"dragstart",j),k!==!1&&(d.dragging=j,d.proxy=h.dragProxy=a(k||j)[0]);case"mousemove":if(d.dragging){if(k=f(h,"drag",j),c.drop&&(c.drop.allowed=k!==!1,c.drop.handler(h)),k!==!1)break;h.type="mouseup"}case"mouseup":b.remove(document,"mousemove mouseup",e),d.dragging&&(c.drop&&c.drop.handler(h),f(h,"dragend",j)),i(j,!0),d.dragging=d.proxy=l.elem=!1}return!0}function f(b,c,d){b.type=c;var e=a.event.dispatch.call(d,b);return e===!1?!1:e||b.result}function g(a){return Math.pow(a,2)}function h(){return d.dragging===!1}function i(a,b){a&&(a.unselectable=b?"off":"on",a.onselectstart=function(){return b},a.style&&(a.style.MozUserSelect=b?"":"none"))}a.fn.drag=function(a,b,c){return b&&this.bind("dragstart",a),c&&this.bind("dragend",c),a?this.bind("drag",b?b:a):this.trigger("drag")};var b=a.event,c=b.special,d=c.drag={not:":input",distance:0,which:1,dragging:!1,setup:function(c){c=a.extend({distance:d.distance,which:d.which,not:d.not},c||{}),c.distance=g(c.distance),b.add(this,"mousedown",e,c),this.attachEvent&&this.attachEvent("ondragstart",h)},teardown:function(){b.remove(this,"mousedown",e),this===d.dragging&&(d.dragging=d.proxy=!1),i(this,!0),this.detachEvent&&this.detachEvent("ondragstart",h)}};c.dragstart=c.dragend={setup:function(){},teardown:function(){}}})(jQuery);(function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type="mousewheel";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;void 0!==b.axis&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);void 0!==b.wheelDeltaY&&(g=b.wheelDeltaY/120);void 0!==b.wheelDeltaX&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]=d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,!1);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,!1);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);(function($){var options={xaxis:{zoomRange:null,panRange:null},zoom:{interactive:false,trigger:"dblclick",amount:1.5},pan:{interactive:false,cursor:"move",frameRate:20}};function init(plot){function onZoomClick(e,zoomOut){var c=plot.offset();c.left=e.pageX-c.left;c.top=e.pageY-c.top;if(zoomOut)plot.zoomOut({center:c});else plot.zoom({center:c})}function onMouseWheel(e,delta){e.preventDefault();onZoomClick(e,delta<0);return false}var prevCursor="default",prevPageX=0,prevPageY=0,panTimeout=null;function onDragStart(e){if(e.which!=1)return false;var c=plot.getPlaceholder().css("cursor");if(c)prevCursor=c;plot.getPlaceholder().css("cursor",plot.getOptions().pan.cursor);prevPageX=e.pageX;prevPageY=e.pageY}function onDrag(e){var frameRate=plot.getOptions().pan.frameRate;if(panTimeout||!frameRate)return;panTimeout=setTimeout(function(){plot.pan({left:prevPageX-e.pageX,top:prevPageY-e.pageY});prevPageX=e.pageX;prevPageY=e.pageY;panTimeout=null},1/frameRate*1e3)}function onDragEnd(e){if(panTimeout){clearTimeout(panTimeout);panTimeout=null}plot.getPlaceholder().css("cursor",prevCursor);plot.pan({left:prevPageX-e.pageX,top:prevPageY-e.pageY})}function bindEvents(plot,eventHolder){var o=plot.getOptions();if(o.zoom.interactive){eventHolder[o.zoom.trigger](onZoomClick);eventHolder.mousewheel(onMouseWheel)}if(o.pan.interactive){eventHolder.bind("dragstart",{distance:10},onDragStart);eventHolder.bind("drag",onDrag);eventHolder.bind("dragend",onDragEnd)}}plot.zoomOut=function(args){if(!args)args={};if(!args.amount)args.amount=plot.getOptions().zoom.amount;args.amount=1/args.amount;plot.zoom(args)};plot.zoom=function(args){if(!args)args={};var c=args.center,amount=args.amount||plot.getOptions().zoom.amount,w=plot.width(),h=plot.height();if(!c)c={left:w/2,top:h/2};var xf=c.left/w,yf=c.top/h,minmax={x:{min:c.left-xf*w/amount,max:c.left+(1-xf)*w/amount},y:{min:c.top-yf*h/amount,max:c.top+(1-yf)*h/amount}};$.each(plot.getAxes(),function(_,axis){var opts=axis.options,min=minmax[axis.direction].min,max=minmax[axis.direction].max,zr=opts.zoomRange,pr=opts.panRange;if(zr===false)return;min=axis.c2p(min);max=axis.c2p(max);if(min>max){var tmp=min;min=max;max=tmp}if(pr){if(pr[0]!=null&&min<pr[0]){min=pr[0]}if(pr[1]!=null&&max>pr[1]){max=pr[1]}}var range=max-min;if(zr&&(zr[0]!=null&&range<zr[0]&&amount>1||zr[1]!=null&&range>zr[1]&&amount<1))return;opts.min=min;opts.max=max});plot.setupGrid();plot.draw();if(!args.preventEvent)plot.getPlaceholder().trigger("plotzoom",[plot,args])};plot.pan=function(args){var delta={x:+args.left,y:+args.top};if(isNaN(delta.x))delta.x=0;if(isNaN(delta.y)) (…)
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
H A DTouchZoomExampleActivity.java179 private void scroll(float pan) { argument
182 float offset = pan * step;
/external/libgdx/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/audio/
H A DOpenALSound.java154 public void setPan (long soundId, float pan, float volume) { argument
156 audio.setSoundPan(soundId, pan, volume);
160 public long play (float volume, float pitch, float pan) { argument
163 setPan(id, pan, volume);
168 public long loop (float volume, float pitch, float pan) { argument
171 setPan(id, pan, volume);
/external/libgdx/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/audio/
H A DOpenALSound.java154 public void setPan (long soundId, float pan, float volume) { argument
156 audio.setSoundPan(soundId, pan, volume);
160 public long play (float volume, float pitch, float pan) { argument
163 setPan(id, pan, volume);
168 public long loop (float volume, float pitch, float pan) { argument
171 setPan(id, pan, volume);

Completed in 832 milliseconds

123