diff --git a/sflphone-common/src/audio/audiolayer.cpp b/sflphone-common/src/audio/audiolayer.cpp index 14b9f0d3cafd394bf61a29a86a27eb934839b86d..330a7858fa9ce4c0d1378191d3612315bab3c2dc 100644 --- a/sflphone-common/src/audio/audiolayer.cpp +++ b/sflphone-common/src/audio/audiolayer.cpp @@ -55,13 +55,6 @@ void AudioLayer::putUrgent (void* buffer, int toCopy) _urgentRingBuffer.Put (buffer, toCopy); } -int AudioLayer::putMain (void *buffer, int toCopy, std::string call_id) -{ - ost::MutexLock guard (_mutex); - - return getMainBuffer()->putData (buffer, toCopy, call_id); -} - void AudioLayer::notifyincomingCall() { // Notify (with a beep) an incoming call when there is already a call diff --git a/sflphone-common/src/audio/audiolayer.h b/sflphone-common/src/audio/audiolayer.h index 3bbeeb59bdfe588bba75312847a32fa3ed1f64a0..eb83ed7ffd5387b9340cfbdd9a31eaee4fd5cfdb 100644 --- a/sflphone-common/src/audio/audiolayer.h +++ b/sflphone-common/src/audio/audiolayer.h @@ -137,14 +137,6 @@ class AudioLayer */ void putUrgent (void* buffer, int toCopy); - /** - * Put voice data in the main sound buffer - * @param buffer The buffer containing the voice data () - * @param toCopy The size of the buffer - * @return int The number of bytes copied - */ - int putMain (void* buffer, int toCopy, std::string call_id = default_id); - void flushMain (void); void flushUrgent (void); diff --git a/sflphone-common/src/audio/pulseaudio/audiostream.h b/sflphone-common/src/audio/pulseaudio/audiostream.h index 1af25cab930697930fd33d250d12f19e1404b65c..00d405efafd09274fdb02ec5815599b05fc95edc 100644 --- a/sflphone-common/src/audio/pulseaudio/audiostream.h +++ b/sflphone-common/src/audio/pulseaudio/audiostream.h @@ -74,14 +74,6 @@ public: */ ~AudioStream(); - /** - * Write data to the main abstraction ring buffer. - * @param buffer The buffer containing the data to be played - * @param toCopy The number of samples, in bytes - * @return int The number of bytes played - */ - int putMain(void* buffer, int toCopy); - /** * Write data to the urgent abstraction ring buffer. ( dtmf , double calls ) * @param buffer The buffer containing the data to be played