audio_core: hle: mf: minor fix

This commit is contained in:
liushuyu 2019-01-05 21:05:12 -07:00 committed by B3N30
parent c03861c2d9
commit 06316be8a7
2 changed files with 3 additions and 1 deletions

View file

@ -185,6 +185,8 @@ std::optional<BinaryResponse> WMFDecoder::Impl::Decode(const BinaryRequest& requ
return response; return response;
} }
response.num_channels = adts_header.channels;
if (!selected) { if (!selected) {
LOG_DEBUG(Audio_DSP, "New ADTS stream: channels = {}, sample rate = {}", LOG_DEBUG(Audio_DSP, "New ADTS stream: channels = {}, sample rate = {}",
adts_header.channels, adts_header.samplerate); adts_header.channels, adts_header.samplerate);
@ -240,7 +242,6 @@ std::optional<BinaryResponse> WMFDecoder::Impl::Decode(const BinaryRequest& requ
out_streams[1].data(), out_streams[1].size()); out_streams[1].data(), out_streams[1].size());
} }
response.num_channels = adts_header.channels;
return response; return response;
} }

View file

@ -9,6 +9,7 @@ add_executable(tests
core/hle/kernel/hle_ipc.cpp core/hle/kernel/hle_ipc.cpp
core/memory/memory.cpp core/memory/memory.cpp
core/memory/vm_manager.cpp core/memory/vm_manager.cpp
audio_core/audio_fixures.h
audio_core/decoder_tests.cpp audio_core/decoder_tests.cpp
tests.cpp tests.cpp
) )