mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
Rename *OutputDevice(s) to *PlaybackDevice(s)
This commit is contained in:
@@ -328,7 +328,7 @@ void Audio::resumeContext()
|
||||
alcMakeContextCurrent(context);
|
||||
}
|
||||
|
||||
std::string Audio::getOutputDevice()
|
||||
std::string Audio::getPlaybackDevice()
|
||||
{
|
||||
const char *dev = getDeviceSpecifier(device);
|
||||
|
||||
@@ -338,7 +338,7 @@ std::string Audio::getOutputDevice()
|
||||
return dev;
|
||||
}
|
||||
|
||||
void Audio::getOutputDevices(std::vector<std::string> &list)
|
||||
void Audio::getPlaybackDevices(std::vector<std::string> &list)
|
||||
{
|
||||
const char *devices = getDeviceSpecifier(nullptr);
|
||||
|
||||
@@ -352,7 +352,7 @@ void Audio::getOutputDevices(std::vector<std::string> &list)
|
||||
}
|
||||
}
|
||||
|
||||
void Audio::setOutputDevice(const char* name)
|
||||
void Audio::setPlaybackDevice(const char* name)
|
||||
{
|
||||
#ifndef ALC_SOFT_reopen_device
|
||||
typedef ALCboolean (ALC_APIENTRY*LPALCREOPENDEVICESOFT)(ALCdevice *device,
|
||||
@@ -366,7 +366,7 @@ void Audio::setOutputDevice(const char* name)
|
||||
{
|
||||
// Default implementation throws exception. To make
|
||||
// error message consistent, call the base class.
|
||||
love::audio::Audio::setOutputDevice(name);
|
||||
love::audio::Audio::setPlaybackDevice(name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -127,9 +127,9 @@ public:
|
||||
|
||||
bool getEffectID(const char *name, ALuint &id);
|
||||
|
||||
std::string getOutputDevice();
|
||||
void getOutputDevices(std::vector<std::string> &list);
|
||||
void setOutputDevice(const char *name);
|
||||
std::string getPlaybackDevice();
|
||||
void getPlaybackDevices(std::vector<std::string> &list);
|
||||
void setPlaybackDevice(const char *name);
|
||||
|
||||
private:
|
||||
void initializeEFX();
|
||||
|
||||
Reference in New Issue
Block a user