Hello community, here is the log from the commit of package python-simpleaudio for openSUSE:Factory checked in at 2019-12-03 15:21:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-simpleaudio (Old) and /work/SRC/openSUSE:Factory/.python-simpleaudio.new.4691 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-simpleaudio" Tue Dec 3 15:21:31 2019 rev:2 rq:752983 version:1.0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-simpleaudio/python-simpleaudio.changes 2018-11-15 12:38:41.446365118 +0100 +++ /work/SRC/openSUSE:Factory/.python-simpleaudio.new.4691/python-simpleaudio.changes 2019-12-03 15:21:34.066529194 +0100 @@ -1,0 +2,8 @@ +Mon Dec 2 16:12:51 UTC 2019 - Todd R <[email protected]> + +- Update to 1.0.4 + * Added 24-bit and 32-bit playback capability +- Update to 1.0.3 + * Added CI builds of pre-built binaries for Python 3.7 and 3.8, dropped others + +------------------------------------------------------------------- Old: ---- simpleaudio-1.0.2.tar.gz New: ---- simpleaudio-1.0.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-simpleaudio.spec ++++++ --- /var/tmp/diff_new_pack.dHi6ej/_old 2019-12-03 15:21:35.262528647 +0100 +++ /var/tmp/diff_new_pack.dHi6ej/_new 2019-12-03 15:21:35.262528647 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-simpleaudio -Version: 1.0.2 +Version: 1.0.4 Release: 0 Summary: Asynchronous audio playback for Python License: MIT ++++++ simpleaudio-1.0.2.tar.gz -> simpleaudio-1.0.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simpleaudio-1.0.2/PKG-INFO new/simpleaudio-1.0.4/PKG-INFO --- old/simpleaudio-1.0.2/PKG-INFO 2017-12-26 21:01:49.000000000 +0100 +++ new/simpleaudio-1.0.4/PKG-INFO 2019-11-29 04:56:20.580913000 +0100 @@ -1,12 +1,11 @@ Metadata-Version: 1.1 Name: simpleaudio -Version: 1.0.2 +Version: 1.0.4 Summary: Simple, asynchronous audio playback for Python 3. Home-page: https://github.com/hamiltron/py-simple-audio Author: Joe Hamilton Author-email: [email protected] License: MIT -Description-Content-Type: UNKNOWN Description: Simpleaudio Package =================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simpleaudio-1.0.2/c_src/simpleaudio.c new/simpleaudio-1.0.4/c_src/simpleaudio.c --- old/simpleaudio-1.0.2/c_src/simpleaudio.c 2017-12-26 21:01:22.000000000 +0100 +++ new/simpleaudio-1.0.4/c_src/simpleaudio.c 2019-11-29 04:56:08.000000000 +0100 @@ -127,8 +127,8 @@ return NULL; } - if (bytes_per_channel < 1 || bytes_per_channel > 2) { - PyErr_SetString(PyExc_ValueError, "Bytes-per-sample must be 1 (8-bit) or 2 (16-bit)."); + if (bytes_per_channel < 1 || bytes_per_channel > 5) { + PyErr_SetString(PyExc_ValueError, "Bytes-per-sample must be 1, 2, 3, or 4."); return NULL; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simpleaudio-1.0.2/c_src/simpleaudio_alsa.c new/simpleaudio-1.0.4/c_src/simpleaudio_alsa.c --- old/simpleaudio-1.0.2/c_src/simpleaudio_alsa.c 2017-12-26 21:01:22.000000000 +0100 +++ new/simpleaudio-1.0.4/c_src/simpleaudio_alsa.c 2019-11-29 04:56:08.000000000 +0100 @@ -103,6 +103,10 @@ sample_format = SND_PCM_FORMAT_U8; } else if (bytes_per_chan == 2) { sample_format = SND_PCM_FORMAT_S16_LE; + } else if (bytes_per_chan == 3) { + sample_format = SND_PCM_FORMAT_S24_3LE; + } else if (bytes_per_chan == 4) { + sample_format = SND_PCM_FORMAT_FLOAT_LE; } else { ALSA_EXCEPTION("Unsupported Sample Format.", 0, "", err_msg_buf); return NULL; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simpleaudio-1.0.2/c_src/simpleaudio_mac.c new/simpleaudio-1.0.4/c_src/simpleaudio_mac.c --- old/simpleaudio-1.0.2/c_src/simpleaudio_mac.c 2017-12-26 21:01:22.000000000 +0100 +++ new/simpleaudio-1.0.4/c_src/simpleaudio_mac.c 2019-11-29 04:56:08.000000000 +0100 @@ -94,9 +94,11 @@ audio_fmt.mSampleRate = sample_rate; audio_fmt.mFormatID = kAudioFormatLinearPCM; audio_fmt.mFormatFlags = kAudioFormatFlagIsPacked; - if (bytes_per_chan >= 2) { + if (bytes_per_chan == 2 || bytes_per_chan == 3) { /* don't set the signed flag for 8-bit audio */ audio_fmt.mFormatFlags |= kAudioFormatFlagIsSignedInteger; + } else if (bytes_per_chan == 4) { + audio_fmt.mFormatFlags |= kAudioFormatFlagIsFloat; } audio_fmt.mFramesPerPacket = 1; audio_fmt.mChannelsPerFrame = num_channels; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simpleaudio-1.0.2/c_src/simpleaudio_win.c new/simpleaudio-1.0.4/c_src/simpleaudio_win.c --- old/simpleaudio-1.0.2/c_src/simpleaudio_win.c 2017-12-26 21:01:22.000000000 +0100 +++ new/simpleaudio-1.0.4/c_src/simpleaudio_win.c 2019-11-29 04:56:08.000000000 +0100 @@ -6,7 +6,7 @@ #include "simpleaudio.h" #include <Windows.h> -#include <Mmsystem.h> +#include <mmreg.h> #include <stdlib.h> #define SYS_STR_LEN (SA_ERR_STR_LEN / 2) @@ -137,7 +137,11 @@ release_mutex(play_list_head->mutex); /* windows audio device and format headers setup */ - audio_format.wFormatTag = WAVE_FORMAT_PCM; + if (bytes_per_chan < 4) { + audio_format.wFormatTag = WAVE_FORMAT_PCM; + } else { + audio_format.wFormatTag = WAVE_FORMAT_IEEE_FLOAT; + } audio_format.nChannels = num_channels; audio_format.nSamplesPerSec = sample_rate; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simpleaudio-1.0.2/setup.py new/simpleaudio-1.0.4/setup.py --- old/simpleaudio-1.0.2/setup.py 2017-12-26 21:01:22.000000000 +0100 +++ new/simpleaudio-1.0.4/setup.py 2019-11-29 04:56:08.000000000 +0100 @@ -35,7 +35,7 @@ # attempt to generate the version from git tag and commit -VERSION = "1.0.2" +VERSION = "1.0.4" # Get the long description from the relevant file with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst'), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simpleaudio-1.0.2/simpleaudio.egg-info/PKG-INFO new/simpleaudio-1.0.4/simpleaudio.egg-info/PKG-INFO --- old/simpleaudio-1.0.2/simpleaudio.egg-info/PKG-INFO 2017-12-26 21:01:49.000000000 +0100 +++ new/simpleaudio-1.0.4/simpleaudio.egg-info/PKG-INFO 2019-11-29 04:56:20.000000000 +0100 @@ -1,12 +1,11 @@ Metadata-Version: 1.1 Name: simpleaudio -Version: 1.0.2 +Version: 1.0.4 Summary: Simple, asynchronous audio playback for Python 3. Home-page: https://github.com/hamiltron/py-simple-audio Author: Joe Hamilton Author-email: [email protected] License: MIT -Description-Content-Type: UNKNOWN Description: Simpleaudio Package ===================
