mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-06 21:01:42 +02:00
Reformat code
This commit is contained in:
parent
c6518a4709
commit
e1c8250876
32 changed files with 505 additions and 351 deletions
|
@ -134,7 +134,8 @@ inline PcmDevice convertToDevice(int idx, IMMDevicePtr& device)
|
|||
desc.idx = idx;
|
||||
|
||||
// Convert a wide Unicode string to an UTF8 string
|
||||
auto utf8_encode = [](const std::wstring& wstr) {
|
||||
auto utf8_encode = [](const std::wstring& wstr)
|
||||
{
|
||||
if (wstr.empty())
|
||||
return std::string();
|
||||
int size_needed = WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)wstr.size(), NULL, 0, NULL, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue