mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
commented out the audio capture initialization stuff so that lovers don't get concerned by warnings about being unable to open a capture device
This commit is contained in:
@@ -47,7 +47,7 @@ namespace openal
|
|||||||
if(alcGetError(device) != ALC_NO_ERROR)
|
if(alcGetError(device) != ALC_NO_ERROR)
|
||||||
throw love::Exception("Could not make context current.");
|
throw love::Exception("Could not make context current.");
|
||||||
|
|
||||||
std::string captureName(alcGetString(NULL, ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER));
|
/*std::string captureName(alcGetString(NULL, ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER));
|
||||||
const ALCchar * devices = alcGetString(NULL, ALC_CAPTURE_DEVICE_SPECIFIER);
|
const ALCchar * devices = alcGetString(NULL, ALC_CAPTURE_DEVICE_SPECIFIER);
|
||||||
while (*devices) {
|
while (*devices) {
|
||||||
std::string device(devices);
|
std::string device(devices);
|
||||||
@@ -62,7 +62,7 @@ namespace openal
|
|||||||
if (!capture) {
|
if (!capture) {
|
||||||
// We're not going to prevent LOVE from running without a microphone, but we should warn, at least
|
// We're not going to prevent LOVE from running without a microphone, but we should warn, at least
|
||||||
std::cerr << "Warning, couldn't open capture device! No audio input!" << std::endl;
|
std::cerr << "Warning, couldn't open capture device! No audio input!" << std::endl;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// pool must be allocated after AL context.
|
// pool must be allocated after AL context.
|
||||||
pool = new Pool();
|
pool = new Pool();
|
||||||
|
|||||||
Reference in New Issue
Block a user