Skip to content

Commit 85fab70

Browse files
author
andrei.haladok
committed
NCG-5940: added interface for call recording
1 parent c75f2a3 commit 85fab70

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

modules/audio_device/audio_device_generic.cc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,22 @@ int AudioDeviceGeneric::GetRecordAudioParameters(
6363
}
6464
#endif // WEBRTC_IOS
6565

66+
// MARK: Nicegram NCG-5828 call recording
67+
void AudioDeviceGeneric::InitNicegramCallRecording() {
68+
RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
69+
}
70+
71+
void AudioDeviceGeneric::SetRecordOutputFolder(const std::string& path) {
72+
RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
73+
}
74+
75+
void AudioDeviceGeneric::StartNicegramRecording() {
76+
RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
77+
}
78+
79+
void AudioDeviceGeneric::StopNicegramRecording() {
80+
RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
81+
}
82+
//
83+
6684
} // namespace webrtc

modules/audio_device/audio_device_generic.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ class AudioDeviceGeneric {
135135
virtual int GetRecordAudioParameters(AudioParameters* params) const;
136136
#endif // WEBRTC_IOS
137137

138+
// MARK: Nicegram NCG-5828 call recording
139+
virtual void InitNicegramCallRecording();
140+
virtual void SetRecordOutputFolder(const std::string& path);
141+
virtual void StartNicegramRecording();
142+
virtual void StopNicegramRecording();
143+
//
144+
138145
virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0;
139146

140147
virtual ~AudioDeviceGeneric() {}

modules/audio_device/include/audio_device.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ class AudioDeviceModule : public webrtc::RefCountInterface {
171171
virtual int GetRecordAudioParameters(AudioParameters* params) const = 0;
172172
#endif // WEBRTC_IOS
173173

174+
// MARK: Nicegram NCG-5828 call recording
175+
virtual void InitNicegramCallRecording() {}
176+
virtual void SetRecordOutputFolder(const std::string& path) {}
177+
virtual void StartNicegramRecording() {}
178+
virtual void StopNicegramRecording() {}
179+
//
180+
174181
protected:
175182
~AudioDeviceModule() override {}
176183
};

0 commit comments

Comments
 (0)