Skip to content

Commit

Permalink
RayDAT support
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeBekaert committed Nov 20, 2021
1 parent 794e789 commit b640fcf
Show file tree
Hide file tree
Showing 8 changed files with 1,695 additions and 4 deletions.
6 changes: 5 additions & 1 deletion HDSPeCard.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! \file HDSPeCard.cpp
*! \brief RME HDSPe sound card enumeration and common control.
* 20210810,11,12,0902,06,08,09,10,1117 - Philippe.Bekaert@uhasselt.be */
* 20210810,11,12,0902,06,08,09,10,1117,20 - Philippe.Bekaert@uhasselt.be */

#include <math.h>
#include <stdexcept>
Expand All @@ -10,6 +10,7 @@
#include "HDSPeCard.h"
#include "AioPro.h"
#include "Aio.h"
#include "RayDAT.h"
#include "TCO.h"

HDSPeCardEnumerator::HDSPeCardEnumerator()
Expand All @@ -27,6 +28,9 @@ HDSPeCardEnumerator::HDSPeCardEnumerator()
else if (strncmp(name, "RME AIO", strlen("RME AIO")) == 0) {
newcard = new AioCard(i);
}
else if (strncmp(name, "RME RayDAT", strlen("RME RayDAT")) == 0) {
newcard = new RayDATCard(i);
}
} catch (std::runtime_error& e) {
std::cerr << e.what() << "\n";
delete newcard; newcard = nullptr;
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
SOURCES=hdspeconf.cpp SndCard.cpp SndControl.cpp \
HDSPeCard.cpp TCO.cpp Aio.cpp AioPro.cpp \
NoCardsPanel.cpp TCOPanel.cpp AioPanel.cpp AioProPanel.cpp
HDSPeCard.cpp TCO.cpp Aio.cpp AioPro.cpp RayDAT.cpp \
NoCardsPanel.cpp TCOPanel.cpp AioPanel.cpp AioProPanel.cpp \
RayDATPanel.cpp
OBJECTS=${SOURCES:.cpp=.o}
CXXFLAGS=-Wall -g -O2 -I.. `wx-config --cxxflags`
LDFLAGS=-lasound `wx-config --libs`
Expand Down
2 changes: 1 addition & 1 deletion NoCardsPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ NoCardsPanel::NoCardsPanel(wxWindow* parent, wxWindowID id, const wxPoint& pos,
wxBoxSizer* sizer_1 = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* sizer_2 = new wxBoxSizer(wxHORIZONTAL);
sizer_1->Add(sizer_2, 1, wxALIGN_CENTER_HORIZONTAL, 0);
wxStaticText* label_1 = new wxStaticText(this, wxID_ANY, wxT("No HDSPe cards detected."));
wxStaticText* label_1 = new wxStaticText(this, wxID_ANY, wxT("No supported cards detected."));
sizer_2->Add(label_1, 0, wxALIGN_CENTER_VERTICAL, 0);

SetSizer(sizer_1);
Expand Down
Loading

0 comments on commit b640fcf

Please sign in to comment.