File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ int alsa_pcm_open(
177
177
178
178
/* Start the transfer when three requested periods have been written (or
179
179
* when the buffer is full if it holds less than three requested periods. */
180
- snd_pcm_uframes_t start_threshold = (period_time * 3 / 1000 ) * (rate / 1000 );
180
+ snd_pcm_uframes_t start_threshold = (( snd_pcm_uframes_t ) period_time * 3 / 1000 ) * (rate / 1000 );
181
181
if (start_threshold > buffer_size )
182
182
start_threshold = buffer_size ;
183
183
Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ static void *io_worker_routine(struct io_worker *w) {
471
471
* This will be later be revised if necessary to match the actual ALSA
472
472
* start threshold when the ALSA PCM is opened. */
473
473
if (ffb_init (& read_buffer ,
474
- (pcm_period_time * 3 / 1000 ) * (w -> ba_pcm .rate * w -> ba_pcm .channels / 1000 ),
474
+ (( size_t ) pcm_period_time * 3 / 1000 ) * (w -> ba_pcm .rate * w -> ba_pcm .channels / 1000 ),
475
475
pcm_format_size ) == -1 ) {
476
476
error ("Couldn't create PCM buffer: %s" , strerror (errno ));
477
477
goto fail ;
You can’t perform that action at this time.
0 commit comments