⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 galleryresourcesoundmetadatareader.class.php

📁 一个用PHP编写的
💻 PHP
字号:
<?php	lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourcebasemetadatareader.class.php" );	/**	 * \ingroup Gallery	 *     * methods for fetching metadata from sound resources     */    class GalleryResourceSoundMetadataReader extends GalleryResourceBaseMetadataReader    {    	function GalleryResourceSoundMetadataReader( $resource )        {        	$this->GalleryResourceBaseMetadataReader( $resource );        }		/**		 * @return the number of channels of the audio file		 */        function getChannels()        {        	return $this->_metadata["audio"]["channels"];        }		/**		 * @return the rate in Hz at which the audio was sampled		 */        function getSampleRate()        {        	return $this->_metadata["audio"]["sample_rate"];        }		/**		 * @return the channel mode: mono or stereo		 */        function getChannelMode()        {        	return $this->_metadata["audio"]["channelmode"];        }		/**		 * @return the format of the audio file		 */        function getFormat()        {        	return $this->_metadata["audio"]["dataformat"];        }				/**		 * @return a nicer, human-readable string with the length of the file		 */				function getLengthString()		{			return $this->_metadata["playtime_string"];		}    }?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -