Logo white

Hu Chunming / Project_VideoStructure

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Project_VideoStructure
  • vehicle_structure_platform.git0708-30...
  • src
  • SfxDecoder
  • SfxEnv.hpp
  • 同步windows代码
    dce94814
    Hu Chunming authored
    2024-06-06 17:44:59 +0800  
    Browse Code »
SfxEnv.hpp 366 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#include "SfxStreamHandlerInterface.h"


using namespace std;

class SfxEnv {
public:
    static void init(){
		static SfxEnv* singleton = nullptr;
		if (singleton == nullptr){
			singleton = new SfxEnv();
		}
		return ;
	}

private:
    SfxEnv(){
		SfxStreamHandlerInterface::SfxInitialize(100);
	}

	~SfxEnv(){
		SfxStreamHandlerInterface::SfxUninitialize();
	}
};