auich: Fix pointer arithmetic warning by adding a cast.
This commit is contained in:
@@ -246,8 +246,8 @@ auich_stream_get_nth_buffer(auich_stream *stream, uint8 chan, uint8 buf,
|
|||||||
sample_size = stream->b16 + 1;
|
sample_size = stream->b16 + 1;
|
||||||
frame_size = sample_size * stream->channels;
|
frame_size = sample_size * stream->channels;
|
||||||
|
|
||||||
*buffer = stream->buffer->log_base + (buf * stream->bufframes * frame_size)
|
*buffer = (char*)stream->buffer->log_base
|
||||||
+ chan * sample_size;
|
+ (buf * stream->bufframes * frame_size) + chan * sample_size;
|
||||||
*stride = frame_size;
|
*stride = frame_size;
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user