mirror of
				https://github.com/ElvishArtisan/rivendell.git
				synced 2025-11-04 08:04:12 +01:00 
			
		
		
		
	* Added an 'AUDIO_CARDS' table to the database. * Dropped the 'STATIONS.CARD<n>_DRIVER', 'STATIONS.CARD<n>NAME', 'STATIONS.CARD<n>_INPUTS' and 'STATIONS.CARD<n>OUTPUTS' fields from the database. * Incremented the database version to 282. * Added an 'AUDIO_CARDS.CLOCK_SOURCE' field to the database. * Added an 'AUDIO_INPUTS' table to the database. * Added an 'AUDIO_OUTPUTS' table to the database. * Dropped the 'AUDIO_PORTS' table from the database. * Incremented the database version to 283. * Changed the legend on the 'Audio Ports' button to 'ASI Audio Ports' on the 'Edit Host' dialog in rdadmin(1). * Changed the title of the 'Configure Audio Ports' dialog to 'Configure AudioScience Audio Ports' on the 'Edit Host' dialog in rdadmin(1).
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
// rdaudio_port.h
 | 
						|
//
 | 
						|
// Abstract a Rivendell Audio Port
 | 
						|
//
 | 
						|
//   (C) Copyright 2002-2003,2016-2018 Fred Gleason <fredg@paravelsystems.com>
 | 
						|
//
 | 
						|
//   This program is free software; you can redistribute it and/or modify
 | 
						|
//   it under the terms of the GNU General Public License version 2 as
 | 
						|
//   published by the Free Software Foundation.
 | 
						|
//
 | 
						|
//   This program is distributed in the hope that it will be useful,
 | 
						|
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
//   GNU General Public License for more details.
 | 
						|
//
 | 
						|
//   You should have received a copy of the GNU General Public
 | 
						|
//   License along with this program; if not, write to the Free Software
 | 
						|
//   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 | 
						|
//
 | 
						|
 | 
						|
#ifndef RDAUDIO_PORT_H
 | 
						|
#define RDAUDIO_PORT_H
 | 
						|
 | 
						|
#include <qsqldatabase.h>
 | 
						|
#include <rdcae.h>
 | 
						|
 | 
						|
class RDAudioPort
 | 
						|
{
 | 
						|
  public:
 | 
						|
   enum PortType {Analog=0,AesEbu=1,SpDiff=2};
 | 
						|
   RDAudioPort(QString station,int card);
 | 
						|
   QString station() const;
 | 
						|
   int card() const;
 | 
						|
   RDCae::ClockSource clockSource();
 | 
						|
   void setClockSource(RDCae::ClockSource src);
 | 
						|
   RDAudioPort::PortType inputPortType(int port);
 | 
						|
   void setInputPortType(int port,RDAudioPort::PortType type);
 | 
						|
   RDCae::ChannelMode inputPortMode(int port);
 | 
						|
   void setInputPortMode(int port,RDCae::ChannelMode mode);
 | 
						|
   int inputPortLevel(int port);
 | 
						|
   void setInputPortLevel(int port,int level);
 | 
						|
   int outputPortLevel(int port);
 | 
						|
   void setOutputPortLevel(int port,int level);
 | 
						|
 | 
						|
  private:
 | 
						|
   QString port_station;
 | 
						|
   int port_card;
 | 
						|
};
 | 
						|
 | 
						|
 | 
						|
#endif 
 |