| | |
| | | int command; |
| | | int sourceId = info.getIntCurState(); |
| | | switch (type) { |
| | | case HDLAudio.SET_AUDIO_PLAY://2021-09-07 增加单独的播放和暂定指令,解决取反问题 |
| | | command = Configuration.AUDIO_CTRL_READ_COMMAND; |
| | | musicBytes = StringUtil.GetMusicBytes("*S" +sourceId + "PLAY"); |
| | | // musicBytes = new byte[]{0x2A, 0x53, 0x31, 0x50, 0x4C, 0x41, 0x59, 0x0D}; |
| | | break; |
| | | case HDLAudio.SET_AUDIO_STOP://2021-09-07 增加单独的播放和暂定指令,解决取反问题 |
| | | command = Configuration.AUDIO_CTRL_READ_COMMAND; |
| | | musicBytes = StringUtil.GetMusicBytes("*S" +sourceId + "STOP"); |
| | | // musicBytes = new byte[]{0x2A, 0x53, 0x31, 0x53, 0x54, 0x4F, 0x50, 0x0D}; |
| | | break; |
| | | case HDLAudio.SET_AUDIO_PLAYSTOP: |
| | | command = Configuration.AUDIO_CTRL_READ_COMMAND; |
| | | // musicBytes = new byte[]{0x2A, 0x53, 0x31, 0x50, 0x4C, 0x41, 0x59, 0x53, 0x54, 0x4F, 0x50, 0x0D}; |