SDL_mixer

"smallhairytroll" <[email protected]> Mon, 23 Jun 2003 07:48:21 -0000
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
I have defined all FFI bindings for SDL_mixer.

"SDL_mixer is a sample multi-channel audio mixer library. 
It supports any number of simultaneously playing channels of 16 bit 
stereo audio, plus a single channel of music, mixed by the popular 
MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries"

However currently I can't upload the bindings as they depend on 
various updates I have made to the CCL C-header parser.

I haven't been able to run the FFI definitions through transcribe-
file as it chokes as soon as a type is encountered that is defined 
external to the C-TYPES package.

Am I defining my packages correctly ? I have also tried this... 

(require :windef)
(make-package "SDL" :use '("COMMON-LISP" "C-TYPES" "WIN32"))
(in-package :SDL)

... but transcribe-file still returns an error.




(require :windef)
(require :sdl)
(in-package :win)

typedef struct {
	int allocated;
	Uint8 *abuf;
	Uint32 alen;
	Uint8 volume;		/* Per-sample volume, 0-128 */
} Mix_Chunk;

(ct:transcribe-file "SDL_mixer_h.lisp" "SDL_mixer.lisp")
;;; An error occurred in function DETERMINE-C-TYPE-SIZE:
;;; Error: No ECASE clause matching the key


I get a similar error from transcribe-file, in my SDL definitions 
when a type is encountered that is defined in the :WINDEF package...

(require :windef)
(in-package :win)

#! (:export t :library "SDL" :ignore "DECLSPEC" :pack 4 )
struct SDL_SysWMmsg {
	SDL_version version;
	HWND hwnd;			/* The window for the 
message */
	UINT msg;			/* The type of message */
	WPARAM wParam;			/* WORD message parameter */
	LPARAM lParam;			/* LONG message parameter */
};
!#

-Luke


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchNetworking.com to access over 500 white papers.
Get instant access at SearchNetworking.com Today
http://us.click.yahoo.com/8lAzoD/OLNGAA/witMAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/