Module: sems Branch: master Commit: c7b3b1e3c34a425656c4ea0954cfec4dabc62e4b URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=c7b3b1e3c34a425656c4ea0954cfec4dabc62e4b
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Tue Mar 13 23:34:14 2012 +0100 b/f: make AmAudioFormat::rate unsigned --- core/AmAudio.cpp | 2 +- core/AmAudio.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/AmAudio.cpp b/core/AmAudio.cpp index 615f548..b84b90d 100644 --- a/core/AmAudio.cpp +++ b/core/AmAudio.cpp @@ -51,7 +51,7 @@ struct CodecContainer long h_codec; }; -AmAudioFormat::AmAudioFormat(int codec_id, int rate) +AmAudioFormat::AmAudioFormat(int codec_id, unsigned int rate) : channels(1), codec_id(codec_id), rate(rate), diff --git a/core/AmAudio.h b/core/AmAudio.h index fcdb82b..3fa847d 100644 --- a/core/AmAudio.h +++ b/core/AmAudio.h @@ -141,7 +141,7 @@ public: string sdp_format_parameters; AmAudioFormat(int codec_id = CODEC_PCM16, - int rate = SYSTEM_SAMPLECLOCK_RATE); + unsigned int rate = SYSTEM_SAMPLECLOCK_RATE); virtual ~AmAudioFormat(); @@ -150,7 +150,7 @@ public: void resetCodec(); /** return the sampling rate */ - int getRate() { return rate; } + unsigned int getRate() { return rate; } /** set the sampling rate */ void setRate(unsigned int sample_rate); @@ -172,7 +172,7 @@ protected: int codec_id; /** Sampling rate. */ - int rate; + unsigned int rate; /** ==0 if not yet initialized. */ amci_codec_t* codec; _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
