Windows (unlike wine) bails out when IDirectSoundBuffer8::Lock is called
with zero length. Also, hw->pos_emul handling was incorrect when
calling this function for the first time.
Signed-off-by: Kővágó, Zoltán
Reported-by: KJ Liew
---
I've tested this patch on wine and a borrowed Win
This adds proper support for float samples in mixeng by adding a new
audio format for it.
Limitations: only native endianness is supported.
Signed-off-by: Kővágó, Zoltán
---
This patch is meant to be applied on top of "[PATCH] coreaudio: fix coreaudio
playback" by Volker Rümelin, av
device that supports 5.1 and 7.1
audio.
Signed-off-by: Kővágó, Zoltán
---
Notes:
According to the spec the channel order is front left, front right,
center, lfe, surround left, surround right for 5.1 sound. But alsa uses
front left, front right, surround left, surround right, center
Signed-off-by: Kővágó, Zoltán
---
audio/paaudio.c | 50 -
1 file changed, 45 insertions(+), 5 deletions(-)
diff --git a/audio/paaudio.c b/audio/paaudio.c
index d195b1caa8..6ff0d17537 100644
--- a/audio/paaudio.c
+++ b/audio/paaudio.c
@@ -338,17
This assumption is no longer true when mixeng is turned off.
Signed-off-by: Kővágó, Zoltán
---
hw/usb/dev-audio.c | 28 +---
1 file changed, 17 insertions(+), 11 deletions(-)
diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c
index ae42e5a2f1..74c99b1f12 100644
--- a
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
---
audio/alsaaudio.c
Which currently only means removing some checks. Old code won't require
more than two channels, but new code will need it.
Signed-off-by: Kővágó, Zoltán
---
audio/alsaaudio.c | 7 ---
audio/audio.c | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/audio/alsaau
rod % USBAUDIO_PACKET_SIZE(channels)
assertion no longer holds true, which will result in overflowing the
buffer. With 64 bit variables, it would take about 762000 years to
overflow.
Signed-off-by: Kővágó, Zoltán
---
hw/usb/dev-audio.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
d
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 30 ++
audio/audio.h | 10 ++
audio/audio_int.h | 4 ++--
audio/paaudio.c| 20
audio/spiceaudio.c | 14 --
5 files changed, 54 insertions(+), 24 deletions
of scope:
https://wiki.qemu.org/Internships/ProjectIdeas/AudioGStreamer
Signed-off-by: Kővágó, Zoltán
---
Notes:
Changes from v1:
* renamed mixeng to mixing-engine
Changes from v5:
* better documentation
Changes from v1:
* renamed mixeng to mixing-engine
qapi/
Implementation of the previously added mixing-engine option.
Signed-off-by: Kővágó, Zoltán
---
Notes:
Changes from v4:
* audio_pcm_hw_add_* always returns a new HW (or fails) when not using
mixeng
audio/audio.c | 70 ++
audio
Hi,
I've updated my mixeng-free patches. This time it's only documentation
fixes in the first patch, otherwise it's identical to v5.
Regards,
Zoltan
Kővágó, Zoltán (10):
audio: add mixing-engine option (documentation)
audio: make mixeng optional
paaudio: get/put_buffer fu
This lets us avoid some buffer copying when using mixeng.
Signed-off-by: Kővágó, Zoltán
---
audio/paaudio.c | 83 +
1 file changed, 83 insertions(+)
diff --git a/audio/paaudio.c b/audio/paaudio.c
index ed31f863f7..6ccdf31415 100644
--- a/audio
Signed-off-by: Kővágó, Zoltán
---
audio/paaudio.c | 50 -
1 file changed, 45 insertions(+), 5 deletions(-)
diff --git a/audio/paaudio.c b/audio/paaudio.c
index d195b1caa8..6ff0d17537 100644
--- a/audio/paaudio.c
+++ b/audio/paaudio.c
@@ -338,17
This assumption is no longer true when mixeng is turned off.
Signed-off-by: Kővágó, Zoltán
---
hw/usb/dev-audio.c | 28 +---
1 file changed, 17 insertions(+), 11 deletions(-)
diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c
index ae42e5a2f1..74c99b1f12 100644
--- a
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 30 ++
audio/audio.h | 10 ++
audio/audio_int.h | 4 ++--
audio/paaudio.c| 20
audio/spiceaudio.c | 14 --
5 files changed, 54 insertions(+), 24 deletions
Implementation of the previously added mixing-engine option.
Signed-off-by: Kővágó, Zoltán
---
Notes:
Changes from v4:
* audio_pcm_hw_add_* always returns a new HW (or fails) when not using
mixeng
audio/audio.c | 70 ++
audio
This lets us avoid some buffer copying when using mixeng.
Signed-off-by: Kővágó, Zoltán
---
audio/paaudio.c | 83 +
1 file changed, 83 insertions(+)
diff --git a/audio/paaudio.c b/audio/paaudio.c
index ed31f863f7..6ccdf31415 100644
--- a/audio
device that supports 5.1 and 7.1
audio.
Signed-off-by: Kővágó, Zoltán
---
Notes:
According to the spec the channel order is front left, front right,
center, lfe, surround left, surround right for 5.1 sound. But alsa uses
front left, front right, surround left, surround right, center
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
---
audio/alsaaudio.c
sable mixeng.
However mixeng is not removed, only made optional, so this shouldn't be
a big concern.
Signed-off-by: Kővágó, Zoltán
---
Notes:
Changes from v1:
* renamed mixeng to mixing-engine
qapi/audio.json | 5 +
qemu-options.hx | 6 ++
2 files changed, 11 insertion
rod % USBAUDIO_PACKET_SIZE(channels)
assertion no longer holds true, which will result in overflowing the
buffer. With 64 bit variables, it would take about 762000 years to
overflow.
Signed-off-by: Kővágó, Zoltán
---
hw/usb/dev-audio.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
d
Which currently only means removing some checks. Old code won't require
more than two channels, but new code will need it.
Signed-off-by: Kővágó, Zoltán
---
audio/alsaaudio.c | 7 ---
audio/audio.c | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/audio/alsaau
Dropped the "paaudio: channel-map option" patch, instead the paaudio
backend will automatically figure out the current channel map for now
(see the last patch). Currently this only works with usb-audio, if
other frontends gain support for multi-channel audio, it might require
some rethin
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
---
audio/alsaaudio.c
This way we no longer need vararg functions, improving compile time
error detection. Also now it's possible to check actually what commands
are supported, without needing to manually update ctl_caps.
Signed-off-by: Kővágó, Zoltán
---
audio/alsaaudio.c | 62 --
Add an option to change the channel map used by pulseaudio. If not
specified, falls back to an OSS compatible channel map.
Signed-off-by: Kővágó, Zoltán
---
audio/paaudio.c | 18 ++
qapi/audio.json | 7 +--
qemu-options.hx | 9 +
3 files changed, 28 insertions
Usage notes: hw->samples became hw->{mix,conv}_buf->size, except before
initialization (audio_pcm_hw_alloc_resources_*), hw->samples gives the
initial size of the STSampleBuffer. The next commit tries to fix this
inconsistency.
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c
Implementation of the previously added mixing-engine option.
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 70 ++
audio/audio_template.h | 20
2 files changed, 78 insertions(+), 12 deletions(-)
diff --git a/audio/audio.c b/audio
This assumption is no longer true when mixeng is turned off.
Signed-off-by: Kővágó, Zoltán
---
hw/usb/dev-audio.c | 28 +---
1 file changed, 17 insertions(+), 11 deletions(-)
diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c
index ae42e5a2f1..74c99b1f12 100644
--- a
This commit removes the ad-hoc rate-limiting code from noaudio and
wavaudio, and replaces them with a (slightly modified) code from
spiceaudio. This way multiple write calls (for example when the
circular buffer wraps around) do not cause problems.
Signed-off-by: Kővágó, Zoltán
---
audio
Signed-off-by: Kővágó, Zoltán
---
audio/sdlaudio.c | 87 +++-
1 file changed, 42 insertions(+), 45 deletions(-)
diff --git a/audio/sdlaudio.c b/audio/sdlaudio.c
index 14b11f0335..f7ac8cd101 100644
--- a/audio/sdlaudio.c
+++ b/audio/sdlaudio.c
@@ -41,8
rod % USBAUDIO_PACKET_SIZE(channels)
assertion no longer holds true, which will result in overflowing the
buffer. With 64 bit variables, it would take about 762000 years to
overflow.
Signed-off-by: Kővágó, Zoltán
---
hw/usb/dev-audio.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
d
sable mixeng.
However mixeng is not removed, only made optional, so this shouldn't be
a big concern.
Signed-off-by: Kővágó, Zoltán
---
Notes:
Changes from v1:
* renamed mixeng to mixing-engine
qapi/audio.json | 5 +
qemu-options.hx | 6 ++
2 files changed, 11 insertion
Signed-off-by: Kővágó, Zoltán
---
Notes:
Changes from v3:
* fix compilation on 32-bit targets
audio/wavaudio.c | 54
1 file changed, 9 insertions(+), 45 deletions(-)
diff --git a/audio/wavaudio.c b/audio/wavaudio.c
index b6eeeb4e26
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 30 ++
audio/audio.h | 10 ++
audio/audio_int.h | 4 ++--
audio/paaudio.c| 20
audio/spiceaudio.c | 14 --
5 files changed, 54 insertions(+), 24 deletions
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 42 ++
audio/audio_int.h | 7 ---
2 files changed, 6 insertions(+), 43 deletions(-)
diff --git a/audio/audio.c b/audio/audio.c
index e29a1e15eb..435bcf20c1 100644
--- a/audio/audio.c
+++ b/audio
Signed-off-by: Kővágó, Zoltán
---
audio/ossaudio.c | 272 +--
1 file changed, 96 insertions(+), 176 deletions(-)
diff --git a/audio/ossaudio.c b/audio/ossaudio.c
index 1696933688..2782512706 100644
--- a/audio/ossaudio.c
+++ b/audio/ossaudio.c
Signed-off-by: Kővágó, Zoltán
---
audio/noaudio.c | 43 +--
1 file changed, 17 insertions(+), 26 deletions(-)
diff --git a/audio/noaudio.c b/audio/noaudio.c
index 0fb2629cf2..b054fd225b 100644
--- a/audio/noaudio.c
+++ b/audio/noaudio.c
@@ -41,10 +41,9
Signed-off-by: Kővágó, Zoltán
---
audio/dsound_template.h | 47 ---
audio/dsoundaudio.c | 305 +---
2 files changed, 91 insertions(+), 261 deletions(-)
diff --git a/audio/dsound_template.h b/audio/dsound_template.h
index 8ece870c9e..9f10b688df 100644
Signed-off-by: Kővágó, Zoltán
---
audio/coreaudio.c | 130 --
1 file changed, 69 insertions(+), 61 deletions(-)
diff --git a/audio/coreaudio.c b/audio/coreaudio.c
index d1be58b40a..5cde42f982 100644
--- a/audio/coreaudio.c
+++ b/audio/coreaudio.c
Which currently only means removing some checks. Old code won't require
more than two channels, but new code will need it.
Signed-off-by: Kővágó, Zoltán
---
audio/alsaaudio.c | 7 ---
audio/audio.c | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/audio/alsaau
Signed-off-by: Kővágó, Zoltán
---
audio/Makefile.objs | 1 -
audio/audio_pt_int.c | 173
audio/audio_pt_int.h | 22 ---
audio/paaudio.c | 372 ++-
configure| 5 -
5 files changed, 45 insertions(+), 528 deletions
Signed-off-by: Kővágó, Zoltán
---
audio/alsaaudio.c | 302 --
1 file changed, 80 insertions(+), 222 deletions(-)
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index 591344dccd..19124d09d8 100644
--- a/audio/alsaaudio.c
+++ b/audio/alsaaudio.c
er is more
convenient for them.
Signed-off-by: Kővágó, Zoltán
---
Notes:
Changes from v2:
* audio_pcm_hw_run_out: handle NULL result from get_buffer_out
audio/audio.c | 216 -
audio/audio_int.h | 43 ++--
audio/audio_templ
Hi,
This is the newest iteration of my mixeng-free audio patches.
Changes from v3:
* fixed typo in documentation
* fix wavaudio format-string error on 32-bit targets.
Regards,
Zoltan
Kővágó, Zoltán (24):
audio: api for mixeng code free backends
alsaaudio: port to the new audio backend api
rod % USBAUDIO_PACKET_SIZE(channels)
assertion no longer holds true, which will result in overflowing the
buffer. With 64 bit variables, it would take about 762000 years to
overflow.
Signed-off-by: Kővágó, Zoltán
---
hw/usb/dev-audio.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
d
This assumption is no longer true when mixeng is turned off.
Signed-off-by: Kővágó, Zoltán
---
hw/usb/dev-audio.c | 28 +---
1 file changed, 17 insertions(+), 11 deletions(-)
diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c
index ae42e5a2f1..74c99b1f12 100644
--- a
Add an option to change the channel map used by pulseaudio. If not
specified, falls back to an OSS compatible channel map.
Signed-off-by: Kővágó, Zoltán
---
audio/paaudio.c | 18 ++
qapi/audio.json | 7 +--
qemu-options.hx | 9 +
3 files changed, 28 insertions
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 30 ++
audio/audio.h | 10 ++
audio/audio_int.h | 4 ++--
audio/paaudio.c| 20
audio/spiceaudio.c | 14 --
5 files changed, 54 insertions(+), 24 deletions
This way we no longer need vararg functions, improving compile time
error detection. Also now it's possible to check actually what commands
are supported, without needing to manually update ctl_caps.
Signed-off-by: Kővágó, Zoltán
---
audio/alsaaudio.c | 62 --
This lets us avoid some buffer copying when using mixeng.
Signed-off-by: Kővágó, Zoltán
---
audio/paaudio.c | 83 +
1 file changed, 83 insertions(+)
diff --git a/audio/paaudio.c b/audio/paaudio.c
index ed31f863f7..6ccdf31415 100644
--- a/audio
This commit removes the ad-hoc rate-limiting code from noaudio and
wavaudio, and replaces them with a (slightly modified) code from
spiceaudio. This way multiple write calls (for example when the
circular buffer wraps around) do not cause problems.
Signed-off-by: Kővágó, Zoltán
---
audio
Which currently only means removing some checks. Old code won't require
more than two channels, but new code will need it.
Signed-off-by: Kővágó, Zoltán
---
audio/alsaaudio.c | 7 ---
audio/audio.c | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/audio/alsaau
Implementation of the previously added mixing-engine option.
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 70 ++
audio/audio_template.h | 20
2 files changed, 78 insertions(+), 12 deletions(-)
diff --git a/audio/audio.c b/audio
Signed-off-by: Kővágó, Zoltán
---
audio/dsound_template.h | 47 ---
audio/dsoundaudio.c | 305 +---
2 files changed, 91 insertions(+), 261 deletions(-)
diff --git a/audio/dsound_template.h b/audio/dsound_template.h
index 8ece870c9e..9f10b688df 100644
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 42 ++
audio/audio_int.h | 7 ---
2 files changed, 6 insertions(+), 43 deletions(-)
diff --git a/audio/audio.c b/audio/audio.c
index e29a1e15eb..435bcf20c1 100644
--- a/audio/audio.c
+++ b/audio
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
---
audio/alsaaudio.c
Signed-off-by: Kővágó, Zoltán
---
audio/wavaudio.c | 54
1 file changed, 9 insertions(+), 45 deletions(-)
diff --git a/audio/wavaudio.c b/audio/wavaudio.c
index b6eeeb4e26..7816097db8 100644
--- a/audio/wavaudio.c
+++ b/audio/wavaudio.c
@@ -36,52
Hi,
I've updated my patch series, fixing some bugs related to spice audio.
This should now work with all supported backends on linux, dsound and
coreaudio remain untested.
Regards,
Zoltan
Kővágó, Zoltán (24):
audio: api for mixeng code free backends
alsaaudio: port to the new audio ba
Signed-off-by: Kővágó, Zoltán
---
audio/coreaudio.c | 130 --
1 file changed, 69 insertions(+), 61 deletions(-)
diff --git a/audio/coreaudio.c b/audio/coreaudio.c
index d1be58b40a..5cde42f982 100644
--- a/audio/coreaudio.c
+++ b/audio/coreaudio.c
sable mixeng.
However mixeng is not removed, only made optional, so this shouldn't be
a big concern.
Signed-off-by: Kővágó, Zoltán
---
Notes:
Changes from v1:
* renamed mixeng to mixing-engine
qapi/audio.json | 5 +
qemu-options.hx | 6 ++
2 files changed, 11 insertion
Signed-off-by: Kővágó, Zoltán
---
audio/ossaudio.c | 272 +--
1 file changed, 96 insertions(+), 176 deletions(-)
diff --git a/audio/ossaudio.c b/audio/ossaudio.c
index 1696933688..2782512706 100644
--- a/audio/ossaudio.c
+++ b/audio/ossaudio.c
Usage notes: hw->samples became hw->{mix,conv}_buf->size, except before
initialization (audio_pcm_hw_alloc_resources_*), hw->samples gives the
initial size of the STSampleBuffer. The next commit tries to fix this
inconsistency.
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c
Signed-off-by: Kővágó, Zoltán
---
audio/alsaaudio.c | 302 --
1 file changed, 80 insertions(+), 222 deletions(-)
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index 591344dccd..19124d09d8 100644
--- a/audio/alsaaudio.c
+++ b/audio/alsaaudio.c
Signed-off-by: Kővágó, Zoltán
---
audio/Makefile.objs | 1 -
audio/audio_pt_int.c | 173
audio/audio_pt_int.h | 22 ---
audio/paaudio.c | 372 ++-
configure| 5 -
5 files changed, 45 insertions(+), 528 deletions
er is more
convenient for them.
Signed-off-by: Kővágó, Zoltán
---
Notes:
Changes from v2:
* audio_pcm_hw_run_out: handle NULL result from get_buffer_out
audio/audio.c | 216 -
audio/audio_int.h | 43 ++--
audio/audio_templ
Signed-off-by: Kővágó, Zoltán
---
audio/sdlaudio.c | 87 +++-
1 file changed, 42 insertions(+), 45 deletions(-)
diff --git a/audio/sdlaudio.c b/audio/sdlaudio.c
index 14b11f0335..f7ac8cd101 100644
--- a/audio/sdlaudio.c
+++ b/audio/sdlaudio.c
@@ -41,8
Signed-off-by: Kővágó, Zoltán
---
audio/noaudio.c | 43 +--
1 file changed, 17 insertions(+), 26 deletions(-)
diff --git a/audio/noaudio.c b/audio/noaudio.c
index 0fb2629cf2..b054fd225b 100644
--- a/audio/noaudio.c
+++ b/audio/noaudio.c
@@ -41,10 +41,9
This can be used to identify stream in tools like pavucontrol when one
creates multiple -audiodevs or runs multiple qemu instances.
Signed-off-by: Kővágó, Zoltán
---
audio/paaudio.c | 4 ++--
qapi/audio.json | 6 ++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/audio
This should fix Coverity issues CID 1405305 and 1405301.
Signed-off-by: Kővágó, Zoltán
---
audio/audio_template.h | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/audio/audio_template.h b/audio/audio_template.h
index 2562bf5f00..cc4b53b5d7 100644
--- a/audio
v id
unconditionally, while the last commit adds a new option to qapi to
override it. This way we can easily drop the last commit if it turns
out to be unnecessary.
Regards,
Zoltan
Kővágó, Zoltán (3):
audio: fix parameter dereference before NULL check
audio: paaudio: fix connection and stream n
Connection name was previously erroneously set to the server socket
path, while connection names were simply "qemu". After this patch, the
connection name will be the vm name (falling back to "qemu" if not
specified), while stream names will be the audiodev's id.
Sign
Which currently only means removing some checks. Old code won't require
more than two channels, but new code will need it.
Signed-off-by: Kővágó, Zoltán
---
audio/alsaaudio.c | 7 ---
audio/audio.c | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/audio/alsaau
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 30 ++
audio/audio.h | 10 ++
audio/audio_int.h | 4 ++--
audio/paaudio.c| 20
audio/spiceaudio.c | 14 --
5 files changed, 54 insertions(+), 24 deletions
Implementation of the previously added mixing-engine option.
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 70 ++
audio/audio_template.h | 20
2 files changed, 78 insertions(+), 12 deletions(-)
diff --git a/audio/audio.c b/audio
This commit removes the ad-hoc rate-limiting code from noaudio and
wavaudio, and replaces them with a (slightly modified) code from
spiceaudio. This way multiple write calls (for example when the
circular buffer wraps around) do not cause problems.
Signed-off-by: Kővágó, Zoltán
---
audio
sable mixeng.
However mixeng is not removed, only made optional, so this shouldn't be
a big concern.
Signed-off-by: Kővágó, Zoltán
---
Notes:
Changes from v1:
* renamed mixeng to mixing-engine
qapi/audio.json | 5 +
qemu-options.hx | 6 ++
2 files changed, 11 insertion
rod % USBAUDIO_PACKET_SIZE(channels)
assertion no longer holds true, which will result in overflowing the
buffer. With 64 bit variables, it would take about 762000 years to
overflow.
Signed-off-by: Kővágó, Zoltán
---
hw/usb/dev-audio.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
d
Signed-off-by: Kővágó, Zoltán
---
audio/ossaudio.c | 272 +--
1 file changed, 96 insertions(+), 176 deletions(-)
diff --git a/audio/ossaudio.c b/audio/ossaudio.c
index 1696933688..2782512706 100644
--- a/audio/ossaudio.c
+++ b/audio/ossaudio.c
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
---
audio/alsaaudio.c
This assumption is no longer true when mixeng is turned off.
Signed-off-by: Kővágó, Zoltán
---
hw/usb/dev-audio.c | 28 +---
1 file changed, 17 insertions(+), 11 deletions(-)
diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c
index ae42e5a2f1..74c99b1f12 100644
--- a
Signed-off-by: Kővágó, Zoltán
---
audio/wavaudio.c | 54
1 file changed, 9 insertions(+), 45 deletions(-)
diff --git a/audio/wavaudio.c b/audio/wavaudio.c
index b6eeeb4e26..7816097db8 100644
--- a/audio/wavaudio.c
+++ b/audio/wavaudio.c
@@ -36,52
Add an option to change the channel map used by pulseaudio. If not
specified, falls back to an OSS compatible channel map.
Signed-off-by: Kővágó, Zoltán
---
audio/paaudio.c | 18 ++
qapi/audio.json | 7 +--
qemu-options.hx | 9 +
3 files changed, 28 insertions
This way we no longer need vararg functions, improving compile time
error detection. Also now it's possible to check actually what commands
are supported, without needing to manually update ctl_caps.
Signed-off-by: Kővágó, Zoltán
---
audio/alsaaudio.c | 62 --
er is more
convenient for them.
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 211 -
audio/audio_int.h | 43 +++--
audio/audio_template.h | 1 +
3 files changed, 246 insertions(+), 9 deletions(-)
diff --git a/audio/audio.c b/audio/au
Usage notes: hw->samples became hw->{mix,conv}_buf->size, except before
initialization (audio_pcm_hw_alloc_resources_*), hw->samples gives the
initial size of the STSampleBuffer. The next commit tries to fix this
inconsistency.
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c
Signed-off-by: Kővágó, Zoltán
---
audio/alsaaudio.c | 302 --
1 file changed, 80 insertions(+), 222 deletions(-)
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index 591344dccd..19124d09d8 100644
--- a/audio/alsaaudio.c
+++ b/audio/alsaaudio.c
Signed-off-by: Kővágó, Zoltán
---
audio/sdlaudio.c | 87 +++-
1 file changed, 42 insertions(+), 45 deletions(-)
diff --git a/audio/sdlaudio.c b/audio/sdlaudio.c
index 14b11f0335..f7ac8cd101 100644
--- a/audio/sdlaudio.c
+++ b/audio/sdlaudio.c
@@ -41,8
Signed-off-by: Kővágó, Zoltán
---
audio/Makefile.objs | 1 -
audio/audio_pt_int.c | 173
audio/audio_pt_int.h | 22 ---
audio/paaudio.c | 372 ++-
configure| 5 -
5 files changed, 45 insertions(+), 528 deletions
Signed-off-by: Kővágó, Zoltán
---
audio/audio.c | 42 ++
audio/audio_int.h | 7 ---
2 files changed, 6 insertions(+), 43 deletions(-)
diff --git a/audio/audio.c b/audio/audio.c
index f5a5942da9..c945f23724 100644
--- a/audio/audio.c
+++ b/audio
Hi,
This is the v2 of my patch series that makes mixeng optional and enables
more than two audio channels.
Changes from v1:
* renamed "mixeng" option to "mixing-engine"
* dropped patch "audio: remove hw->samples, buffer_size_in/out pcm_ops"
Regards,
Zoltan
Signed-off-by: Kővágó, Zoltán
---
audio/dsound_template.h | 47 +++---
audio/dsoundaudio.c | 307 +---
2 files changed, 92 insertions(+), 262 deletions(-)
diff --git a/audio/dsound_template.h b/audio/dsound_template.h
index 8ece870c9e..9f10b688df 100644
Signed-off-by: Kővágó, Zoltán
---
audio/coreaudio.c | 130 --
1 file changed, 69 insertions(+), 61 deletions(-)
diff --git a/audio/coreaudio.c b/audio/coreaudio.c
index d1be58b40a..5cde42f982 100644
--- a/audio/coreaudio.c
+++ b/audio/coreaudio.c
Signed-off-by: Kővágó, Zoltán
---
audio/noaudio.c | 43 +--
1 file changed, 17 insertions(+), 26 deletions(-)
diff --git a/audio/noaudio.c b/audio/noaudio.c
index 0fb2629cf2..b054fd225b 100644
--- a/audio/noaudio.c
+++ b/audio/noaudio.c
@@ -41,10 +41,9
pa_context_new expects a client name, not a server socket path.
Signed-off-by: Kővágó, Zoltán
Reviewed-by: Maxim Levitsky
---
audio/paaudio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/audio/paaudio.c b/audio/paaudio.c
index bfef9acaad..777b8e4718 100644
--- a/audio
direction options: a string, an
uint32 and a bool. Oss has the same fields, coreaudio has a single
uint32, paaudio has a string and an uint32, all other backends only use
the common options, so currently no per direction options struct should
be larger than alsa's.
Signed-off-by: Kővágó, Zol
This can be used to identify stream in tools like pavucontrol when one
creates multiple -audiodevs or runs multiple qemu instances.
Signed-off-by: Kővágó, Zoltán
Reviewed-by: Maxim Levitsky
---
qapi/audio.json | 6 ++
audio/paaudio.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions
Unfortunately, changes introduced in af2041ed2d "audio: audiodev=
parameters no longer optional when -audiodev present" breaks backward
compatibility. This patch changes the error into a deprecation warning.
Signed-off-by: Kővágó, Zoltán
---
qemu-deprecated.texi | 7 +++
aud
Hi,
This is the second iteration of my "random fixes" patchset. Compared to
v1, this has a new patch, fixing the memory error caused by an invalid
malloc.
Regards,
Zoltan
Kővágó, Zoltán (4):
audio: fix invalid malloc size in audio_create_pdos
audio: omitting audiodev= paramet
1 - 100 of 616 matches
Mail list logo