Jeremy Ardley wrote: > I have some code that works on my dev machine but breaks on my target > machine. The essential differences are different libasound versions > and different audio devices. > > if ( ( err = snd_pcm_hw_params_set_buffer_size ( playback_handle, hw_params, bufout ) ) < 0 ) > { > ERR ( "cda_AlsaManager::_setupPlayback cannot set buffer size (%s)\n", > snd_strerror ( err ) ); > } Do you actually require the buffer size to have this specific value? If not, use snd_pcm_hw_params_set_buffer_size_near(). (They are called "hardware parameters" because they are dependent on the hardware.) > setting buffer size 882 20 ms is quite low, but should be possible unless you have set other parameters to values that prevent this. Regards, Clemens ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user