Rename interfaces

This commit is contained in:
grosroro 2012-05-30 15:06:53 +02:00
commit 78bb1bd86e
13 changed files with 162 additions and 67 deletions

View file

@ -18,7 +18,7 @@ use FFMpeg\Exception\InvalidArgumentException;
*
* @author Romain Neutron imprec@gmail.com
*/
abstract class DefaultAudio implements ResamplableAudio, InteractiveAudio
abstract class DefaultAudio implements Resamplable, Interactive
{
protected $audioCodec;
protected $audioSampleRate = 44100;

View file

@ -11,8 +11,6 @@
namespace FFMpeg\Format\Audio;
use FFMpeg\Format\Audio as BaseAudio;
/**
* The interactive audio interface. This provide a method to list available
* codecs. This is usefull to build interactive development and switch between
@ -20,7 +18,7 @@ use FFMpeg\Format\Audio as BaseAudio;
*
* @author Romain Neutron imprec@gmail.com
*/
interface InteractiveAudio extends BaseAudio
interface Interactive extends Transcodable
{
/**

View file

@ -20,7 +20,7 @@ use FFMpeg\Format\Audio as BaseAudio;
*
* @author Romain Neutron imprec@gmail.com
*/
interface ResamplableAudio extends BaseAudio
interface Resamplable extends BaseAudio
{
/**

View file

@ -0,0 +1,28 @@
<?php
/*
* This file is part of PHP-FFmpeg.
*
* (c) Alchemy <info@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FFMpeg\Format\Audio;
use FFMpeg\Format\Audio as BaseAudio;
/**
* @author Romain Neutron imprec@gmail.com
*/
interface Transcodable extends BaseAudio
{
/**
* Returns the audio codec
*
* @return string
*/
public function getAudioCodec();
}