Open main menu

Difference between revisions of "Modular Backends"

1 byte removed ,  12:44, 24 June 2006
m
Line 9: Line 9:


=== X11 backend ===
=== X11 backend ===
The X11 backend directly uses the X11 API to implement graphics output for ScummVM on any system that supports X11. But of course, being a backend, it also needs to provide a way to output audio. X11 doesn't offer an API for that (AFAIK, at least), so it has to use something else. Sadly, this limits its portability. Right now, it has code for any system that supports <code>sys/soundcard.h</code> resp. <code>linux/soundcard.h</code> (I think that means OSS,
The X11 backend directly uses the X11 API to implement graphics output for ScummVM on any system that supports X11. But of course, being a backend, it also needs to provide a way to output audio. X11 doesn't offer an API for that (AFAIK, at least), so it has to use something else. Sadly, this limits its portability. Right now, it has code for any system that supports <code>sys/soundcard.h</code> resp. <code>linux/soundcard.h</code> (I think that means OSS)


With the modular system approach, we'd split it into a "graphics & input" module which was implemented based on X11, and a "sound" module implemented based on OSS.  
With the modular system approach, we'd split it into a "graphics & input" module which was implemented based on X11, and a "sound" module implemented based on OSS.  
1,079

edits