mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
gui/audioplayer.cpp: add AAC file type, save last used directory
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4ab22136d9
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-12-10 (Tue, 10 Dec 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -221,6 +221,8 @@ void CAudioPlayerGui::Init(void)
|
|||||||
audiofilefilter.addFilter("ogg");
|
audiofilefilter.addFilter("ogg");
|
||||||
audiofilefilter.addFilter("wav");
|
audiofilefilter.addFilter("wav");
|
||||||
audiofilefilter.addFilter("flac");
|
audiofilefilter.addFilter("flac");
|
||||||
|
audiofilefilter.addFilter("aac");
|
||||||
|
audiofilefilter.addFilter("dts");
|
||||||
}
|
}
|
||||||
m_SMSKeyInput.setTimeout(AUDIOPLAYERGUI_SMSKEY_TIMEOUT);
|
m_SMSKeyInput.setTimeout(AUDIOPLAYERGUI_SMSKEY_TIMEOUT);
|
||||||
}
|
}
|
||||||
@@ -1303,6 +1305,7 @@ bool CAudioPlayerGui::openFilebrowser(void)
|
|||||||
|| (files->getType() == CFile::FILE_OGG)
|
|| (files->getType() == CFile::FILE_OGG)
|
||||||
|| (files->getType() == CFile::FILE_MP3)
|
|| (files->getType() == CFile::FILE_MP3)
|
||||||
|| (files->getType() == CFile::FILE_WAV)
|
|| (files->getType() == CFile::FILE_WAV)
|
||||||
|
|| (files->getType() == CFile::FILE_AAC)
|
||||||
|| (files->getType() == CFile::FILE_FLAC)
|
|| (files->getType() == CFile::FILE_FLAC)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -1430,6 +1433,11 @@ bool CAudioPlayerGui::openFilebrowser(void)
|
|||||||
printf("adding %ld files took: ",maxProgress+1);
|
printf("adding %ld files took: ",maxProgress+1);
|
||||||
printTimevalDiff(start,end);
|
printTimevalDiff(start,end);
|
||||||
#endif
|
#endif
|
||||||
|
//store last dir
|
||||||
|
if( (sizeof(g_settings.network_nfs_audioplayerdir)) > m_Path.size() && (strcmp(g_settings.network_nfs_audioplayerdir,m_Path.c_str()) != 0)){
|
||||||
|
strcpy(g_settings.network_nfs_audioplayerdir,m_Path.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
|
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
|
||||||
|
Reference in New Issue
Block a user