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

Commit d6de933c authored by Andreas Huber's avatar Andreas Huber Committed by Android (Google) Code Review
Browse files

Merge "Enable audio streaming to a wifi display. Remove startup delay hack." into jb-mr1-dev

parents e3fd5865 c17183c6
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -647,11 +647,10 @@ status_t WifiDisplaySource::PlaybackSession::setupPacketizer() {
        service->connectDisplay(mBufferQueue);
        service->connectDisplay(mBufferQueue);
    }
    }


#if 0
    sp<AudioSource> audioSource = new AudioSource(
    sp<AudioSource> audioSource = new AudioSource(
            AUDIO_SOURCE_MIC,
            AUDIO_SOURCE_REMOTE_SUBMIX,
            48000 /* sampleRate */,
            48000 /* sampleRate */,
            2 /* channelCount */);  // XXX AUDIO_CHANNEL_IN_STEREO?
            2 /* channelCount */);


    if (audioSource->initCheck() == OK) {
    if (audioSource->initCheck() == OK) {
        audioSource->setUseLooperTime(true);
        audioSource->setUseLooperTime(true);
@@ -670,10 +669,11 @@ status_t WifiDisplaySource::PlaybackSession::setupPacketizer() {
        looper()->registerHandler(converter);
        looper()->registerHandler(converter);


        mTracks.add(index, new Track(converter));
        mTracks.add(index, new Track(converter));

        ALOGI("Successfully instantiated audio source.");
    } else {
    } else {
        ALOGW("Unable to instantiate audio source");
        ALOGW("Unable to instantiate audio source");
    }
    }
#endif
#endif
#endif


    return OK;
    return OK;
+0 −7
Original line number Original line Diff line number Diff line
@@ -275,14 +275,7 @@ status_t Serializer::onStart() {
    }
    }


    if (err == OK) {
    if (err == OK) {
#if 0
        schedulePoll();
        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;
    return err;