annotate base/PlayParameters.cpp @ 37:838652cc31e6

MacOS fixes, TonalChangeDetector added
author Martin Gasser
date Fri, 03 Mar 2006 16:32:45 +0000
parents a6ef94ecbe74
children 39ae3dee27b9
rev   line source
Chris@0 1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */
Chris@0 2
Chris@0 3 /*
Chris@0 4 A waveform viewer and audio annotation editor.
Chris@2 5 Chris Cannam, Queen Mary University of London, 2005-2006
Chris@0 6
Chris@0 7 This is experimental software. Not for distribution.
Chris@0 8 */
Chris@0 9
Chris@0 10 #include "PlayParameters.h"
Chris@0 11
Chris@29 12 #include <iostream>
Chris@29 13
Chris@0 14 void
Chris@0 15 PlayParameters::setPlayMuted(bool muted)
Chris@0 16 {
Chris@29 17 std::cerr << "PlayParameters: setPlayMuted(" << muted << ")" << std::endl;
Chris@0 18 m_playMuted = muted;
Chris@29 19 emit playMutedChanged(muted);
Chris@30 20 emit playAudibleChanged(!muted);
Chris@0 21 emit playParametersChanged();
Chris@0 22 }
Chris@0 23
Chris@29 24 void
Chris@29 25 PlayParameters::setPlayAudible(bool audible)
Chris@29 26 {
Chris@30 27 std::cerr << "PlayParameters(" << this << "): setPlayAudible(" << audible << ")" << std::endl;
Chris@29 28 setPlayMuted(!audible);
Chris@29 29 }
Chris@0 30
Chris@0 31 void
Chris@0 32 PlayParameters::setPlayPan(float pan)
Chris@0 33 {
Chris@0 34 m_playPan = pan;
Chris@29 35 emit playPanChanged(pan);
Chris@0 36 emit playParametersChanged();
Chris@0 37 }
Chris@0 38
Chris@0 39 void
Chris@0 40 PlayParameters::setPlayGain(float gain)
Chris@0 41 {
Chris@0 42 m_playGain = gain;
Chris@29 43 emit playGainChanged(gain);
Chris@0 44 emit playParametersChanged();
Chris@0 45 }
Chris@0 46
Chris@0 47