[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gap-dev-discuss] Cynthiune - endianness

From: Riccardo Mottola
Subject: Re: [Gap-dev-discuss] Cynthiune - endianness
Date: Sun, 13 May 2012 19:13:49 +0200
User-agent: Mozilla/5.0 (X11; NetBSD i386; rv:12.0) Gecko/20120510 Thunderbird/12.0


On 05/13/12 01:49, Philippe Roussel wrote:

I had this problem with the AO backend : -openDevice is not called for
every song, even when the playback rate or others parameters change,
only -prepareDeviceWithChannels:andRate:withEndianness: is called.

But for AO and apparently ALSA, some parameters are passed when opening
the device, that's why in AO's -prepareDeviceWithChannels I close and
reopen the device. I think the same thing should be done with ALSA.

Ultimately the nice thing to do would be to reorganise the Player to
close and reopen the device when some parameter changes but the code in
there is kind of hairy and I didn't want to touch it.

I'll try to test cvs head tomorrow.

You might be looking in the right direction. I obviously added a check where rate and channles change, also endianness change and should reinit the device, but as you write, some stuff is set only on open. Perhaps it can be set later, I need to investigate that.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]