Skip to content
Snippets Groups Projects
Commit e241c935 authored by jpbl's avatar jpbl
Browse files

correct uses of Manager singleton

parent 540cadec
Branches
Tags
No related merge requests found
...@@ -92,11 +92,10 @@ dnl AC_SUBST(LIBQT) ...@@ -92,11 +92,10 @@ dnl AC_SUBST(LIBQT)
if test $ac_cv_header_portaudio_h = no; then if test $ac_cv_header_portaudio_h = no; then
AC_MSG_ERROR([*** missing portaudio.h. You need a working PortAudio installation. See http://www.portaudio.com]) AC_MSG_ERROR([*** missing portaudio.h. You need a working PortAudio installation. See http://www.portaudio.com])
fi else
AC_CHECK_LIB([portaudio], [Pa_GetDeviceCount], [
portaudio_LIBS="-lportaudio " portaudio_LIBS="-lportaudio "
portaudio_CFLAGS="-DAUDIO_PORTAUDIO "], portaudio_CFLAGS="-DAUDIO_PORTAUDIO "
[AC_MSG_ERROR([*** missing portaudio V19 library. You need a working PortAudio installation. See http://www.portaudio.com])]) fi
SFLPHONE_LIBS="$SFLPHONE_LIBS $portaudio_LIBS" SFLPHONE_LIBS="$SFLPHONE_LIBS $portaudio_LIBS"
SFLPHONE_CXXFLAGS=="$SFLPHONE_CXXFLAGS $portaudio_CFLAGS" SFLPHONE_CXXFLAGS=="$SFLPHONE_CXXFLAGS $portaudio_CFLAGS"
......
...@@ -201,9 +201,8 @@ AudioLayer::audioCallback (const void *inputBuffer, void *outputBuffer, ...@@ -201,9 +201,8 @@ AudioLayer::audioCallback (const void *inputBuffer, void *outputBuffer,
int urgentAvail, // number of int16 right and int16 left int urgentAvail, // number of int16 right and int16 left
normalAvail, // number of int16 right and int16 left normalAvail, // number of int16 right and int16 left
micAvailPut; micAvailPut;
ManagerImpl& _manager = Manager::instance(); unsigned short spkrVolume = Manager::instance().getSpkrVolume();
unsigned short spkrVolume = _manager.getSpkrVolume(); unsigned short micVolume = Manager::instance().getMicVolume();
unsigned short micVolume = _manager.getMicVolume();
// AvailForGet tell the number of chars inside the buffer // AvailForGet tell the number of chars inside the buffer
// framePerBuffer are the number of int16 for one channel (left) // framePerBuffer are the number of int16 for one channel (left)
...@@ -217,7 +216,7 @@ AudioLayer::audioCallback (const void *inputBuffer, void *outputBuffer, ...@@ -217,7 +216,7 @@ AudioLayer::audioCallback (const void *inputBuffer, void *outputBuffer,
_mainSndRingBuffer.Discard(toGet); _mainSndRingBuffer.Discard(toGet);
} }
else { else {
Tone* tone = _manager.getTelephoneTone(); Tone* tone = Manager::instance().getTelephoneTone();
if ( tone != 0) { if ( tone != 0) {
tone->getNext(out, framesPerBuffer, spkrVolume); tone->getNext(out, framesPerBuffer, spkrVolume);
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment