当让右声道发声时,在响应事件中,加入以下代码;
mcisendstring("set all audio all off",nil,0,handle);
mcisendstring("set all audio right on";,nil,0,handle);
当让左声道发声时,在响应事件中,加入以下代码;
mcisendstring("set all audio all off",nil,0,handle);
mcisendstring("set all audio left on";,nil,0,handle);