Initialize arrays

This commit is contained in:
Mike H 2018-02-13 19:41:02 +00:00 committed by GitHub
parent 7edd381593
commit 9c9ff5f8a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,8 +29,8 @@ Result audoutInitialize(void)
AudioOutState State = 0;
// Passing an empty device name will open the default "DeviceOut"
char DeviceNameIn[DEVICE_NAME_LENGTH];
char DeviceNameOut[DEVICE_NAME_LENGTH];
char DeviceNameIn[DEVICE_NAME_LENGTH] = {0};
char DeviceNameOut[DEVICE_NAME_LENGTH] = {0};
rc = audoutOpenAudioOut(DeviceNameIn, DeviceNameOut, DEFAULT_SAMPLE_RATE, CHANNEL_COUNT_MAGIC, &SampleRate, &ChannelCount, &Format, &State);
}