mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-12 07:41:47 +02:00
fix warnings
This commit is contained in:
parent
aa32ced692
commit
6a3f59b0e1
2 changed files with 7 additions and 7 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue