Difference between revisions of "Modular Backends"

Jump to navigation Jump to search
395 bytes added ,  15:06, 7 June 2010
no edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| border="0" cellpadding="2" cellspacing="1" align="right" style="margin:1em; background:#FF0000; width:40%"
|- align="center"
| '''THIS PAGE IS OUT OF DATE'''
|- style="margin-left:1em; background:#ffffff;"
|- style="background:#ffffff"
|ScummVM has changed considerably since this page was created, rendering most of its content obsolete. It is only preserved here for reference purposes.
|}
== Introduction ==
== Introduction ==
We are considering to change our backends to use a more modular approach to things. This would be reflect in both the implementations and also in the interface (i.e. OSystem).
We are considering to change our backends to use a more modular approach to things. This would be reflect in both the implementations and also in the interface (i.e. OSystem).
Line 9: Line 17:


=== 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

Navigation menu