Created
November 25, 2012 14:24
-
-
Save sakuramilk/4143728 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if 1 | |
// Really dirty hack to give a Froyo-compatible constructor | |
extern "C" AudioTrack *_ZN7android10AudioTrackC1EijiiijPFviPvS1_ES1_ii( | |
AudioTrack *This, | |
int streamType, | |
uint32_t sampleRate, | |
int format, | |
int channels, | |
int frameCount, | |
uint32_t flags, | |
AudioTrack::callback_t cbf, | |
void* user, | |
int notificationFrames, | |
int sessionId); | |
extern "C" AudioTrack *_ZN7android10AudioTrackC1EijiiijPFviPvS1_ES1_i( | |
AudioTrack *This, | |
int streamType, | |
uint32_t sampleRate, | |
int format, | |
int channels, | |
int frameCount, | |
uint32_t flags, | |
AudioTrack::callback_t cbf, | |
void* user, | |
int notificationFrames) | |
{ | |
return _ZN7android10AudioTrackC1EijiiijPFviPvS1_ES1_ii(This, | |
streamType, sampleRate, format, channels, | |
frameCount, flags, cbf, user, notificationFrames, 0); | |
} | |
#endif | |
// for one-seg | |
extern "C" AudioTrack *_ZN7android10AudioTrackC1EijiiijPFviPvS1_ES1_iii( | |
AudioTrack *This, | |
int streamType, | |
uint32_t sampleRate, | |
int format, | |
int channels, | |
int frameCount, | |
uint32_t flags, | |
AudioTrack::callback_t cbf, | |
void* user, | |
int notificationFrames, | |
int sessionId, | |
int unknown) | |
{ | |
ALOGI("_ZN7android10AudioTrackC1EijiiijPFviPvS1_ES1_iii unknown=%d", unknown); | |
return _ZN7android10AudioTrackC1EijiiijPFviPvS1_ES1_ii(This, | |
streamType, sampleRate, format, channels, | |
frameCount, flags, cbf, user, notificationFrames, sessionId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment