diff --git a/src/audio/codecDescriptor.cpp b/src/audio/codecDescriptor.cpp index 04b35d547a100b1ca724ffccef1e08e56fa50603..6dc3ead7f84e16b25f75abb406cf816cd044eff9 100644 --- a/src/audio/codecDescriptor.cpp +++ b/src/audio/codecDescriptor.cpp @@ -106,12 +106,12 @@ CodecDescriptor::isActive(AudioCodecType payload) } void -CodecDescriptor::removeCodec(AudioCodecType payload) +CodecDescriptor::removeCodec(AudioCodecType payload UNUSED) { } void -CodecDescriptor::addCodec(AudioCodecType payload) +CodecDescriptor::addCodec(AudioCodecType payload UNUSED) { } diff --git a/src/audio/pulselayer.cpp b/src/audio/pulselayer.cpp index a9942eacea223d54bbb0fd1e0d878952d98e1415..aeedc33a4badc4f508140493a826c27bee8209a3 100644 --- a/src/audio/pulselayer.cpp +++ b/src/audio/pulselayer.cpp @@ -130,7 +130,7 @@ PulseLayer::createStreams( pa_context* c ) } bool -PulseLayer::openDevice(int indexIn, int indexOut, int sampleRate, int frameSize , int stream, std::string plugin) +PulseLayer::openDevice(int indexIn UNUSED, int indexOut UNUSED, int sampleRate, int frameSize , int stream UNUSED, std::string plugin UNUSED) { _sampleRate = sampleRate; _frameSize = frameSize; @@ -165,7 +165,7 @@ PulseLayer::closePlaybackStream( void ) } int -PulseLayer::playSamples(void* buffer, int toCopy, bool isTalking) +PulseLayer::playSamples(void* buffer, int toCopy, bool isTalking UNUSED) { int a = _mainSndRingBuffer.AvailForPut(); if ( a >= toCopy ) { @@ -249,14 +249,14 @@ PulseLayer::audioCallback ( pa_stream* s, size_t bytes, void* userdata ) } void -PulseLayer::underflow ( pa_stream* s, void* userdata ) +PulseLayer::underflow ( pa_stream* s UNUSED, void* userdata UNUSED ) { _debug("Buffer Underflow\n"); } void -PulseLayer::overflow ( pa_stream* s, void* userdata ) +PulseLayer::overflow ( pa_stream* s, void* userdata UNUSED ) { //PulseLayer* pulse = (PulseLayer*) userdata; pa_stream_drop( s ); @@ -314,7 +314,7 @@ void PulseLayer::writeToSpeaker( void ) } if ( (tone=_manager->getTelephoneFile()) != 0 ) { toGet = framesPerBuffer; - toPlay = ( toGet * sizeof(SFLDataFormat)> framesPerBuffer )? framesPerBuffer : toGet * sizeof(SFLDataFormat) ; + toPlay = ( (int)(toGet * sizeof(SFLDataFormat)) > framesPerBuffer )? framesPerBuffer : toGet * sizeof(SFLDataFormat) ; out = (SFLDataFormat*)pa_xmalloc(toPlay); tone->getNext(out, toPlay/2 , 100); pa_stream_write( playback->pulseStream() , out , toPlay , pa_xfree, 0 , PA_SEEK_RELATIVE) ; @@ -354,7 +354,7 @@ void PulseLayer::readFromMic( void ) } int -PulseLayer::putInCache( char code, void *buffer, int toCopy ) +PulseLayer::putInCache( char code UNUSED, void *buffer UNUSED, int toCopy UNUSED ) { _debug("Put the DTMF in cache\n"); //pa_stream_write( cache->pulseStream() , buffer , toCopy , pa_xfree, 0 , PA_SEEK_RELATIVE); @@ -362,7 +362,7 @@ PulseLayer::putInCache( char code, void *buffer, int toCopy ) return 1; } -static void retrieve_server_info(pa_context *c, const pa_server_info *i, void *userdata) +static void retrieve_server_info(pa_context *c UNUSED, const pa_server_info *i, void *userdata UNUSED) { _debug("Server Info: Process owner : %s\n" , i->user_name); _debug("\t\tServer name : %s - Server version = %s\n" , i->server_name, i->server_version); @@ -381,7 +381,7 @@ static void retrieve_client_list(pa_context *c, const pa_client_info *i, int eol } */ -static void reduce_sink_list(pa_context *c, const pa_sink_input_info *i, int eol, void *userdata) +static void reduce_sink_list(pa_context *c UNUSED, const pa_sink_input_info *i, int eol, void *userdata) { PulseLayer* pulse = (PulseLayer*) userdata; AudioStream* s = pulse->getPlaybackStream(); @@ -396,7 +396,7 @@ static void reduce_sink_list(pa_context *c, const pa_sink_input_info *i, int eol } } -static void restore_sink_list(pa_context *c, const pa_sink_input_info *i, int eol, void *userdata) +static void restore_sink_list(pa_context *c UNUSED, const pa_sink_input_info *i, int eol, void *userdata) { PulseLayer* pulse = (PulseLayer*) userdata; //AudioStream* s = pulse->getPlaybackStream(); @@ -429,7 +429,7 @@ PulseLayer::serverinfo( void ) pa_context_get_server_info( context , retrieve_server_info , NULL ); } -static void on_success(pa_context *c, int success, void *userdata) +static void on_success(pa_context *c UNUSED, int success UNUSED, void *userdata UNUSED) { _debug("Operation successfull \n"); } diff --git a/src/audio/pulselayer.h b/src/audio/pulselayer.h index 08db1de9d33460c4ca7b833f5c236c4955a1f724..bcdf055163d978982dc3166ba221b3afc1e5403d 100644 --- a/src/audio/pulselayer.h +++ b/src/audio/pulselayer.h @@ -110,7 +110,7 @@ class PulseLayer : public AudioLayer { /** * UNUSED in pulseaudio layer */ - std::vector<std::string> getSoundCardsInfo( int stream ) { + std::vector<std::string> getSoundCardsInfo( int stream UNUSED ) { std::vector<std::string> tmp; return tmp; } @@ -118,12 +118,12 @@ class PulseLayer : public AudioLayer { /** * UNUSED in pulseaudio layer */ - bool soundCardIndexExist( int card , int stream ) { return true; } + bool soundCardIndexExist( int card UNUSED, int stream UNUSED ) { return true; } /** * UNUSED in pulseaudio layer */ - int soundCardGetIndex( std::string description ) { return 0;} + int soundCardGetIndex( std::string description UNUSED ) { return 0;} /** * UNUSED in pulseaudio layer diff --git a/src/audio/samplecache.cpp b/src/audio/samplecache.cpp index 87a22c9643998669c2b6c68b390ab129a28a6d2d..7f73642506ed1b71e3b12187847d4e8910b62f9b 100644 --- a/src/audio/samplecache.cpp +++ b/src/audio/samplecache.cpp @@ -30,7 +30,7 @@ SampleCache::~SampleCache() } bool -SampleCache::uploadSample( SFLDataFormat* buffer , size_t size ) +SampleCache::uploadSample( SFLDataFormat* buffer UNUSED, size_t size UNUSED ) { //pa_stream_write( pulse->caching , buffer , size , pa_xfree, 0 , PA_SEEK_RELATIVE); //pa_stream_finish_upload( pulse->caching );