Hi-

A little embarrassed that my difficulty seems so close to this post:

<http://www.mail-archive.com/[email protected]/msg03091.html 
 >

but I'm spinning my wheels.

I have a source file:

- - -

USING: alien alien.syntax alien.libraries alien.c-types ;
IN: sndfile

C-STRUCT: SF_INFO
     { "longlong" "frames" }
     { "int" "samplerate" }
     { "int" "channels" }
     { "int" "format" }
     { "int" "sections" }
     { "int" "seekable" } ;

<< "libsndfile" "libsndfile.dylib" "cdecl" add-library >>

LIBRARY: libsndfile

FUNCTION: int* sf_open ( char* path, int mode, SF_INFO* sfinfo ) ;

: sndfile-open ( path mode sfinfo* -- sndfile* )
     sf_open ;

- - -

And I've been trying to open a sound file from the OSX ui-listener:

( scratchpad ) Loading resource:work/sndfile/sndfile.factor
USE: sndfile
( scratchpad ) "~/Desktop/freq-sample-fjenie16.aif"

--- Data stack:
"~/Desktop/freq-sample-fjenie16.aif"
( scratchpad ) HEX: 10

--- Data stack:
"~/Desktop/freq-sample-fjenie16.aif"
16
( scratchpad ) Command: restart
1: Note:
Added "alien.c-types" vocabulary to search path
"SF_INFO" <c-object>

--- Data stack:
"~/Desktop/freq-sample-fjenie16.aif"
16
B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ~17 more~ }
( scratchpad ) sndfile-open

--- Data stack:
"~/Desktop/freq-sample-fjenie16.aif"
16
B{ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ~17 more~ }
( scratchpad )

I get the same: "The image refers to a library or symbol that was not  
found at load time."

I wonder also whether I've got an issue with 64-bit Factor and 32-bit  
libsndfile.dylib, but I thought I might get an error that more clearly  
pointed to that issue.

Thanks in advance for any help,

Charles



------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to