Ticket #419 (assigned defect)

Opened 2 months ago

Last modified 1 month ago

speex: use of static speex modes fails on Windows

Reported by: Matthias Assigned to: conrad (accepted)
Priority: normal Milestone:
Component: libfishsound Version:
Severity: normal Keywords:
Cc:

Description

Here's a problem with the speex support: There's a line like

/* XXX: set wb, nb, uwb modes */ /* These modes are declared const in speex 1.1.x, hence the explicit cast */ mode = (SpeexMode? *)&speex_wb_mode;

in speex.c in the trunk. This causes linker errors on windows. Please replace this with the following code:

/* XXX: set wb, nb, uwb modes */ /* These modes are declared const in speex 1.1.x, hence the explicit cast */ mode = (SpeexMode? *)speex_lib_get_mode(SPEEX_MODEID_WB);

It works for me, but I don't know whether it will work with speex < 1.2beta (that's the version I have installed) and whether it will work on an os != win32.

-Matthias

Change History

2008-10-23 03:34:44 changed by conrad

  • status changed from new to assigned.

Ok, I've backported a check for speex_lib_get_mode() from a different branch, and merged that into speex.c in trunk, in changeset:3732.

Please test that this works for you.

2008-10-23 03:35:13 changed by conrad

  • summary changed from speex to speex: use of static speex modes fails on Windows.