Loading media/libaaudio/src/legacy/AudioStreamRecord.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -221,7 +221,7 @@ int32_t AudioStreamRecord::getXRunCount() const int32_t AudioStreamRecord::getFramesPerBurst() const { return 192; // TODO add query to AudioRecord.cpp return static_cast<int32_t>(mAudioRecord->getNotificationPeriodInFrames()); } // TODO implement getTimestamp Loading media/libaaudio/src/legacy/AudioStreamTrack.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -272,7 +272,7 @@ int32_t AudioStreamTrack::getXRunCount() const int32_t AudioStreamTrack::getFramesPerBurst() const { return 192; // TODO add query to AudioTrack.cpp return static_cast<int32_t>(mAudioTrack->getNotificationPeriodInFrames()); } int64_t AudioStreamTrack::getFramesRead() { Loading media/libaudioclient/include/AudioRecord.h +7 −0 Original line number Diff line number Diff line Loading @@ -243,6 +243,13 @@ public: size_t frameSize() const { return mFrameSize; } audio_source_t inputSource() const { return mAttributes.source; } /* * Return the period of the notification callback in frames. * This value is set when the AudioRecord is constructed. * It can be modified if the AudioRecord is rerouted. */ uint32_t getNotificationPeriodInFrames() const { return mNotificationFramesAct; } /* After it's created the track is not active. Call start() to * make it active. If set, the callback will start being called. * If event is not AudioSystem::SYNC_EVENT_NONE, the capture start will be delayed until Loading media/libaudioclient/include/AudioTrack.h +6 −1 Original line number Diff line number Diff line Loading @@ -348,7 +348,12 @@ public: uint32_t channelCount() const { return mChannelCount; } size_t frameCount() const { return mFrameCount; } // TODO consider notificationFrames() if needed /* * Return the period of the notification callback in frames. * This value is set when the AudioTrack is constructed. * It can be modified if the AudioTrack is rerouted. */ uint32_t getNotificationPeriodInFrames() const { return mNotificationFramesAct; } /* Return effective size of audio buffer that an application writes to * or a negative error if the track is uninitialized. Loading Loading
media/libaaudio/src/legacy/AudioStreamRecord.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -221,7 +221,7 @@ int32_t AudioStreamRecord::getXRunCount() const int32_t AudioStreamRecord::getFramesPerBurst() const { return 192; // TODO add query to AudioRecord.cpp return static_cast<int32_t>(mAudioRecord->getNotificationPeriodInFrames()); } // TODO implement getTimestamp Loading
media/libaaudio/src/legacy/AudioStreamTrack.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -272,7 +272,7 @@ int32_t AudioStreamTrack::getXRunCount() const int32_t AudioStreamTrack::getFramesPerBurst() const { return 192; // TODO add query to AudioTrack.cpp return static_cast<int32_t>(mAudioTrack->getNotificationPeriodInFrames()); } int64_t AudioStreamTrack::getFramesRead() { Loading
media/libaudioclient/include/AudioRecord.h +7 −0 Original line number Diff line number Diff line Loading @@ -243,6 +243,13 @@ public: size_t frameSize() const { return mFrameSize; } audio_source_t inputSource() const { return mAttributes.source; } /* * Return the period of the notification callback in frames. * This value is set when the AudioRecord is constructed. * It can be modified if the AudioRecord is rerouted. */ uint32_t getNotificationPeriodInFrames() const { return mNotificationFramesAct; } /* After it's created the track is not active. Call start() to * make it active. If set, the callback will start being called. * If event is not AudioSystem::SYNC_EVENT_NONE, the capture start will be delayed until Loading
media/libaudioclient/include/AudioTrack.h +6 −1 Original line number Diff line number Diff line Loading @@ -348,7 +348,12 @@ public: uint32_t channelCount() const { return mChannelCount; } size_t frameCount() const { return mFrameCount; } // TODO consider notificationFrames() if needed /* * Return the period of the notification callback in frames. * This value is set when the AudioTrack is constructed. * It can be modified if the AudioTrack is rerouted. */ uint32_t getNotificationPeriodInFrames() const { return mNotificationFramesAct; } /* Return effective size of audio buffer that an application writes to * or a negative error if the track is uninitialized. Loading