aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAtneya Nair <atneya.nair@gmail.com>2019-08-07 10:18:45 -0700
committerGitHub <noreply@github.com>2019-08-07 10:18:45 -0700
commit953b2c2fbcabff7aa5f54009f5894cd6d0bfe1e1 (patch)
tree8cec30a085e0098bcba4469dc6714f9b6d9d84ac /include
parent37575d0a901f50c023f168fc6e640e498a56e4e2 (diff)
parent812dd68035a7d8b1bc9623e643b39c9a1778b7d8 (diff)
downloadoboe-953b2c2fbcabff7aa5f54009f5894cd6d0bfe1e1.tar.gz
Merge pull request #598 from google/fix-warnings
Commenting out parameters to use Wall compiler flag
Diffstat (limited to 'include')
-rw-r--r--include/oboe/AudioStream.h24
-rw-r--r--include/oboe/AudioStreamCallback.h4
2 files changed, 14 insertions, 14 deletions
diff --git a/include/oboe/AudioStream.h b/include/oboe/AudioStream.h
index ec943be6..87327238 100644
--- a/include/oboe/AudioStream.h
+++ b/include/oboe/AudioStream.h
@@ -174,7 +174,7 @@ public:
* @return the resulting buffer size in frames (obtained using value()) or an error (obtained
* using error())
*/
- virtual ResultWithValue<int32_t> setBufferSizeInFrames(int32_t requestedFrames) {
+ virtual ResultWithValue<int32_t> setBufferSizeInFrames(int32_t /* requestedFrames */) {
return Result::ErrorUnimplemented;
}
@@ -283,9 +283,9 @@ public:
* @param framePosition the frame number to query
* @param timeNanoseconds an output parameter which will contain the presentation timestamp
*/
- virtual Result getTimestamp(clockid_t clockId,
- int64_t *framePosition,
- int64_t *timeNanoseconds) {
+ virtual Result getTimestamp(clockid_t /* clockId */,
+ int64_t* /* framePosition */,
+ int64_t* /* timeNanoseconds */) {
return Result::ErrorUnimplemented;
}
@@ -304,7 +304,7 @@ public:
* @return a FrameTimestamp containing the position and time at which a particular audio frame
* entered or left the audio processing pipeline, or an error if the operation failed.
*/
- virtual ResultWithValue<FrameTimestamp> getTimestamp(clockid_t clockId){
+ virtual ResultWithValue<FrameTimestamp> getTimestamp(clockid_t /* clockId */){
return Result::ErrorUnimplemented;
}
@@ -321,9 +321,9 @@ public:
* @return a ResultWithValue which has a result of Result::OK and a value containing the number
* of frames actually written, or result of Result::Error*.
*/
- virtual ResultWithValue<int32_t> write(const void *buffer,
- int32_t numFrames,
- int64_t timeoutNanoseconds) {
+ virtual ResultWithValue<int32_t> write(const void* /* buffer */,
+ int32_t /* numFrames */,
+ int64_t /* timeoutNanoseconds */ ) {
return ResultWithValue<int32_t>(Result::ErrorUnimplemented);
}
@@ -339,9 +339,9 @@ public:
* @return a ResultWithValue which has a result of Result::OK and a value containing the number
* of frames actually read, or result of Result::Error*.
*/
- virtual ResultWithValue<int32_t> read(void *buffer,
- int32_t numFrames,
- int64_t timeoutNanoseconds) {
+ virtual ResultWithValue<int32_t> read(void* /* buffer */,
+ int32_t /* numFrames */,
+ int64_t /* timeoutNanoseconds */) {
return ResultWithValue<int32_t>(Result::ErrorUnimplemented);
}
@@ -410,7 +410,7 @@ protected:
* @param numFrames
* @return result
*/
- virtual DataCallbackResult onDefaultCallback(void *audioData, int numFrames) {
+ virtual DataCallbackResult onDefaultCallback(void* /* audioData */, int /* numFrames */) {
return DataCallbackResult::Stop;
}
diff --git a/include/oboe/AudioStreamCallback.h b/include/oboe/AudioStreamCallback.h
index b4057d0b..f427693e 100644
--- a/include/oboe/AudioStreamCallback.h
+++ b/include/oboe/AudioStreamCallback.h
@@ -100,7 +100,7 @@ public:
* @param oboeStream pointer to the associated stream
* @param error
*/
- virtual void onErrorBeforeClose(AudioStream *oboeStream, Result error) {}
+ virtual void onErrorBeforeClose(AudioStream* /* oboeStream */, Result /* error */) {}
/**
* This will be called when an error occurs on a stream or when the stream is disconnected.
@@ -114,7 +114,7 @@ public:
* @param oboeStream pointer to the associated stream
* @param error
*/
- virtual void onErrorAfterClose(AudioStream *oboeStream, Result error) {}
+ virtual void onErrorAfterClose(AudioStream* /* oboeStream */, Result /* error */) {}
};