[pulseaudio-tickets] [PulseAudio] #343: bsnes does not play well with pulseaudio
PulseAudio
trac-noreply at tango.0pointer.de
Wed Dec 17 08:57:32 PST 2008
#343: bsnes does not play well with pulseaudio
-----------------------+----------------------------------------------------
Reporter: belegdol | Owner: lennart
Type: defect | Status: new
Priority: normal | Milestone:
Component: daemon | Severity: normal
Resolution: | Keywords:
-----------------------+----------------------------------------------------
Comment (by belegdol):
As on the latest version (0.038), bsnes got itself a native Pulseaudio
driver. It works quite well, but it causes the emulation to stop for a
moment every few moments. Such behavour is also present in case openal →
sdl → pa path is used, but it is a little less visible then.
Uptream claims that the PA driver is extremely simple, and should work
well:
{{{
device.spec.format = PA_SAMPLE_S16LE;
device.spec.channels = 2;
device.spec.rate = settings.frequency;
device.handle = pa_simple_new(
0, //default server
"ruby::pulseaudio", //application name
PA_STREAM_PLAYBACK, //direction
0, //default device
"audio", //stream description
&device.spec, //sample format
0, //default channel map
0, //default buffering attributes
&error //error code
);
//...
pa_simple_write(device.handle, (const void*)buffer.data, buffer.offset
* sizeof(uint32_t), &error);
}}}
Any ideas what goes wrong here? This is with PA 0.9.13 on Fedora 10
x86_64.
--
Ticket URL: <http://pulseaudio.org/ticket/343#comment:1>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server
More information about the pulseaudio-bugs
mailing list