29#include <wx/settings.h>
31#include <wx/statbmp.h>
32#include <wx/tooltip.h>
37#include "../AudioIO.h"
39#include "../KeyboardCapture.h"
41#include "../widgets/ASlider.h"
42#include "../widgets/Grabber.h"
61 mInputSliderVolume = 0.0;
62 mOutputSliderVolume = 0.0;
95 wxDefaultPosition, wxSize(130, 25),
98 mInputSlider->SetSizeHints(wxSize(75, 25), wxSize(1000, 25));
105 wxDefaultPosition, wxSize(130, 25),
108 mOutputSlider->SetSizeHints(wxSize(75, 25), wxSize(1000, 25));
156 wxKeyEvent *kevent = (wxKeyEvent *)event.GetEventObject();
157 int keyCode = kevent->GetKeyCode();
160 if (FindFocus() ==
mInputSlider && (keyCode == WXK_LEFT || keyCode == WXK_RIGHT
161 || keyCode == WXK_UP || keyCode == WXK_DOWN
162 || keyCode == WXK_PAGEUP || keyCode == WXK_PAGEDOWN)) {
165 if (FindFocus() ==
mOutputSlider && (keyCode == WXK_LEFT || keyCode == WXK_RIGHT
166 || keyCode == WXK_UP || keyCode == WXK_DOWN
167 || keyCode == WXK_PAGEUP || keyCode == WXK_PAGEDOWN)) {
180 float playbackVolume;
185 gAudioIO->GetMixer(&inputSource, &inputVolume, &playbackVolume);
194 wxSize oldSize( GetSize() );
200 wxSize newMinSize( wxWindow::GetSizer()->GetMinSize() );
201 SetMinSize( newMinSize );
203 if( newMinSize.x > oldSize.x ){
204 SetSize( newMinSize );
227 float playbackVolume;
234 gAudioIO->GetMixer(&inputSource, &inputVolume, &playbackVolume);
259 gAudioIO->GetMixer(&inputSource, &oldIn, &oldOut);
260 gAudioIO->SetMixer(inputSource, inputVolume, outputVolume);
319 auto format =
XO(
"Playback Volume: %.2f");
EVT_COMMAND(wxID_ANY, EVT_FREQUENCYTEXTCTRL_UPDATED, LabelDialog::OnFreqUpdate) LabelDialog
ASlider is a custom slider, allowing for a slicker look and feel.
bool ShowDialog(wxPoint pos=wxPoint(-1, -1))
void Increase(float steps)
void Decrease(float steps)
void SetToolTipTemplate(const TranslatableString &tip)
bool Enable(bool enable=true) override
float Get(bool convert=true)
A widget for bitmaps which ignores the erase event for flicker-free use.
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Functions for doing the mixdown of the tracks.
Subscription Subscribe(Callback callback)
Connect a callback to the Publisher; later-connected are called earlier.
wxColour & Colour(int iIndex)
wxBitmap & Bitmap(int iIndex)
void OnFocus(wxWindow &window, wxFocusEvent &event)
a function useful to implement a focus event handler The window releases the keyboard if the event is...
enum AudioIOEvent::Type type
AudacityProject * pProject