Skip to content

Commit 63f0e03

Browse files
committed
fix:设置音频硬件输出通道有问题
1 parent 64e4f5b commit 63f0e03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/multimedia/luat_lib_multimedia_audio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ audio.setBus(0, audio.BUS_SOFT_DAC) --通道0的硬件输出通道设置为软
332332
audio.setBus(0, audio.BUS_I2S) --通道0的硬件输出通道设置为I2S
333333
*/
334334
static int l_audio_set_output_bus(lua_State *L) {
335-
luat_audio_set_bus_type(luaL_checkinteger(L, 1));
335+
luat_audio_set_bus_type(luaL_checkinteger(L, 2));
336336
return 0;
337337
}
338338

0 commit comments

Comments
 (0)