Based on Nekogram. Key additions: - Rebrand to FoxiGram (app name, APK name, applicationId com.foxigram.app) - Embedded Xray (VLESS+Reality) proxy client via JNI libxray.so - Bundled hidden one-tap proxies (LTE + WiFi), read-only in UI - Auto-restore proxy on restart, rebind to active network (LTE/WiFi) - Server credentials externalized to git-ignored XrayServers.java (+ template) - libxray Go source included; compiled .so, keystore, google-services.json ignored
22 lines
638 B
C++
22 lines
638 B
C++
//
|
|
// Created by Grishka on 01.04.17.
|
|
//
|
|
|
|
#ifndef LIBTGVOIP_RESAMPLER_H
|
|
#define LIBTGVOIP_RESAMPLER_H
|
|
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
|
|
namespace tgvoip{ namespace audio{
|
|
class Resampler{
|
|
public:
|
|
static size_t Convert48To44(int16_t* from, int16_t* to, size_t fromLen, size_t toLen);
|
|
static size_t Convert44To48(int16_t* from, int16_t* to, size_t fromLen, size_t toLen);
|
|
static size_t Convert(int16_t* from, int16_t* to, size_t fromLen, size_t toLen, int num, int denom);
|
|
static void Rescale60To80(int16_t* in, int16_t* out);
|
|
static void Rescale60To40(int16_t* in, int16_t* out);
|
|
};
|
|
}}
|
|
|
|
#endif //LIBTGVOIP_RESAMPLER_H
|