Closed abcminiuser closed 10 years ago
Bug report from a user. The LowLevel AudioOutput demo fails to set the requested audio parameters:
# aplay -v -D front:CARD=Demo,DEV=0 /usr/share/sounds/alsa/test.wav Playing WAVE '/usr/share/sounds/alsa/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo aplay: set_params:1297: Unable to install hw params: ACCESS: RW_INTERLEAVED FORMAT: S16_LE SUBFORMAT: STD SAMPLE_BITS: 16 FRAME_BITS: 32 CHANNELS: 2 RATE: 44100 PERIOD_TIME: (125011 125012) PERIOD_SIZE: 5513 PERIOD_BYTES: 22052 PERIODS: (3 4) BUFFER_TIME: 500000 BUFFER_SIZE: 22050 BUFFER_BYTES: 88200 TICK_TIME: 0
The ClassDriver, on the contrary, says:
# aplay -v -D front:CARD=Demo,DEV=0 /usr/share/sounds/alsa/test.wav Playing WAVE '/usr/share/sounds/alsa/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Hardware PCM card 3 'LUFA Audio Out Demo' device 0 subdevice 0 Its setup is: stream : PLAYBACK access : RW_INTERLEAVED format : S16_LE subformat : STD channels : 2 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 22050 period_size : 5513 period_time : 125011 tstamp_mode : NONE period_step : 1 avail_min : 5513 period_event : 0 start_threshold : 22050 stop_threshold : 22050 silence_threshold: 0 silence_size : 0 boundary : 6206523236469964800 appl_ptr : 0 hw_ptr : 0
Fixed in 2d00107efed34a31792a4a4c2989cca738ef1dc5.
Bug report from a user. The LowLevel AudioOutput demo fails to set the requested audio parameters:
The ClassDriver, on the contrary, says: