diff options
author | Dylan Reid <dgreid@chromium.org> | 2012-08-05 18:34:35 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-08-08 14:58:16 -0700 |
commit | 2d4c04f8b28f2a237151cd34038acc8b5173bbe5 (patch) | |
tree | 63a488c2c2628ca596d6857ac801df9ca891ff40 /cras/src/tests/mix_unittest.cc | |
parent | 06c004a4a5f7956f93720fcbdd333b801e94ae12 (diff) | |
download | adhd-2d4c04f8b28f2a237151cd34038acc8b5173bbe5.tar.gz |
CRAS: shm - Add getters and setters.
Get and Set callback_pending and frame_bytes through inline functions
instead of directly. This will make it easier to move these members to
another struct in a future change.
BUG=chromium-os:33123
TEST=shm and alsa_io unittests still pass, play and record audio with
aplay.
Change-Id: Ia976b6c2c2706ca069b8ce273b9d198704b1082c
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/29286
Diffstat (limited to 'cras/src/tests/mix_unittest.cc')
-rw-r--r-- | cras/src/tests/mix_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cras/src/tests/mix_unittest.cc b/cras/src/tests/mix_unittest.cc index 657b7c42..f8d4ac3e 100644 --- a/cras/src/tests/mix_unittest.cc +++ b/cras/src/tests/mix_unittest.cc @@ -29,7 +29,7 @@ class MixTestSuite : public testing::Test{ shm_ = (struct cras_audio_shm_area *)calloc(1, sizeof(struct cras_audio_shm_area) + kBufferFrames * 4); - shm_->frame_bytes = 4; + cras_shm_set_frame_bytes(shm_, 4); buf = (int16_t *)shm_->samples; for (size_t i = 0; i < kBufferFrames * 2; i++) { |