Hi , 
I've tried to use the libcanberra 0.10 library against OSS 4.1rc1 and could not 
get the test-canberra to produce any sound. After a debugging session, i found 
the following line in oss.c (open_oss() ) 

    ca_return_val_if_fail(ca_sound_file_get_nchannels(out->file) > 2, 
CA_ERROR_NOTSUPPORTED);

and changed it into:

    ca_return_val_if_fail(ca_sound_file_get_nchannels(out->file) <= 2, 
CA_ERROR_NOTSUPPORTED);

As the Gnome event sounds are mono or stereo sound files the assertion always 
failed. I think the aim of this code line is to limit the supported sound files 
to stereo or mono for OSS . Hence this change. 
-- 
gr.
Geert


Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
_______________________________________________
libcanberra-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/libcanberra-discuss

Reply via email to