1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

bug 11: partial fix: Aggregate Device/Source selection in Device Toolbar

This commit is contained in:
mchinen
2011-01-02 04:06:23 +00:00
parent b1e789122f
commit d22b3b4f5e
4 changed files with 235 additions and 22 deletions

View File

@@ -182,6 +182,7 @@ class AUDACITY_DLL_API AudioIO {
* with that stream. If no mixer is available, output is emulated and
* input is stuck at 1.0f (a gain is applied to output samples).
*/
void SetMixer(int inputSource);
void SetMixer(int inputSource, float inputVolume,
float playbackVolume);
void GetMixer(int *inputSource, float *inputVolume,
@@ -379,6 +380,13 @@ private:
* default device index.
*/
static int getRecordDevIndex(wxString devName = wxT(""));
/** \brief get the index of the device selected in the preferences.
*
* If the device isn't found, returns -1
*/
#if USE_PORTMIXER
static int getRecordSourceIndex(PxMixer *portMixer);
#endif
/** \brief get the index of the supplied (named) playback device, or the
* device selected in the preferences if none given.