Fix ubuntu compile errors

This commit is contained in:
Eduardo Bart
2013-03-05 02:54:08 -03:00
parent 1dd558d57e
commit 44bf4dcb6e
5 changed files with 14 additions and 30 deletions

View File

@@ -96,9 +96,9 @@ void SoundManager::poll()
for(auto it = m_streamFiles.begin(); it != m_streamFiles.end();) {
StreamSoundSourcePtr source = it->first;
std::future<SoundFilePtr>& future = it->second;
auto& future = it->second;
if(std::is_ready(future)) {
if(future.is_ready()) {
SoundFilePtr sound = future.get();
if(sound)
source->setSoundFile(sound);
@@ -264,7 +264,7 @@ SoundSourcePtr SoundManager::createSoundSource(const std::string& filename)
source = combinedSource;
#else
StreamSoundSourcePtr streamSource(new StreamSoundSource);
m_streamFiles[streamSource] = m_loadJobs [=]() -> SoundFilePtr {
m_streamFiles[streamSource] = g_asyncDispatcher.schedule([=]() -> SoundFilePtr {
try {
return SoundFile::loadSoundFile(filename);
} catch(std::exception& e) {