Commit 4bb5100f authored by Tristan Matthews's avatar Tristan Matthews

* #29271: tests: fix volume

parent 2be75dcc
......@@ -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() == 100);
CPPUNIT_ASSERT(Manager::instance().audioPreference.getVolumespkr() == 100);
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);
......
......@@ -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
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment