View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000986 | FSSCP | sound | public | 2006-07-13 11:55 | 2006-07-14 14:45 |
| Reporter | sefi | Assigned To | |||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | open | ||
| Summary | 0000986: Invalid conversion in sound/ds.cpp | ||||
| Description | That's the error reported by gcc: sound/ds.cpp:1784: error: invalid conversion from 'const char*' to 'const ALubyte*' The fix is simple: Just use reinterpret_cast<const ALubyte*>(expr). | ||||
| Tags | No tags attached. | ||||
|
|
Which tarball/CVS version are you using. The line number doesn't match up with current CVS, and if it's an old tarball then the problem has already been fixed. |
|
|
Hi taylor, of course I'm using the latest cvs version, otherwise I would'nt post the bug at all. The line is as follows (code/sound/ds.cpp 0001784): AL_play_position = alIsExtensionPresent( "AL_LOKI_play_position" ); change to: AL_play_position = alIsExtensionPresent( reinterpret_cast<const ALubyte*>("AL_LOKI_play_position")); |
|
|
The type depends on which version of OpenAL you are using. You must be using OpenAL 1.0, as your change wouldn't work with 1.1 (in 1.0 it's unsigned, in 1.1 it's signed). The current code is tailored to OpenAL 1.1, and it will be that way until I finish with the new sound code. |
|
|
Using openal-0.0.8 fixes the problem. As it seems the version number you mentioned is a Windows version number only. |
|
|
OpenAL 1.0/1.1 is the API version. I don't really have a reason for the obscure version numbering on the Linux packages, that's just the way it is I guess. This should be handled properly when I get correct multi-API sound handling done. Until then this isn't really considered a bug, so... Closered. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2006-07-13 11:55 | sefi | New Issue | |
| 2006-07-13 16:00 | taylor | Note Added: 0006158 | |
| 2006-07-13 16:49 | sefi | Note Added: 0006159 | |
| 2006-07-13 17:43 | taylor | Note Added: 0006160 | |
| 2006-07-14 07:25 | sefi | Note Added: 0006165 | |
| 2006-07-14 14:45 | taylor | Status | new => closed |
| 2006-07-14 14:45 | taylor | Note Added: 0006166 |