mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-23 13:37:59 +01:00
19 lines
380 B
PHP
19 lines
380 B
PHP
|
<?php
|
||
|
|
||
|
class AudioCache
|
||
|
{
|
||
|
private static $_movieCache = array();
|
||
|
|
||
|
/**
|
||
|
* @param $filename
|
||
|
* @return FFmpegMovie
|
||
|
*/
|
||
|
public static function get($filename)
|
||
|
{
|
||
|
if (isset(self::$_movieCache[$filename])) {
|
||
|
return self::$_movieCache[$filename];
|
||
|
}
|
||
|
|
||
|
return self::$_movieCache[$filename] = new FFmpegMovie($filename);
|
||
|
}
|
||
|
}
|