Skip to content

Commit

Permalink
Merge pull request #8 from petermoz/fix-32bit
Browse files Browse the repository at this point in the history
alsa: fix some issues with 32-bit systems
  • Loading branch information
mrDIMAS authored Jul 25, 2024
2 parents c6f409a + 64c1e5c commit ddd6a70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/alsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl AudioOutputDevice for AlsaSoundDevice {
hw_params,
SND_PCM_FORMAT_S16_LE,
))?;
let mut exact_rate = params.sample_rate as u32;
let mut exact_rate = params.sample_rate as ::std::os::raw::c_uint;
check(snd_pcm_hw_params_set_rate_near(
playback_device,
hw_params,
Expand All @@ -82,9 +82,9 @@ impl AudioOutputDevice for AlsaSoundDevice {
check(snd_pcm_hw_params_set_channels(
playback_device,
hw_params,
params.channels_count as u32,
params.channels_count as ::std::os::raw::c_uint,
))?;
let mut _exact_period = frame_count as u64;
let mut _exact_period = frame_count as snd_pcm_uframes_t;
let mut _direction = 0;
check(snd_pcm_hw_params_set_period_size_near(
playback_device,
Expand Down

0 comments on commit ddd6a70

Please sign in to comment.