for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Audio channels count flag
*
* @author Sam Stenvall <[email protected]>
* @copyright Copyright © Sam Stenvall 2013-
* @license https://www.gnu.org/licenses/gpl.html The GNU General Public License v3.0
*/
class MediaFlagAudioChannels extends MediaFlagStreamDetails
{
protected function getIcon()
$channels = $this->audio->channels;
if ($channels == 10)
return '50px-10';
else if ($channels == 8)
return '50px-8';
else if ($channels == 6)
return '50px-6';
else if ($channels == 2)
return '50px-2';
else if ($channels == 1)
return '50px-1';
else
return false;
}