diff options
author | Matthew Gregan <[email protected]> | 2013-11-18 10:38:54 +1300 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2013-11-18 10:38:54 +1300 |
commit | 96d562fdb013b097ab32cf808869f17f6e7fc72b (patch) | |
tree | b0f09305b8448e45daf8264bba6560a57526bb31 /src/cubeb_audiotrack.c | |
parent | fb25b0638cab3af56379c8edc5fac1edc286c0a3 (diff) | |
download | cubeb-96d562fdb013b097ab32cf808869f17f6e7fc72b.tar.gz cubeb-96d562fdb013b097ab32cf808869f17f6e7fc72b.zip |
audiotrack: Look up getOutputSamplingRate for all versions of Android.
Diffstat (limited to 'src/cubeb_audiotrack.c')
-rw-r--r-- | src/cubeb_audiotrack.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cubeb_audiotrack.c b/src/cubeb_audiotrack.c index 2a6126e..33c3378 100644 --- a/src/cubeb_audiotrack.c +++ b/src/cubeb_audiotrack.c @@ -233,12 +233,13 @@ audiotrack_init(cubeb ** context, char const * context_name) DLSYM_DLERROR("_ZNK7android10AudioTrack7latencyEv", ctx->klass.latency, ctx->library); DLSYM_DLERROR("_ZNK7android10AudioTrack9initCheckEv", ctx->klass.check, ctx->library); + DLSYM_DLERROR("_ZN7android11AudioSystem21getOutputSamplingRateEPii", ctx->klass.get_output_samplingrate, ctx->library); + /* |getMinFrameCount| is not available on Froyo, and is available on * gingerbread and ICS with a different signature. */ if (audiotrack_version_is_froyo(ctx)) { DLSYM_DLERROR("_ZN7android11AudioSystem19getOutputFrameCountEPii", ctx->klass.get_output_frame_count, ctx->library); DLSYM_DLERROR("_ZN7android11AudioSystem16getOutputLatencyEPji", ctx->klass.get_output_latency, ctx->library); - DLSYM_DLERROR("_ZN7android11AudioSystem21getOutputSamplingRateEPii", ctx->klass.get_output_samplingrate, ctx->library); } else { DLSYM_DLERROR("_ZN7android10AudioTrack16getMinFrameCountEPi19audio_stream_type_tj", ctx->klass.get_min_frame_count, ctx->library); if (!ctx->klass.get_min_frame_count) { |