2023-07-22 18:41:14 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if(!isset($_GET["s"])){
|
|
|
|
|
|
|
|
http_response_code(404);
|
|
|
|
header("X-Error: No SOUND(s) provided!");
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
2023-11-07 13:04:56 +00:00
|
|
|
include "data/config.php";
|
2023-07-22 18:41:14 +00:00
|
|
|
include "lib/curlproxy.php";
|
|
|
|
$proxy = new proxy();
|
|
|
|
|
|
|
|
try{
|
|
|
|
|
|
|
|
$proxy->stream_linear_audio($_GET["s"]);
|
|
|
|
}catch(Exception $error){
|
|
|
|
|
|
|
|
header("X-Error: " . $error->getMessage());
|
|
|
|
}
|