Skip to content
Snippets Groups Projects
Commit 562c9e02 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

disable custom ringtone for the ALSA layer

parent d7b54b34
Branches
Tags
No related merge requests found
......@@ -876,6 +876,9 @@ ManagerImpl::ringtone()
{
if( isRingtoneEnabled() )
{
//TODO Comment this because it makes the daemon crashes since the main thread
//synchronizes the ringtone thread.
std::string ringchoice = getConfigString(AUDIO, RING_CHOICE);
//if there is no / inside the path
if ( ringchoice.find(DIR_SEPARATOR_CH) == std::string::npos ) {
......@@ -897,11 +900,12 @@ ManagerImpl::ringtone()
_audiofile.start();
_toneMutex.leaveMutex();
if(CHECK_INTERFACE( layer, ALSA )){
int size = _audiofile.getSize();
/*int size = _audiofile.getSize();
SFLDataFormat output[ size ];
_audiofile.getNext(output, size , 100);
audiolayer->putUrgent( output , size );
audiolayer->trigger_thread();
audiolayer->trigger_thread();*/
ringback();
}
else{
audiolayer->startStream();
......@@ -909,6 +913,7 @@ ManagerImpl::ringtone()
} else {
ringback();
}
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment