Get rid of warnings, adjust CHANGES

This commit is contained in:
Lars Immisch
2020-04-01 22:47:11 +02:00
parent a4c4c7cb62
commit 046e7c4e87
2 changed files with 5 additions and 3 deletions

View File

@@ -8,7 +8,9 @@ Version 0.8.6:
- 'getratebounds()' returns the device's official minimum and maximum supported
sample rates as a tuple, e.g. '(4000, 48000)'.
(contributed by @jdstmporter)
(#82 contributed by @jdstmporter)
- Prevent hang on close after capturing audio (#80 contributed by @daym)
Version 0.8.5:
- Return an empty string/bytestring when 'read()' detects an

View File

@@ -653,7 +653,7 @@ alsapcm_getformats(alsapcm_t *self, PyObject *args)
}
PyObject *fmts = PyDict_New();
for (int i = 0; i < ARRAY_SIZE(ALSAFormats); ++i) {
for (size_t i = 0; i < ARRAY_SIZE(ALSAFormats); ++i) {
snd_pcm_format_t format = ALSAFormats[i];
if (!snd_pcm_hw_params_test_format(pcm, params, format)) {
const char *name = snd_pcm_format_name(format);
@@ -744,7 +744,7 @@ alsapcm_getrates(alsapcm_t *self, PyObject *args)
}
else {
PyObject *rates=PyList_New(0);
for(int i=0; i<ARRAY_SIZE(ALSARates); i++) {
for (size_t i=0; i<ARRAY_SIZE(ALSARates); i++) {
unsigned rate = ALSARates[i];
if (!snd_pcm_hw_params_test_rate(pcm, params, rate, 0)) {
PyObject *prate=PyLong_FromLong(rate);