fix warnings

This commit is contained in:
badaix 2019-10-19 23:31:45 +02:00
parent aa32ced692
commit 6a3f59b0e1
2 changed files with 7 additions and 7 deletions

View file

@ -76,7 +76,7 @@ std::vector<PcmDevice> CoreAudioPlayer::pcm_list(void)
continue;
UInt32 maxlen = 1024;
char buf[maxlen];
char buf[1024];
theAddress = {kAudioDevicePropertyDeviceName, kAudioDevicePropertyScopeOutput, 0};
AudioObjectGetPropertyData(devids[i], &theAddress, 0, NULL, &maxlen, buf);
LOG(DEBUG) << "device: " << i << ", name: " << buf << ", channels: " << channels << "\n";