mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
First argument of alcCaptureOpenDevice #1304
This commit is contained in:
parent
898c2350f7
commit
013d053277
@ -188,7 +188,7 @@ bool SoundRecorder::setDevice(const std::string& name)
|
||||
ALCenum format = (m_channelCount == 1) ? AL_FORMAT_MONO16 : AL_FORMAT_STEREO16;
|
||||
|
||||
// Open the requested capture device for capturing 16 bits samples
|
||||
captureDevice = alcCaptureOpenDevice(name.c_str(), m_sampleRate, format, m_sampleRate);
|
||||
captureDevice = alcCaptureOpenDevice(m_deviceName.c_str(), m_sampleRate, format, m_sampleRate);
|
||||
if (!captureDevice)
|
||||
{
|
||||
// Notify derived class
|
||||
|
Loading…
Reference in New Issue
Block a user