Home
last modified time | relevance | path

Searched refs:pcm_object (Results 1 – 3 of 3) sorted by relevance

/external/tinyalsa_new/tests/src/
Dpcm_out_test.cc43 PcmOutTest() : pcm_object(nullptr) {} in PcmOutTest()
47 pcm_object = pcm_open(kLoopbackCard, kLoopbackPlaybackDevice, PCM_OUT, &kDefaultConfig); in SetUp()
48 ASSERT_NE(pcm_object, nullptr); in SetUp()
49 ASSERT_TRUE(pcm_is_ready(pcm_object)); in SetUp()
53 ASSERT_EQ(pcm_close(pcm_object), 0); in TearDown()
72 pcm* pcm_object; member in tinyalsa::testing::PcmOutTest
76 ASSERT_GT(pcm_get_file_descriptor(pcm_object), 0); in TEST_F()
80 ASSERT_EQ(pcm_get_channels(pcm_object), kDefaultConfig.channels); in TEST_F()
84 ASSERT_EQ(pcm_get_rate(pcm_object), kDefaultConfig.rate); in TEST_F()
88 ASSERT_EQ(pcm_get_format(pcm_object), kDefaultConfig.format); in TEST_F()
[all …]
Dpcm_test.cc64 pcm *pcm_object = pcm_open(1000, 1000, PCM_OUT, &kDefaultConfig); in TEST() local
65 ASSERT_FALSE(pcm_is_ready(pcm_object)); in TEST()
66 ASSERT_EQ(pcm_close(pcm_object), 0); in TEST()
69 pcm_object = pcm_open(0, 0, PCM_OUT, &kDefaultConfig); in TEST()
70 ASSERT_TRUE(pcm_is_ready(pcm_object)); in TEST()
71 ASSERT_EQ(pcm_close(pcm_object), 0); in TEST()
73 pcm_object = pcm_open(0, 0, PCM_OUT | PCM_MMAP, &kDefaultConfig); in TEST()
74 ASSERT_TRUE(pcm_is_ready(pcm_object)); in TEST()
75 ASSERT_EQ(pcm_close(pcm_object), 0); in TEST()
77 pcm_object = pcm_open(0, 0, PCM_OUT | PCM_MMAP | PCM_NOIRQ, &kDefaultConfig); in TEST()
[all …]
Dpcm_in_test.cc43 PcmInTest() : pcm_object(nullptr) {} in PcmInTest()
47 pcm_object = pcm_open(kLoopbackCard, kLoopbackCaptureDevice, PCM_IN, &kDefaultConfig); in SetUp()
48 ASSERT_NE(pcm_object, nullptr); in SetUp()
49 ASSERT_TRUE(pcm_is_ready(pcm_object)); in SetUp()
53 ASSERT_EQ(pcm_close(pcm_object), 0); in TearDown()
72 pcm* pcm_object; member in tinyalsa::testing::PcmInTest
76 pcm_prepare(pcm_object); in TEST_F()
77 long delay = pcm_get_delay(pcm_object); in TEST_F()
85 size_t buffer_size = pcm_frames_to_bytes(pcm_object, kDefaultConfig.period_size); in TEST_F()
89 unsigned int frames = pcm_bytes_to_frames(pcm_object, buffer_size); in TEST_F()
[all …]