Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
4bb5100f
Commit
4bb5100f
authored
Sep 11, 2013
by
Tristan Matthews
Browse files
* #29271: tests: fix volume
parent
2be75dcc
Changes
2
Hide whitespace changes
Inline
Side-by-side
daemon/test/audiolayertest.cpp
View file @
4bb5100f
...
...
@@ -57,8 +57,8 @@ void AudioLayerTest::testAudioLayerConfig()
CPPUNIT_ASSERT
(
Manager
::
instance
().
audioPreference
.
getPulseDeviceRecord
()
==
"alsa_input.pci-0000_00_1b.0.analog-stereo"
);
CPPUNIT_ASSERT
(
Manager
::
instance
().
audioPreference
.
getPulseDeviceRingtone
()
==
"alsa_output.pci-0000_00_1b.0.analog-stereo"
);
CPPUNIT_ASSERT
(
Manager
::
instance
().
audioPreference
.
getVolumemic
()
==
1
0
0
);
CPPUNIT_ASSERT
(
Manager
::
instance
().
audioPreference
.
getVolumespkr
()
==
1
0
0
);
CPPUNIT_ASSERT
(
Manager
::
instance
().
audioPreference
.
getVolumemic
()
==
1
.
0
);
CPPUNIT_ASSERT
(
Manager
::
instance
().
audioPreference
.
getVolumespkr
()
==
1
.
0
);
// TODO: Fix tests
//CPPUNIT_ASSERT ( (int) Manager::instance().getAudioDriver()->getSampleRate() == sampling_rate);
...
...
daemon/test/resamplertest.cpp
View file @
4bb5100f
...
...
@@ -53,9 +53,11 @@ namespace {
template
<
typename
T
>
void
print_buffer
(
T
&
buffer
)
{
#ifdef VERBOSE
std
::
copy
(
buffer
.
begin
(),
buffer
.
end
(),
std
::
ostream_iterator
<
SFLAudioSample
>
(
std
::
cout
,
", "
));
std
::
cout
<<
std
::
endl
;
#endif
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment