|
|
@@ -57,6 +57,12 @@ struct FileChoice : ChoiceButton { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
struct PauseItem : MenuItem { |
|
|
|
void onAction() { |
|
|
|
gPaused = !gPaused; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
struct SampleRateItem : MenuItem { |
|
|
|
float sampleRate; |
|
|
|
void onAction() { |
|
|
@@ -70,6 +76,10 @@ struct SampleRateChoice : ChoiceButton { |
|
|
|
menu->box.pos = getAbsolutePos().plus(Vec(0, box.size.y)); |
|
|
|
menu->box.size.x = box.size.x; |
|
|
|
|
|
|
|
PauseItem *pauseItem = new PauseItem(); |
|
|
|
pauseItem->text = gPaused ? "Resume Engine" : "Pause Engine"; |
|
|
|
menu->pushChild(pauseItem); |
|
|
|
|
|
|
|
float sampleRates[] = {44100, 48000, 88200, 96000, 176400, 192000}; |
|
|
|
int sampleRatesLen = sizeof(sampleRates) / sizeof(sampleRates[0]); |
|
|
|
for (int i = 0; i < sampleRatesLen; i++) { |
|
|
|