Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8526d86a authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "oboe: permit use from C"

parents ac4b1d33 08ba52f7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -22,6 +22,10 @@

#include "OboeDefinitions.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef int32_t OboeDeviceId;
typedef oboe_handle_t OboeStream;
typedef oboe_handle_t OboeStreamBuilder;
@@ -533,4 +537,8 @@ oboe_result_t OboeStream_getTimestamp(OboeStream stream,
                                      oboe_position_frames_t *framePosition,
                                      oboe_nanoseconds_t *timeNanoseconds);

#ifdef __cplusplus
}
#endif

#endif //NATIVEOBOE_OBOEAUDIO_H
+9 −1
Original line number Diff line number Diff line
@@ -19,7 +19,11 @@

#include <stdint.h>

typedef int32_t  oboe_handle_t;
#ifdef __cplusplus
extern "C" {
#endif

typedef int32_t  oboe_handle_t; // negative handles are error codes
typedef int32_t  oboe_result_t;
typedef int32_t  oboe_sample_rate_t;
/** This is used for small quantities such as the number of frames in a buffer. */
@@ -174,4 +178,8 @@ typedef enum {
    OBOE_SHARING_MODE_COUNT // This should always be last.
} oboe_sharing_mode_t;

#ifdef __cplusplus
}
#endif

#endif // OBOE_OBOEDEFINITIONS_H