forgotten commit. disabled until egl is adapted.
[AROS-Contrib.git] / FryingPan / DTLib / rRAWAudio.cpp
blobdc0a8fee0b0360c731027592684453e4778741b5
1 /*
2 * FryingPan - Amiga CD/DVD Recording Software (User Interface and supporting Libraries only)
3 * Copyright (C) 2001-2011 Tomasz Wiszkowski Tomasz.Wiszkowski at gmail.com
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation; either version 2.1
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #include "rRAWAudio.h"
21 #include <libclass/dos.h>
22 #include <libclass/exec.h>
23 #include <libclass/utility.h>
24 #include <exec/lists.h>
25 #include <Generic/HookT.h>
27 IFileReader *rRAWAudio::openRead(const char* sFile, EDtError &rc)
29 rRAWAudio *pSkel = 0;
30 if (true == checkFile(sFile, rc))
32 pSkel = new rRAWAudio(sFile, rc);
34 return pSkel;
37 rRAWAudio::rRAWAudio(const char *sName, EDtError &rc)
38 : FileReader(sName, rc)
40 if (rc != DT_OK)
41 return;
43 _D(Lvl_Info, "%s: Initializing RAW Audio reader", (int)__PRETTY_FUNCTION__);
44 setBlockSize(2352);
45 setLittleEndian(true);
46 setType(Data_Audio);
47 _D(Lvl_Info, "%s: RAW Audio reader initialized", (int)__PRETTY_FUNCTION__);
50 const char *rRAWAudio::static_getName()
52 return "RAW Audio Track";
55 bool rRAWAudio::static_isAudio()
57 return true;
60 bool rRAWAudio::static_isData()
62 return false;
65 bool rRAWAudio::static_isSession()
67 return false;
70 bool rRAWAudio::isAudio()
72 return static_isAudio();
75 bool rRAWAudio::isData()
77 return static_isData();
80 const char *rRAWAudio::getName()
82 return static_getName();
85 // vim: ts=3 et