comparison plugin/plugins/SamplePlayer.cpp @ 1361:49b43306778b 3.0-integration

Win32 fixes
author Chris Cannam
date Tue, 10 Jan 2017 11:08:14 +0000
parents 1c9bbbb6116a
children 48e9f538e6e9
comparison
equal deleted inserted replaced
1360:8eddb528ef0c 1361:49b43306778b
399 float *tmpFrames, *tmpSamples, *tmpResamples, *tmpOld; 399 float *tmpFrames, *tmpSamples, *tmpResamples, *tmpOld;
400 size_t i; 400 size_t i;
401 401
402 info.format = 0; 402 info.format = 0;
403 #ifdef Q_OS_WIN 403 #ifdef Q_OS_WIN
404 file = sf_wchar_open((LPCWSTR)path.utf16(), SFM_READ, &m_fileInfo); 404 file = sf_wchar_open((LPCWSTR)path.utf16(), SFM_READ, &info);
405 #else 405 #else
406 file = sf_open(path.toLocal8Bit().data(), SFM_READ, &info); 406 file = sf_open(path.toLocal8Bit().data(), SFM_READ, &info);
407 #endif 407 #endif
408 if (!file) { 408 if (!file) {
409 cerr << "SamplePlayer::loadSampleData: Failed to open file " 409 cerr << "SamplePlayer::loadSampleData: Failed to open file "