1
0
mirror of https://github.com/JvanKatwijk/javaDab synced 2018-12-22 06:18:52 +01:00
Files
SDR-DAB_javaDab/devices/nullDevice.java
2018-04-08 18:15:33 +02:00

50 lines
1.6 KiB
Java
Executable File

/*
* Copyright (C) 2017
* Jan van Katwijk (J.vanKatwijk@gmail.com)
* Lazy Chair Computing
*
* This file is part of the DAB-java program
* DAB-java is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* DAB-java 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 DAB-java; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package devices;
public class nullDevice implements Device {
@Override
public void restartReader () {}
@Override
public void stopReader () {}
@Override
public void setVFOFrequency (int v) {}
@Override
public int getVFOFrequency () {return 220000000;}
@Override
public void resetBuffer () {}
@Override
public int bitDepth () {return 8;}
@Override
public int samples () {return 0;}
@Override
public int getSamples (float [] v, int amount) {
return 0;
}
@Override
public void setGain (int g) {}
@Override
public void autoGain (boolean b) {}
@Override
public boolean is_nullDevice () { return true; }
}