MCPcopy Create free account
hub / github.com/audacity/audacity / OnSampleRateChange

Method OnSampleRateChange

src/export/ExportFilePanel.cpp:425–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425void ExportFilePanel::OnSampleRateChange(wxCommandEvent &event)
426{
427 const auto clientData = event.GetClientData();
428 if(clientData == nullptr)
429 {
430 CustomSampleRateDialog dialog(this, mSampleRate);
431 if(dialog.ShowModal() == wxID_OK &&
432 dialog.GetSampleRate() > 0)
433 {
434 mSampleRate = dialog.GetSampleRate();
435 }
436 UpdateSampleRateList();
437 }
438 else
439 mSampleRate = *reinterpret_cast<const int*>(&clientData);
440}
441
442void ExportFilePanel::OnFolderBrowse(wxCommandEvent &event)
443{

Callers

nothing calls this directly

Calls 2

ShowModalMethod · 0.45
GetSampleRateMethod · 0.45

Tested by

no test coverage detected