forked from auracaster/pyalsaaudio
Get rid of warnings, adjust CHANGES
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user