Merge branch 'master' of https://github.com/tildearrow/furnace into es5506_alt
* 'master' of https://github.com/tildearrow/furnace: GUI: improve unified data view GUI: sample editor preview in selection finally Revert "fudge and bread" Revert "fire!" Revert "temporarily kill MSVC" Revert "MSVC: ughh, f**k you, you d**khead." MSVC: ughh, f**k you, you d**khead. temporarily kill MSVC fire! # Conflicts: # src/engine/engine.h # src/engine/playback.cpp
This commit is contained in:
commit
4f6f13e938
11 changed files with 217 additions and 74 deletions
|
|
@ -1477,8 +1477,10 @@ int DivEngine::getEffectiveSampleRate(int rate) {
|
|||
return rate;
|
||||
}
|
||||
|
||||
void DivEngine::previewSample(int sample, int note) {
|
||||
void DivEngine::previewSample(int sample, int note, int pStart, int pEnd) {
|
||||
BUSY_BEGIN;
|
||||
sPreview.pBegin=pStart;
|
||||
sPreview.pEnd=pEnd;
|
||||
if (sample<0 || sample>=(int)song.sample.size()) {
|
||||
sPreview.sample=-1;
|
||||
sPreview.pos=0;
|
||||
|
|
@ -1495,7 +1497,7 @@ void DivEngine::previewSample(int sample, int note) {
|
|||
if (rate<100) rate=100;
|
||||
blip_set_rates(samp_bb,rate,got.rate);
|
||||
samp_prevSample=0;
|
||||
sPreview.pos=0;
|
||||
sPreview.pos=(sPreview.pBegin>=0)?sPreview.pBegin:0;
|
||||
sPreview.sample=sample;
|
||||
sPreview.wave=-1;
|
||||
sPreview.dir=false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue