Skip to content

Commit

Permalink
libmedia pass through hack
Browse files Browse the repository at this point in the history
  • Loading branch information
stafstrom committed Jan 2, 2014
1 parent f0a84e8 commit 374ae43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/android/jni/AudioManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@
using namespace jni;

int CJNIAudioManager::STREAM_MUSIC(3);
int CJNIAudioManager::STREAM_VOICE_CALL(0);

void CJNIAudioManager::PopulateStaticFields()
{
jhclass clazz = find_class("android/media/AudioManager");
STREAM_MUSIC = (get_static_field<int>(clazz, "STREAM_MUSIC"));
STREAM_VOICE_CALL = (get_static_field<int>(clazz, "STREAM_VOICE_CALL"));
}

int CJNIAudioManager::getStreamMaxVolume()
Expand Down
1 change: 1 addition & 0 deletions xbmc/android/jni/AudioManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class CJNIAudioManager : public CJNIBase

static void PopulateStaticFields();
static int STREAM_MUSIC;
static int STREAM_VOICE_CALL;

private:
CJNIAudioManager();
Expand Down

0 comments on commit 374ae43

Please sign in to comment.