consider loop in sample preview

fixes #120
This commit is contained in:
tildearrow 2022-02-03 16:52:27 -05:00
parent 4dd935bbcc
commit c8f57afda4
2 changed files with 21 additions and 1 deletions

View file

@ -2036,6 +2036,10 @@ void FurnaceGUI::drawSampleList() {
if (ImGui::Button(ICON_FA_VOLUME_UP "##PreviewSampleL")) {
e->previewSample(curSample);
}
ImGui::SameLine();
if (ImGui::Button(ICON_FA_VOLUME_OFF "##StopSampleL")) {
e->stopSamplePreview();
}
ImGui::Separator();
for (int i=0; i<(int)e->song.sample.size(); i++) {
DivSample* sample=e->song.sample[i];
@ -2108,6 +2112,10 @@ void FurnaceGUI::drawSampleEdit() {
if (ImGui::Button(ICON_FA_VOLUME_UP "##PreviewSample")) {
e->previewSample(curSample);
}
ImGui::SameLine();
if (ImGui::Button(ICON_FA_VOLUME_OFF "##StopSample")) {
e->stopSamplePreview();
}
ImGui::Separator();
bool considerations=false;
ImGui::Text("notes:");