Changeset 1283
- Timestamp:
- 10/14/07 13:17:45 (12 months ago)
- Location:
- trunk/src
- Files:
-
- 7 modified
-
audioimportlib/Riff.cpp (modified) (1 diff)
-
buzeVSTi/buzeVSTi.cpp (modified) (1 diff)
-
buzeVSTi/buzeVSTi.h (modified) (1 diff)
-
buzelib/Document.cpp (modified) (4 diffs)
-
buzelib/MainFrm.cpp (modified) (5 diffs)
-
buzelib/WaveTableView.cpp (modified) (2 diffs)
-
buzelib/buze.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/audioimportlib/Riff.cpp
r578 r1283 600 600 Sample[0] = INT32 ( x ); 601 601 assert(align-3 <= sizeof(DWORD)); 602 Read(&aligntemp, align-3); // skip extra alignment byte if it exists603 602 604 603 retcode = Read (&x, 3 ); 605 604 Sample[1] = INT32 ( x ); 606 605 assert(align-3 <= sizeof(DWORD)); 607 Read(&aligntemp, align- 3); // skip extra alignment byte if it exists606 Read(&aligntemp, align-6); // skip extra alignment bytes if they exists (?) 608 607 break; 609 608 } -
trunk/src/buzeVSTi/buzeVSTi.cpp
r1239 r1283 246 246 } 247 247 248 249 void BuzeVSTi::schedule_send(size_t index, int time_ms, unsigned int data) { 250 } 251 248 252 bool BuzeVSTi::send(size_t index, unsigned int data) { 249 253 return true; 254 } 255 256 size_t BuzeVSTi::getDevices() { 257 return 1; 258 } 259 260 bool BuzeVSTi::isInput(size_t index) { 261 return true; 262 } 263 264 bool BuzeVSTi::isOutput(size_t index) { 265 return true; 266 } 267 268 bool BuzeVSTi::isOpen(size_t index) { 269 return true; 270 } 271 272 const char* BuzeVSTi::getDeviceName(size_t index) { 273 return "VST Host MIDI Device"; 250 274 } 251 275 -
trunk/src/buzeVSTi/buzeVSTi.h
r1238 r1283 45 45 46 46 // zzub::midi_io 47 virtual bool poll(); 48 virtual bool send(size_t index, unsigned int data); 47 virtual bool poll(); 48 virtual bool send(size_t index, unsigned int data); 49 void schedule_send(size_t index, int time_ms, unsigned int data); 50 virtual size_t getDevices(); 51 virtual bool isInput(size_t index); 52 virtual bool isOutput(size_t index); 53 virtual const char* getDeviceName(size_t index); 54 virtual bool isOpen(size_t index); 49 55 50 56 // vst: -
trunk/src/buzelib/Document.cpp
r1281 r1283 73 73 void CDocument::selectMachine(metaplugin* machine) { 74 74 resetKeyjazz(); 75 player->midiNoteMachine = machine; 75 76 76 77 if (!machine) return ; … … 83 84 84 85 void CDocument::unselectMachine(metaplugin* machine) { 86 if (machine == player->midiNoteMachine) 87 player->midiNoteMachine = 0; 85 88 vector<metaplugin*>::iterator i=find(selectedMachines.begin(), selectedMachines.end(), machine); 86 89 if (i!=selectedMachines.end()) { … … 107 110 108 111 void CDocument::clearSelectedMachines() { 112 player->midiNoteMachine = 0; 109 113 selectedMachines.clear(); 110 114 updateAllViews(0, UpdateMachineSelection); … … 989 993 990 994 int CDocument::getWaveLevelSamples(wave_level* entry) { 991 return entry-> sample_count;995 return entry->wave->get_sample_count(entry->level); 992 996 } 993 997 -
trunk/src/buzelib/MainFrm.cpp
r1282 r1283 727 727 } 728 728 729 struct silent_device : zzub::audiodevice { 730 silent_device(int sampleRate) { 731 this->api_id = 0; 732 this->device_id = 0; 733 this->in_channels = 0; 734 this->name = "Silent"; 735 this->out_channels = 2; 736 this->rates.push_back(sampleRate); 737 } 738 }; 739 729 740 void CMainFrame::mixdownSong(metaplugin* plugin, metaplugin* recorder) { 730 741 int oldWorkChannel = player->workChannel; 731 742 bool playerLoop = player->getLoopEnabled(); 732 743 733 int sampleRate = player->masterInfo.samples_per_second;734 744 _Module.releaseAudioDriver(); 735 if (!_Module.setAudioDriver("Silent", "", sampleRate, 256, 0, false)) { 736 MessageBox("Could not set silent audio driver, mixdown aborted.", programName, MB_OK|MB_ICONERROR); 737 _Module.setAudioDriver(); 738 return ; 739 } 745 746 silent_device tempdev(player->masterInfo.samples_per_second); 747 player->workDevice = &tempdev; 740 748 741 749 _Module.showWaitWindow(); 742 750 743 751 document->connectMachines(plugin->getName(), recorder->getName()); 744 //recorder->addInput(plugin, 0x4000, 0x4000);745 752 746 753 player->setSequencerPosition(player->getSongBeginLoop()); … … 754 761 _Module.setWaitWindowText("Recording..."); 755 762 while (player->getPlayState()==player_state_playing) { 756 Sleep(50);763 player->workStereo(256); 757 764 } 758 765 … … 764 771 player->setSongEnd(playerSongEnd); 765 772 player->setLoopEnabled(playerLoop); 773 player->workDevice = 0; 766 774 _Module.setAudioDriver(); 767 775 player->workChannel = oldWorkChannel; … … 2324 2332 2325 2333 bool CMainFrame::invoke(zzub_event_data_t& data) { 2326 if (data.type == event_type_midi_control) {2334 /* if (data.type == event_type_midi_control) { 2327 2335 2328 2336 char status = data.midi_message.status >> 4; … … 2350 2358 2351 2359 return true; 2352 } 2360 }*/ 2353 2361 2354 2362 if (data.type == event_type_wave_allocated) { -
trunk/src/buzelib/WaveTableView.cpp
r1282 r1283 452 452 const wave_level& level=*entry->get_level(i); 453 453 string note=noteFromInt(level.root_note); 454 string len=stringFromInt( level.sample_count, 0);454 string len=stringFromInt(entry->get_sample_count(i), 0); 455 455 string rate=stringFromInt(level.samples_per_second, 0); 456 string lbeg=stringFromInt( level.loop_start, 0);457 string lend=stringFromInt( level.loop_end, 0);456 string lbeg=stringFromInt(entry->get_loop_start(i), 0); 457 string lend=stringFromInt(entry->get_loop_end(i), 0); 458 458 string bits=stringFromInt(entry->get_bits_per_sample(i), 0); 459 459 … … 717 717 break; 718 718 case UpdateMachines: 719 case UpdateSelectedMachine: 719 720 envelopeTab.updateMachines(); 720 721 //recordTab.bindWavePlugins(); -
trunk/src/buzelib/buze.cpp
r1273 r1283 113 113 114 114 vector<int> midiOutDevices; 115 configuration->getMidiOutputs(midi InDevices);115 configuration->getMidiOutputs(midiOutDevices); 116 116 for (size_t i = 0; i < midiOutDevices.size(); i++) { 117 117 int dev = midiOutDevices[i];
