Hello,

The wengophone-2.0 branch is not able to play wav files under MacOS X 10.4.

ktrace output shows that the file name of the wav file gets corrupted, and the result is a "file not found error". This happens when converting from C string to NSString in MacSound.cpp. Forcing the encoding to NSASCIIStringEncoding solves the problem.

Please find the simple patch below.


Thanks

Ramy


--- libs/sound/src/mac/MacSound.cpp     (revision 8687)

+++ libs/sound/src/mac/MacSound.cpp     (working copy)
@@ -85,7 +85,7 @@
       NSString * pathName = NULL;
       const char * fname = filename.c_str();

-       pathName = [NSString stringWithCString:fname];
+ pathName = [NSString stringWithCString:fname encoding:NSASCIIStringEncoding]; _macSoundObjCPrivate = [[MacSoundObjC alloc] initWithFilename:pathName andMacSoundInstance:this];

       _mustReleaseAtEnd = false;

_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to