mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 07:07:10 +00:00
CGE: Preserve const in cast.
This commit is contained in:
parent
9a94a239b8
commit
a9f002897e
@ -45,7 +45,7 @@ namespace CGE {
|
||||
|
||||
// sample info
|
||||
struct SmpInfo {
|
||||
uint8 *_saddr; // address
|
||||
const uint8 *_saddr; // address
|
||||
uint16 _slen; // length
|
||||
uint16 _span; // left/right pan (0-15)
|
||||
int _sflag; // flag
|
||||
|
@ -61,7 +61,7 @@ void Sound::open() {
|
||||
void Sound::play(DataCk *wav, int pan, int cnt) {
|
||||
if (wav) {
|
||||
stop();
|
||||
_smpinf._saddr = (uint8 *) &*(wav->addr());
|
||||
_smpinf._saddr = &*(wav->addr());
|
||||
_smpinf._slen = (uint16)wav->size();
|
||||
_smpinf._span = pan;
|
||||
_smpinf._sflag = cnt;
|
||||
|
Loading…
Reference in New Issue
Block a user