@@ -86,9 +86,7 @@ HRESULT populate_audio_node_info(
86
86
result = device.GetId (&id_raw);
87
87
if (FAILED (result) || !id_raw)
88
88
{
89
- osd_printf_error (
90
- " Error getting ID for audio device. Error: 0x%X\n " ,
91
- static_cast <unsigned int >(result));
89
+ osd_printf_error (" Error getting ID for audio device. Error: 0x%X\n " , result);
92
90
return FAILED (result) ? result : E_POINTER;
93
91
}
94
92
device_id_w.reset (std::exchange (id_raw, nullptr ));
@@ -110,7 +108,7 @@ HRESULT populate_audio_node_info(
110
108
osd_printf_error (
111
109
" Error opening property store for audio device %s. Error: 0x%X\n " ,
112
110
id_string,
113
- static_cast < unsigned int >( result) );
111
+ result);
114
112
return FAILED (result) ? result : E_POINTER;
115
113
}
116
114
@@ -125,7 +123,7 @@ HRESULT populate_audio_node_info(
125
123
osd_printf_error (
126
124
" Error getting display name for audio device %s. Error: 0x%X\n " ,
127
125
id_string,
128
- static_cast < unsigned int >( result) );
126
+ result);
129
127
try
130
128
{
131
129
device_name = id_string;
@@ -151,7 +149,7 @@ HRESULT populate_audio_node_info(
151
149
osd_printf_error (
152
150
" Error getting endpoint information for audio device %s. Error: 0x%X\n " ,
153
151
device_name,
154
- static_cast < unsigned int >( result) );
152
+ result);
155
153
return FAILED (result) ? result : E_POINTER;
156
154
}
157
155
@@ -161,7 +159,7 @@ HRESULT populate_audio_node_info(
161
159
osd_printf_error (
162
160
" Error getting data flow direction for audio device %s. Error: 0x%X\n " ,
163
161
device_name,
164
- static_cast < unsigned int >( result) );
162
+ result);
165
163
return result;
166
164
}
167
165
@@ -183,7 +181,7 @@ HRESULT populate_audio_node_info(
183
181
osd_printf_error (
184
182
" Error getting stream format for audio device %s. Error: 0x%X\n " ,
185
183
device_name,
186
- static_cast < unsigned int >( result) );
184
+ result);
187
185
return result;
188
186
}
189
187
else if (VT_BLOB != format_property.value .vt )
@@ -210,7 +208,7 @@ HRESULT populate_audio_node_info(
210
208
osd_printf_error (
211
209
" Error getting speaker arrangement for audio device %s. Error: 0x%X\n " ,
212
210
device_name,
213
- static_cast < unsigned int >( result) );
211
+ result);
214
212
}
215
213
else switch (speakers_property.value .vt )
216
214
{
@@ -263,7 +261,7 @@ HRESULT populate_audio_node_info(
263
261
channel_names.emplace_back (util::string_format (" Channel %u" , i + 1 ));
264
262
++i;
265
263
}
266
- channel_positions.resize (format->nChannels , std::array<double , 3 >{ 0.0 , 0.0 , 0 .0 });
264
+ channel_positions.resize (format->nChannels , std::array<double , 3 >{ 0.0 , 0.0 , 1 .0 });
267
265
}
268
266
catch (std::bad_alloc const &)
269
267
{
0 commit comments