2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FMediaAudioStreamInfoImpl.h
20 * @brief This is the header file for the %AudioStreamInfoImpl class.
22 * This header file contains the declarations of the %AudioStreamInfoImpl class.
25 #ifndef _FMEDIA_INTERNAL_AUDIOSTREAMINFO_IMPL_H_
26 #define _FMEDIA_INTERNAL_AUDIOSTREAMINFO_IMPL_H_
28 #include <FBaseObject.h>
29 #include <FMediaAudioTypes.h>
30 #include <FMediaTypes.h>
32 namespace Tizen { namespace Media
35 class AudioStreamInfo;
37 // @class AudioStreamInfoImpl
38 // @brief This class provides the methods to get audio stream information.
40 // This class provides the methods to get audio stream information, such as codec type, bit rate, sample rate, and channel count.
43 class _AudioStreamInfoImpl
44 : public Tizen::Base::Object
48 // This is the destructor for this class.
51 virtual ~_AudioStreamInfoImpl(void);
55 // Gets the encoding type of an audio stream.
57 // @return The value of the encoding type
60 CodecType GetCodecType(void) const;
63 // Gets the bit rate of an audio.
65 // @return The audio bit rate in bits per second (bps)
67 int GetBitRate(void) const;
70 // Gets the sampling rate of an audio.
72 // @return The audio sampling rate in hertz (Hz)
74 int GetSampleRate(void) const;
77 // Gets the audio channel of an audio.
79 // @return The audio channel type
81 AudioChannelType GetChannelType(void) const;
84 // @see @ref Tizen::Media::AudioStreamInfo::Equals()
86 virtual bool Equals(const Object& obj) const;
89 // @see @ref Tizen::Media::AudioStreamInfo::GetHashCode()
91 virtual int GetHashCode(void) const;
95 // Initializes this instance of AudioStreamInfo with the specified parameters.
97 // @param [in] codecType The value of encoding type @n
98 // @param [in] bitrate The audio bit rate in bits per second (bps) @n
99 // @param [in] sampleRate The audio sample rate in hertz (Hz) @n
100 // @param [in] channel The audio channel type @n
102 _AudioStreamInfoImpl(CodecType codecType, int bitrate, int sampleRate, AudioChannelType channel);
105 _AudioStreamInfoImpl(const _AudioStreamInfoImpl& rhs);
106 _AudioStreamInfoImpl& operator =(const _AudioStreamInfoImpl& rhs);
109 CodecType __codecType;
112 AudioChannelType __channel;
113 friend class AudioStreamInfo;