Commit ee2af43a by olly Committed by Oliver Woodman

Fix file formatting

PiperOrigin-RevId: 375919564
parent 4b0c9876
...@@ -16,9 +16,8 @@ ...@@ -16,9 +16,8 @@
#include "include/flac_parser.h" #include "include/flac_parser.h"
#include <jni.h>
#include <android/log.h> #include <android/log.h>
#include <jni.h>
#include <cassert> #include <cassert>
#include <cstdlib> #include <cstdlib>
...@@ -431,7 +430,7 @@ bool FLACParser::getSeekPositions(int64_t timeUs, ...@@ -431,7 +430,7 @@ bool FLACParser::getSeekPositions(int64_t timeUs,
targetSampleNumber = totalSamples - 1; targetSampleNumber = totalSamples - 1;
} }
FLAC__StreamMetadata_SeekPoint* points = mSeekTable->points; FLAC__StreamMetadata_SeekPoint *points = mSeekTable->points;
unsigned length = mSeekTable->num_points; unsigned length = mSeekTable->num_points;
for (unsigned i = length; i != 0; i--) { for (unsigned i = length; i != 0; i--) {
......
...@@ -64,8 +64,8 @@ public class GvrAudioProcessor implements AudioProcessor { ...@@ -64,8 +64,8 @@ public class GvrAudioProcessor implements AudioProcessor {
} }
/** /**
* Updates the listener head orientation. May be called on any thread. See * Updates the listener head orientation. May be called on any thread. See {@code
* {@code GvrAudioSurround.updateNativeOrientation}. * GvrAudioSurround.updateNativeOrientation}.
* *
* @param w The w component of the quaternion. * @param w The w component of the quaternion.
* @param x The x component of the quaternion. * @param x The x component of the quaternion.
...@@ -113,8 +113,9 @@ public class GvrAudioProcessor implements AudioProcessor { ...@@ -113,8 +113,9 @@ public class GvrAudioProcessor implements AudioProcessor {
throw new UnhandledAudioFormatException(inputAudioFormat); throw new UnhandledAudioFormatException(inputAudioFormat);
} }
if (buffer == EMPTY_BUFFER) { if (buffer == EMPTY_BUFFER) {
buffer = ByteBuffer.allocateDirect(FRAMES_PER_OUTPUT_BUFFER * OUTPUT_FRAME_SIZE) buffer =
.order(ByteOrder.nativeOrder()); ByteBuffer.allocateDirect(FRAMES_PER_OUTPUT_BUFFER * OUTPUT_FRAME_SIZE)
.order(ByteOrder.nativeOrder());
} }
pendingInputAudioFormat = inputAudioFormat; pendingInputAudioFormat = inputAudioFormat;
return new AudioFormat(inputAudioFormat.sampleRate, OUTPUT_CHANNEL_COUNT, C.ENCODING_PCM_16BIT); return new AudioFormat(inputAudioFormat.sampleRate, OUTPUT_CHANNEL_COUNT, C.ENCODING_PCM_16BIT);
...@@ -192,5 +193,4 @@ public class GvrAudioProcessor implements AudioProcessor { ...@@ -192,5 +193,4 @@ public class GvrAudioProcessor implements AudioProcessor {
gvrAudioSurround = null; gvrAudioSurround = null;
} }
} }
} }
...@@ -432,5 +432,4 @@ public final class ExoPlaybackException extends PlaybackException { ...@@ -432,5 +432,4 @@ public final class ExoPlaybackException extends PlaybackException {
bundle.putBoolean(keyForField(FIELD_IS_RECOVERABLE), isRecoverable); bundle.putBoolean(keyForField(FIELD_IS_RECOVERABLE), isRecoverable);
return bundle; return bundle;
} }
} }
...@@ -57,7 +57,6 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; ...@@ -57,7 +57,6 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
void onTransportReady(String transport, RtpDataChannel rtpDataChannel); void onTransportReady(String transport, RtpDataChannel rtpDataChannel);
} }
/** The track ID associated with the Loadable. */ /** The track ID associated with the Loadable. */
public final int trackId; public final int trackId;
/** The {@link RtspMediaTrack} to load. */ /** The {@link RtspMediaTrack} to load. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment