1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

AudioDeviceManager: Improve initialise() parameter naming

This commit is contained in:
reuk 2025-11-04 14:14:09 +00:00
parent b1ec95db6e
commit e890736965
No known key found for this signature in database

View file

@ -163,10 +163,10 @@ public:
This will attempt to open either a default audio device, or one that was This will attempt to open either a default audio device, or one that was
previously saved as XML. previously saved as XML.
@param numInputChannelsNeeded the maximum number of input channels your app would like to @param maxNumInputChannelsNeeded the maximum number of input channels your app would like to
use (the actual number of channels opened may be less than use (the actual number of channels opened may be less than
the number requested) the number requested)
@param numOutputChannelsNeeded the maximum number of output channels your app would like to @param maxNumOutputChannelsNeeded the maximum number of output channels your app would like to
use (the actual number of channels opened may be less than use (the actual number of channels opened may be less than
the number requested) the number requested)
@param savedState either a previously-saved state that was produced @param savedState either a previously-saved state that was produced
@ -191,8 +191,8 @@ public:
@returns an error message if anything went wrong, or an empty string if it worked ok. @returns an error message if anything went wrong, or an empty string if it worked ok.
*/ */
String initialise (int numInputChannelsNeeded, String initialise (int maxNumInputChannelsNeeded,
int numOutputChannelsNeeded, int maxNumOutputChannelsNeeded,
const XmlElement* savedState, const XmlElement* savedState,
bool selectDefaultDeviceOnFailure, bool selectDefaultDeviceOnFailure,
const String& preferredDefaultDeviceName = String(), const String& preferredDefaultDeviceName = String(),