convert sound types

This commit is contained in:
Glenn Maynard
2004-05-11 20:32:55 +00:00
parent fc21403339
commit 9dfcb5b7e1
7 changed files with 23 additions and 23 deletions
@@ -109,7 +109,7 @@ void RageSound_Generic_Software::Mix( int16_t *buf, int frames, int64_t frameno,
/* Note that, until we call advance_read_pointer, we can safely write to p[0]. */
const int frames_to_read = min( frames_left, p[0]->frames_in_buffer );
mix.write( (Sint16*)p[0]->p, frames_to_read * channels, s.volume, got_frames*channels );
mix.write( p[0]->p, frames_to_read * channels, s.volume, got_frames*channels );
SOUNDMAN->CommitPlayingPosition( s.sound_id, frameno+got_frames, p[0]->position, frames_to_read );
@@ -133,7 +133,7 @@ void RageSound_Generic_Software::Mix( int16_t *buf, int frames, int64_t frameno,
}
memset( buf, 0, frames*bytes_per_frame );
mix.read( (Sint16*)buf );
mix.read( buf );
}