| 767 | } |
| 768 | |
| 769 | void MeterPanel::SetMixer(wxCommandEvent & WXUNUSED(event)) |
| 770 | { |
| 771 | #if USE_PORTMIXER |
| 772 | if (mSlider) |
| 773 | { |
| 774 | float inputVolume; |
| 775 | float outputVolume; |
| 776 | int inputSource; |
| 777 | |
| 778 | Refresh(); |
| 779 | |
| 780 | auto gAudioIO = AudioIO::Get(); |
| 781 | gAudioIO->GetMixer(&inputSource, &inputVolume, &outputVolume); |
| 782 | |
| 783 | if (mIsInput) |
| 784 | inputVolume = mSlider->Get(); |
| 785 | else |
| 786 | outputVolume = mSlider->Get(); |
| 787 | |
| 788 | gAudioIO->SetMixer(inputSource, inputVolume, outputVolume); |
| 789 | |
| 790 | #if wxUSE_ACCESSIBILITY |
| 791 | GetAccessible()->NotifyEvent( wxACC_EVENT_OBJECT_VALUECHANGE, |
| 792 | this, |
| 793 | wxOBJID_CLIENT, |
| 794 | wxACC_SELF ); |
| 795 | #endif |
| 796 | |
| 797 | } |
| 798 | #endif // USE_PORTMIXER |
| 799 | } |
| 800 | |
| 801 | bool MeterPanel::ShowDialog() |
| 802 | { |
no test coverage detected