diff options
Diffstat (limited to 'media')
5 files changed, 7 insertions, 14 deletions
diff --git a/media/libstagefright/codecs/aacenc/inc/aac_rom.h b/media/libstagefright/codecs/aacenc/inc/aac_rom.h index 8e206b7..0b6f656 100644 --- a/media/libstagefright/codecs/aacenc/inc/aac_rom.h +++ b/media/libstagefright/codecs/aacenc/inc/aac_rom.h @@ -57,7 +57,7 @@ extern const Word32 mTab_4_3[512]; /*! $2^{-\frac{n}{16}}$ table */ extern const Word16 pow2tominusNover16[17] ; -extern Word32 specExpMantTableComb_enc[4][14]; +extern const Word32 specExpMantTableComb_enc[4][14]; extern const UWord8 specExpTableComb_enc[4][14]; extern const Word16 quantBorders[4][4]; diff --git a/media/libstagefright/codecs/aacenc/src/aac_rom.c b/media/libstagefright/codecs/aacenc/src/aac_rom.c index 127322d..f08f3a9 100644 --- a/media/libstagefright/codecs/aacenc/src/aac_rom.c +++ b/media/libstagefright/codecs/aacenc/src/aac_rom.c @@ -1367,7 +1367,7 @@ const Word16 sideInfoTabShort[MAX_SFB_SHORT + 1] = { 10, 10, 10, 10, 10, 13, 13 }; -Word32 specExpMantTableComb_enc[4][14] = +const Word32 specExpMantTableComb_enc[4][14] = { {0x40000000, 0x50a28be6, 0x6597fa95, 0x40000000, 0x50a28be6, 0x6597fa95, 0x40000000, 0x50a28be6, diff --git a/media/libstagefright/codecs/aacenc/src/block_switch.c b/media/libstagefright/codecs/aacenc/src/block_switch.c index 47fd15e..c80538f 100644 --- a/media/libstagefright/codecs/aacenc/src/block_switch.c +++ b/media/libstagefright/codecs/aacenc/src/block_switch.c @@ -51,7 +51,7 @@ CalcWindowEnergy(BLOCK_SWITCHING_CONTROL *blockSwitchingControl, /* IIR high pass coeffs */ -Word32 hiPassCoeff[BLOCK_SWITCHING_IIR_LEN] = { +const Word32 hiPassCoeff[BLOCK_SWITCHING_IIR_LEN] = { 0xbec8b439, 0x609d4952 /* -0.5095f, 0.7548f */ }; diff --git a/media/libstagefright/wifi-display/source/PlaybackSession.cpp b/media/libstagefright/wifi-display/source/PlaybackSession.cpp index a6aae56..ab16407 100644 --- a/media/libstagefright/wifi-display/source/PlaybackSession.cpp +++ b/media/libstagefright/wifi-display/source/PlaybackSession.cpp @@ -647,11 +647,10 @@ status_t WifiDisplaySource::PlaybackSession::setupPacketizer() { service->connectDisplay(mBufferQueue); } -#if 0 sp<AudioSource> audioSource = new AudioSource( - AUDIO_SOURCE_MIC, + AUDIO_SOURCE_REMOTE_SUBMIX, 48000 /* sampleRate */, - 2 /* channelCount */); // XXX AUDIO_CHANNEL_IN_STEREO? + 2 /* channelCount */); if (audioSource->initCheck() == OK) { audioSource->setUseLooperTime(true); @@ -670,11 +669,12 @@ status_t WifiDisplaySource::PlaybackSession::setupPacketizer() { looper()->registerHandler(converter); mTracks.add(index, new Track(converter)); + + ALOGI("Successfully instantiated audio source."); } else { ALOGW("Unable to instantiate audio source"); } #endif -#endif return OK; } diff --git a/media/libstagefright/wifi-display/source/Serializer.cpp b/media/libstagefright/wifi-display/source/Serializer.cpp index bd53fc8..0c54bf7 100644 --- a/media/libstagefright/wifi-display/source/Serializer.cpp +++ b/media/libstagefright/wifi-display/source/Serializer.cpp @@ -275,14 +275,7 @@ status_t Serializer::onStart() { } if (err == OK) { -#if 0 schedulePoll(); -#else - // XXX the dongle doesn't appear to have setup the RTP connection - // fully at the time PLAY is called. We have to delay sending data - // for a little bit. - schedulePoll(500000ll); -#endif } return err; |