soundinputstream.cc
来自「pixil 最新的嵌入linux 應用程序集,別的地方很難下載」· CC 代码 · 共 54 行
CC
54 行
/* MPEG/WAVE Sound library (C) 1997 by Woo-jae Jung */// Soundinputstream.cc// Abstractclass of inputstreams#ifdef HAVE_CONFIG_H#include "config.h"#endif#include <string.h>#include "mpegsound.h"Soundinputstream::Soundinputstream(){ __errorcode = SOUND_ERROR_OK;};Soundinputstream::~Soundinputstream(){ // Nothing...};/********************//* File & Http open *//********************/Soundinputstream *Soundinputstream::hopen(char *filename, int *errorcode){ Soundinputstream *st; if (filename == NULL) st = new Soundinputstreamfromfile; else if (strstr(filename, "://")) st = new Soundinputstreamfromhttp; else st = new Soundinputstreamfromfile; if (st == NULL) { *errorcode = SOUND_ERROR_MEMORYNOTENOUGH; return NULL; } if (!st->open(filename)) { *errorcode = st->geterrorcode(); delete st; return NULL; } return st;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?