Loading services/audioflinger/AudioFlinger.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -348,6 +348,9 @@ status_t AudioFlinger::openMmapStream(MmapStreamInterface::stream_direction_t di thread->configure(&localAttr, streamType, actualSessionId, callback, *deviceId, portId); *handle = portId; *sessionId = actualSessionId; config->sample_rate = thread->sampleRate(); config->channel_mask = thread->channelMask(); config->format = thread->format(); } else { if (direction == MmapStreamInterface::DIRECTION_OUTPUT) { AudioSystem::releaseOutput(portId); Loading Loading
services/audioflinger/AudioFlinger.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -348,6 +348,9 @@ status_t AudioFlinger::openMmapStream(MmapStreamInterface::stream_direction_t di thread->configure(&localAttr, streamType, actualSessionId, callback, *deviceId, portId); *handle = portId; *sessionId = actualSessionId; config->sample_rate = thread->sampleRate(); config->channel_mask = thread->channelMask(); config->format = thread->format(); } else { if (direction == MmapStreamInterface::DIRECTION_OUTPUT) { AudioSystem::releaseOutput(portId); Loading