mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
audio: proper support for float samples in mixeng
This adds proper support for float samples in mixeng by adding a new audio format for it. Limitations: only native endianness is supported. None of the virtual sound cards support float samples (it looks like most of them only support 8 and 16 bit, only hda supports 32 bit), it is only used for the audio backends (i.e. host side). Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com> Acked-by: Markus Armbruster <armbru@redhat.com> Message-id: 8a8b0b5698401b78d3c4c8ec90aef83b95babb06.1580672076.git.DirtY.iCE.hu@gmail.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
180b044ffd
commit
ed2a4a7941
10 changed files with 182 additions and 81 deletions
|
@ -40,7 +40,8 @@ struct audio_callback {
|
|||
|
||||
struct audio_pcm_info {
|
||||
int bits;
|
||||
int sign;
|
||||
bool is_signed;
|
||||
bool is_float;
|
||||
int freq;
|
||||
int nchannels;
|
||||
int bytes_per_frame;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue