summaryrefslogtreecommitdiffstats
path: root/client/x11/record.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/x11/record.cpp')
-rw-r--r--client/x11/record.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/x11/record.cpp b/client/x11/record.cpp
index 32c0af7f..6bc9f604 100644
--- a/client/x11/record.cpp
+++ b/client/x11/record.cpp
@@ -46,7 +46,7 @@ void WaveRecorder::EventTrigger::on_event()
}
WaveRecorder::WaveRecorder(Platform::RecordClient& client,
- uint32_t sampels_per_sec,
+ uint32_t samples_per_sec,
uint32_t bits_per_sample,
uint32_t channels,
uint32_t frame_size)
@@ -60,7 +60,7 @@ WaveRecorder::WaveRecorder(Platform::RecordClient& client,
, _frame_end (_frame + _sample_bytes * frame_size)
, _event_trigger (NULL)
{
- if (!init(sampels_per_sec, bits_per_sample, channels, frame_size)) {
+ if (!init(samples_per_sec, bits_per_sample, channels, frame_size)) {
cleanup();
THROW("failed");
}
@@ -92,7 +92,7 @@ void WaveRecorder::cleanup()
}
}
-bool WaveRecorder::init(uint32_t sampels_per_sec,
+bool WaveRecorder::init(uint32_t samples_per_sec,
uint32_t bits_per_sample,
uint32_t channels,
uint32_t frame_size)
@@ -144,7 +144,7 @@ bool WaveRecorder::init(uint32_t sampels_per_sec,
return false;
}
- if ((err = snd_pcm_hw_params_set_rate(_pcm, _hw_params, sampels_per_sec, 0)) < 0) {
+ if ((err = snd_pcm_hw_params_set_rate(_pcm, _hw_params, samples_per_sec, 0)) < 0) {
LOG_ERROR("cannot set sample rate %s", snd_strerror(err));
return false;
}
@@ -160,7 +160,7 @@ bool WaveRecorder::init(uint32_t sampels_per_sec,
}
int direction = 0;
- snd_pcm_uframes_t buffer_size = (sampels_per_sec * 160 / 1000) / frame_size * frame_size;
+ snd_pcm_uframes_t buffer_size = (samples_per_sec * 160 / 1000) / frame_size * frame_size;
if ((err = snd_pcm_hw_params_set_buffer_size_near(_pcm, _hw_params, &buffer_size)) < 0) {
LOG_ERROR("cannot set buffer size %s", snd_strerror(err));