[Gambas-devel] sdl-cdrom audio componant.
Laurent Carlier
lordheavy at ...141...
Tue Jan 11 00:44:40 CET 2005
I've started a cdrom-audio sdl component, it will be release soon,
here is the API (in work), make suggest !
GB_DESC Cquerycdrom[] =
{
GB_DECLARE("CDRoms", 0), GB_VIRTUAL_CLASS(),
GB_STATIC_METHOD("_get", "s", CDROMS_get, "(Index)i"),
GB_STATIC_PROPERTY_READ("Count", "i", CDROMS_count),
GB_END_DECLARE
};
GB_DESC Ctrack[] =
{
GB_DECLARE(".Track",0), GB_VIRTUAL_CLASS(),
GB_METHOD("Play", NULL, TRACK_play, "(track)i"),
GB_PROPERTY_READ("Current", "i", TRACK_current),
GB_END_DECLARE
};
GB_DESC Ctracks[] =
{
GB_DECLARE(".Tracks",0), GB_VIRTUAL_CLASS(),
GB_METHOD("_get", "s", TRACKS_get, "(Index)i"),
GB_PROPERTY_READ("Count", "i", TRACKS_count),
GB_END_DECLARE
};
GB_DESC Ccdrom[] =
{
GB_DECLARE("CDRom", sizeof(CCDROM)),
GB_METHOD("_new", NULL, CDROM_new, "(Name)s"),
GB_METHOD("_free", NULL, CDROM_free, NULL),
GB_METHOD("Eject", NULL, CDROM_eject, NULL),
GB_METHOD("Stop", NULL, CDROM_stop, NULL),
GB_METHOD("Pause", NULL, CDROM_pause, NULL),
GB_METHOD("Resume", NULL, CDROM_resume, NULL),
GB_PROPERTY_READ("Empty", "b", CDROM_empty),
GB_PROPERTY_READ("Paused", "b", CDROM_paused),
GB_PROPERTY_READ("Playing", "b", CDROM_playing),
GB_PROPERTY_READ("Stopped", "b", CDROM_stopped),
GB_PROPERTY_SELF("Track", ".Track"),
GB_PROPERTY_SELF("Tracks", ".Tracks"),
GB_END_DECLARE
};
Regards,
--
Laurent Carlier
More information about the Devel
mailing list