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
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.
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
)
30 if (true == checkFile(sFile
, rc
))
32 pSkel
= new rRAWAudio(sFile
, rc
);
37 rRAWAudio::rRAWAudio(const char *sName
, EDtError
&rc
)
38 : FileReader(sName
, rc
)
43 _D(Lvl_Info
, "%s: Initializing RAW Audio reader", (int)__PRETTY_FUNCTION__
);
45 setLittleEndian(true);
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()
60 bool rRAWAudio::static_isData()
65 bool rRAWAudio::static_isSession()
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();