~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/src/audio/recordable.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
Recordable::Recordable() : recAudio_(), recorder_(&recAudio_, Manager::instance().getMainBuffer())
35
35
{
36
36
    DEBUG("Set recording options: %s", Manager::instance().audioPreference.getRecordPath().c_str());
37
 
    recAudio_.setRecordingOptions(8000, Manager::instance().audioPreference.getRecordPath());
 
37
    recAudio_.setRecordingOptions(AudioFormat::MONO, Manager::instance().audioPreference.getRecordPath());
38
38
}
39
39
 
40
40
Recordable::~Recordable()
53
53
    return recAudio_.getFilename();
54
54
}
55
55
 
56
 
void Recordable::setRecordingSmplRate(int smplRate)
 
56
void Recordable::setRecordingFormat(AudioFormat format)
57
57
{
58
 
    recAudio_.setSndSamplingRate(smplRate);
 
58
    recAudio_.setSndFormat(format);
59
59
}