Skip to content
Snippets Groups Projects
Commit 25c82d4a authored by Lyubomir Marinov's avatar Lyubomir Marinov
Browse files

Fixes warnings, spelling mistakes.

parent 272b4e57
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
import javax.media.format.*; import javax.media.format.*;
import org.jitsi.impl.neomedia.*; import org.jitsi.impl.neomedia.*;
import org.jitsi.impl.neomedia.control.*;
import org.jitsi.impl.neomedia.jmfext.media.renderer.audio.*; import org.jitsi.impl.neomedia.jmfext.media.renderer.audio.*;
import org.jitsi.util.*; import org.jitsi.util.*;
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
import org.jitsi.impl.neomedia.*; import org.jitsi.impl.neomedia.*;
import org.jitsi.impl.neomedia.codec.*; import org.jitsi.impl.neomedia.codec.*;
import org.jitsi.impl.neomedia.control.*;
import org.jitsi.impl.neomedia.device.*; import org.jitsi.impl.neomedia.device.*;
import org.jitsi.impl.neomedia.jmfext.media.protocol.*; import org.jitsi.impl.neomedia.jmfext.media.protocol.*;
import org.jitsi.service.neomedia.*; import org.jitsi.service.neomedia.*;
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
package org.jitsi.impl.neomedia.jmfext.media.renderer.audio; package org.jitsi.impl.neomedia.jmfext.media.renderer.audio;
import java.beans.*; import java.beans.*;
import java.lang.reflect.*;
import java.util.*; import java.util.*;
import java.util.concurrent.locks.*; import java.util.concurrent.locks.*;
...@@ -15,12 +14,8 @@ ...@@ -15,12 +14,8 @@
import javax.media.format.*; import javax.media.format.*;
import org.jitsi.impl.neomedia.*; import org.jitsi.impl.neomedia.*;
import org.jitsi.impl.neomedia.control.*;
import org.jitsi.impl.neomedia.device.*; import org.jitsi.impl.neomedia.device.*;
import org.jitsi.service.neomedia.*; import org.jitsi.service.neomedia.*;
import org.jitsi.util.*;
import java.nio.ByteBuffer;
/** /**
* Implements an audio <tt>Renderer</tt> which uses MacOSX Coreaudio. * Implements an audio <tt>Renderer</tt> which uses MacOSX Coreaudio.
...@@ -30,13 +25,6 @@ ...@@ -30,13 +25,6 @@
public class MacCoreaudioRenderer public class MacCoreaudioRenderer
extends AbstractAudioRenderer<MacCoreaudioSystem> extends AbstractAudioRenderer<MacCoreaudioSystem>
{ {
/**
* The <tt>Logger</tt> used by the <tt>MacCoreaudioRenderer</tt> class and
* its instances for logging output.
*/
private static final Logger logger
= Logger.getLogger(MacCoreaudioRenderer.class);
/** /**
* The device used for this renderer. * The device used for this renderer.
*/ */
...@@ -48,13 +36,13 @@ public class MacCoreaudioRenderer ...@@ -48,13 +36,13 @@ public class MacCoreaudioRenderer
private long stream = 0; private long stream = 0;
/** /**
* A mutual eclusion used to avoid conflict when starting / stoping the * A mutual exclusion used to avoid conflict when starting / stopping the
* stream for this renderer; * stream for this renderer;
*/ */
private Object startStopMutex = new Object(); private Object startStopMutex = new Object();
/** /**
* The buffer which stores th incoming data before sending them to * The buffer which stores the incoming data before sending them to
* CoreAudio. * CoreAudio.
*/ */
private byte[] buffer = null; private byte[] buffer = null;
...@@ -232,8 +220,7 @@ public Format[] getSupportedInputFormats() ...@@ -232,8 +220,7 @@ public Format[] getSupportedInputFormats()
{ {
if (supportedInputFormats == null) if (supportedInputFormats == null)
{ {
MediaLocator locator = getLocator(); updateDeviceUID();
this.updateDeviceUID();
if(deviceUID == null) if(deviceUID == null)
{ {
...@@ -539,7 +526,6 @@ public void writeOutput(byte[] buffer, int bufferLength) ...@@ -539,7 +526,6 @@ public void writeOutput(byte[] buffer, int bufferLength)
{ {
updateBufferLength(bufferLength); updateBufferLength(bufferLength);
int i = 0;
int length = nbBufferData; int length = nbBufferData;
if(bufferLength < length) if(bufferLength < length)
{ {
...@@ -566,7 +552,7 @@ public void writeOutput(byte[] buffer, int bufferLength) ...@@ -566,7 +552,7 @@ public void writeOutput(byte[] buffer, int bufferLength)
nbBufferData); nbBufferData);
} }
// If the stop process is waiting, notifies that every // If the stop process is waiting, notifies that every
// sample has been consummed (nbBufferData == 0). // sample has been consumed (nbBufferData == 0).
else else
{ {
startStopMutex.notify(); startStopMutex.notify();
...@@ -604,7 +590,7 @@ private boolean updateDeviceUID() ...@@ -604,7 +590,7 @@ private boolean updateDeviceUID()
} }
/** /**
* Increases the buffer length if necessary: if the new legnth is greater * Increases the buffer length if necessary: if the new length is greater
* than the current buffer length. * than the current buffer length.
* *
* @param newLength The new length requested. * @param newLength The new length requested.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment