diff options
author | 2019-10-13 21:58:02 +0200 | |
---|---|---|
committer | 2019-10-18 08:14:05 +0200 | |
commit | 2b9cce8c8c37b95290c48c037e51e001985124d1 (patch) | |
tree | 82fbbf3fff30c561215cada4c3f2a97f8cda1dbb /scripts/qapi/source.py | |
parent | audio: support more than two channels in volume setting (diff) | |
download | qemu-2b9cce8c8c37b95290c48c037e51e001985124d1.tar.xz qemu-2b9cce8c8c37b95290c48c037e51e001985124d1.zip |
audio: replace shift in audio_pcm_info with bytes_per_frame
The bit shifting trick worked because the number of bytes per frame was
always a power-of-two (since QEMU only supports mono, stereo and 8, 16
and 32 bit samples). But if we want to add support for surround sound,
this no longer holds true.
Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com>
Message-id: 1351fd9bcce0ff20d81850c5292722194329de02.1570996490.git.DirtY.iCE.hu@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions