View Issue Details

IDProjectCategoryView StatusLast Update
0000986FSSCPsoundpublic2006-07-14 14:45
Reportersefi Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionopen 
Summary0000986: Invalid conversion in sound/ds.cpp
DescriptionThat'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).
TagsNo tags attached.

Activities

taylor

2006-07-13 16:00

administrator   ~0006158

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.

sefi

2006-07-13 16:49

reporter   ~0006159

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"));

taylor

2006-07-13 17:43

administrator   ~0006160

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.

sefi

2006-07-14 07:25

reporter   ~0006165

Using openal-0.0.8 fixes the problem. As it seems the version number you mentioned is a Windows version number only.

taylor

2006-07-14 14:45

administrator   ~0006166

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.

Issue History

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