[issue1566331] Bad behaviour in .obuf*

2021-10-20 Thread Christian Heimes


Christian Heimes  added the comment:

Does the issue still affect supported Python and Linux versions? Majority of 
distros are using pipewire or pulseaudio these days.

--
nosy: +christian.heimes
status: open -> pending
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1566331] Bad behaviour in .obuf*

2017-10-11 Thread Richard Aplin

Richard Aplin  added the comment:

Hi there yes this is very much an issue on Arm linux (e.g. Armbian). Calling 
any function that triggers a call to _ssize(..) - a function which is clearly 
intended to have no side-effects - instead resets the number of channels (and 
sample format?) by calling IOCTLs "SNDCTL_DSP_SETFMT" and "SNDCTL_DSP_CHANNELS" 
with arguments of zero as a way to query the current values. 

This doesn't work on many drivers; e.g. they take '0' as meaning 'mono' and 
switch to one channel. 

To repro:
import ossaudiodev
self.dsp=ossaudiodev.open("/dev/dsp1","w")
self.dsp.setfmt(ossaudiodev.AFMT_S16_LE)
self.dsp.channels(2)  #<

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com