Rename interfaces
This commit is contained in:
parent
e7918c03f7
commit
78bb1bd86e
13 changed files with 162 additions and 67 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -20,7 +20,7 @@ use FFMpeg\Format\Audio as BaseAudio;
|
|||
*
|
||||
* @author Romain Neutron imprec@gmail.com
|
||||
*/
|
||||
interface ResamplableAudio extends BaseAudio
|
||||
interface Resamplable extends BaseAudio
|
||||
{
|
||||
|
||||
/**
|
||||
28
src/FFMpeg/Format/Audio/Transcodable.php
Normal file
28
src/FFMpeg/Format/Audio/Transcodable.php
Normal 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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue