Volker Rümelin 7bef4a939a sound: Fix pointer arithmetic in snd_record_handle_write()
The variable 'now' counts in audio sample frames, but the variable
'data' is of type uint8_t *. Multiply 'now' by the size of an audio
sample frame to get the correct source pointer.

This improves the quality of audio recordings in QEMU a little bit.

Fixes: 5d5a7bd181 ("sound: Avoid cast that could cause alignment problems")

Signed-off-by: Volker Rümelin <[email protected]>
Acked-by: Frediano Ziglio <[email protected]>
(cherry picked from commit a5d1d957d6c16e3fe213e10d0cab4bfe2504ba91)
2026-09-22 18:54:27 -05:00
2020-02-27 11:22:40 +00:00
2019-11-26 15:39:07 +00:00
2022-03-04 20:43:19 -08:00
2009-10-14 15:06:41 +02:00
2016-12-05 13:48:28 +00:00
2015-11-27 20:21:24 +01:00
2020-02-27 11:22:44 +00:00
2020-02-27 11:22:44 +00:00
2016-11-18 12:06:53 +00:00
2016-11-18 12:06:53 +00:00
2020-02-27 11:22:40 +00:00
2019-04-26 11:45:12 +01:00

   SPICE: Simple Protocol for Independent Computing Environments
   =============================================================

SPICE is a remote display system built for virtual environments which
allows you to view a computing 'desktop' environment not only on the
machine where it is running, but from anywhere on the Internet and
from a wide variety of machine architectures.

Installation
------------

The SPICE package uses GNU autotools, so the build install process
follows the standard process documented in the INSTALL file. As a
quick start you can do

  ./configure --prefix=/usr --sysconfdir=/etc \
        --localstatedir=/var --libdir=/usr/lib
  make
  sudo make install

Or to install into a private user specific location

  ./configure --prefix=$HOME/spice
  make
  make install

The following mandatory dependencies are required in order to
build SPICE

    Spice protocol >= 0.14.0
    Pixman         >= 0.17.7
    OpenSSL
    libjpeg
    zlib

The following optional dependencies increase the available
functionality

    Cyrus-SASL
    libcacard      >= 2.5.1             (Smartcard support)
    Opus           >= 1.0.0             (Opus audio encoding support)
    LZ4                                 (LZ4 compression support)
    GStreamer      >= 1.0.0

Communication
-------------

To communicate with the development team, or to post patches
there is a technical mailing list:

   http://lists.freedesktop.org/mailman/listinfo/spice-devel

There is also a mailing list for new release announcements:

   http://lists.freedesktop.org/archives/spice-announce/

To view known bugs, or report new bugs, in SPICE visit

   https://gitlab.freedesktop.org/spice/spice/issues/new?

Bugs found when using an OS distribution's binary packages should
be reported to the OS vendors' own bug tracker first.

The latest SPICE code can be found in GIT at:

   https://gitlab.freedesktop.org/spice/

Licensing
---------

SPICE is provided under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

Please see the COPYING file for the complete LGPLv2+ license
terms, or visit <http://www.gnu.org/licenses/>.

Experimental Features
---------------------
To enable multiple client connections, set:
SPICE_DEBUG_ALLOW_MC=1

-- End of readme
S
Description
Unnamed repository; edit this file to name it for gitweb.
Readme LGPL-2.1
9.4 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 92.3%
Makefile 3.8%
M4 1.8%
Meson 0.8%
Python 0.7%
Other 0.6%