Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
c2407947
Commit
c2407947
authored
Oct 02, 2008
by
Emmanuel Milou
Browse files
remove remaining unused functions parameters
parent
430d2b65
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/audio/codecDescriptor.cpp
View file @
c2407947
...
...
@@ -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
)
{
}
...
...
src/audio/pulselayer.cpp
View file @
c2407947
...
...
@@ -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\t
Server 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
"
);
}
...
...
src/audio/pulselayer.h
View file @
c2407947
...
...
@@ -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
...
...
src/audio/samplecache.cpp
View file @
c2407947
...
...
@@ -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 );
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment