Mercurial > hg > svcore
comparison plugin/plugins/SamplePlayer.cpp @ 117:c30728d5625c sv1-v0.9rc1
* Make vertical scale alignment modes work in note layer as well as time-value
layer, and several significant fixes to it
* Make it possible to draw notes properly on the note layer
* Show units (and frequencies etc in note layer's case) in the time-value and
note layer description boxes
* Minor fix to item edit dialog layout
* Some minor menu rearrangement
* Comment out a lot of debug output
* Add SV website and reference URLs to Help menu, and add code to (attempt to)
open them in the user's preferred browser
author | Chris Cannam |
---|---|
date | Fri, 12 May 2006 14:40:43 +0000 |
parents | b2067aff8cd6 |
children | 0f0c9cf65d5e |
comparison
equal
deleted
inserted
replaced
116:a08718723b20 | 117:c30728d5625c |
---|---|
306 { | 306 { |
307 SamplePlayer *player = (SamplePlayer *)handle; | 307 SamplePlayer *player = (SamplePlayer *)handle; |
308 | 308 |
309 if (player->m_pendingProgramChange >= 0) { | 309 if (player->m_pendingProgramChange >= 0) { |
310 | 310 |
311 std::cerr << "SamplePlayer::workThreadCallback: pending program change " << player->m_pendingProgramChange << std::endl; | 311 // std::cerr << "SamplePlayer::workThreadCallback: pending program change " << player->m_pendingProgramChange << std::endl; |
312 | 312 |
313 player->m_mutex.lock(); | 313 player->m_mutex.lock(); |
314 | 314 |
315 int program = player->m_pendingProgramChange; | 315 int program = player->m_pendingProgramChange; |
316 player->m_pendingProgramChange = -1; | 316 player->m_pendingProgramChange = -1; |
357 for (unsigned int i = 0; i < dir.count(); ++i) { | 357 for (unsigned int i = 0; i < dir.count(); ++i) { |
358 QFileInfo file(dir.filePath(dir[i])); | 358 QFileInfo file(dir.filePath(dir[i])); |
359 if (file.isReadable()) { | 359 if (file.isReadable()) { |
360 m_samples.push_back(std::pair<QString, QString> | 360 m_samples.push_back(std::pair<QString, QString> |
361 (file.baseName(), file.filePath())); | 361 (file.baseName(), file.filePath())); |
362 std::cerr << "Found: " << dir[i].toLocal8Bit().data() << std::endl; | 362 // std::cerr << "Found: " << dir[i].toLocal8Bit().data() << std::endl; |
363 } | 363 } |
364 } | 364 } |
365 | 365 |
366 m_sampleSearchComplete = true; | 366 m_sampleSearchComplete = true; |
367 } | 367 } |