Files
recycled-ni-libstb-hal/libraspi/audio.cpp
vanhofen 7395664ea6 rename dmx_hal.h => dmx.h; it's a really header, not a wrapper
Origin commit data
------------------
Branch: master
Commit: a5efaf249f
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-11-07 (Sun, 07 Nov 2021)

Origin message was:
------------------
- rename dmx_hal.h => dmx.h; it's a really header, not a wrapper

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-11-07 20:00:03 +01:00

153 lines
3.1 KiB
C++

/*
* (C) 2010-2013 Stefan Seyfried
*
* This program 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.
*
* 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, see <http://www.gnu.org/licenses/>.
*
* cAudio dummy implementation
*/
#include <cstdio>
#include <cstdlib>
#include "audio_lib.h"
#include "dmx.h"
#include "hal_debug.h"
#define hal_debug(args...) _hal_debug(HAL_DEBUG_AUDIO, this, args)
#define hal_info(args...) _hal_info(HAL_DEBUG_AUDIO, this, args)
cAudio *audioDecoder = NULL;
cAudio::cAudio(void *, void *, void *)
{
hal_debug("%s\n", __func__);
}
cAudio::~cAudio(void)
{
hal_debug("%s\n", __func__);
}
void cAudio::openDevice(void)
{
hal_debug("%s\n", __func__);
}
void cAudio::closeDevice(void)
{
hal_debug("%s\n", __func__);
}
int cAudio::do_mute(bool enable, bool remember)
{
hal_debug("%s(%d, %d)\n", __func__, enable, remember);
return 0;
}
int cAudio::setVolume(unsigned int left, unsigned int right)
{
hal_debug("%s(%d, %d)\n", __func__, left, right);
return 0;
}
int cAudio::Start(void)
{
hal_debug("%s >\n", __func__);
return 0;
}
int cAudio::Stop(void)
{
hal_debug("%s >\n", __func__);
return 0;
}
bool cAudio::Pause(bool /*Pcm*/)
{
return true;
};
void cAudio::SetSyncMode(AVSYNC_TYPE Mode)
{
hal_debug("%s %d\n", __func__, Mode);
};
void cAudio::SetStreamType(AUDIO_FORMAT type)
{
hal_debug("%s %d\n", __func__, type);
};
int cAudio::setChannel(int /*channel*/)
{
return 0;
};
int cAudio::PrepareClipPlay(int ch, int srate, int bits, int le)
{
hal_debug("%s ch %d srate %d bits %d le %d\n", __func__, ch, srate, bits, le);;
return 0;
};
int cAudio::WriteClip(unsigned char *buffer, int size)
{
hal_debug("cAudio::%s buf 0x%p size %d\n", __func__, buffer, size);
return size;
};
int cAudio::StopClip()
{
hal_debug("%s\n", __func__);
return 0;
};
void cAudio::getAudioInfo(int &type, int &layer, int &freq, int &bitrate, int &mode)
{
type = 0;
layer = 0; /* not used */
freq = 0;
bitrate = 0; /* not used, but easy to get :-) */
mode = 0; /* default: stereo */
hal_debug("%s t: %d l: %d f: %d b: %d m: %d\n", __func__, type, layer, freq, bitrate, mode);
};
void cAudio::SetSRS(int /*iq_enable*/, int /*nmgr_enable*/, int /*iq_mode*/, int /*iq_level*/)
{
hal_debug("%s\n", __func__);
};
void cAudio::SetHdmiDD(bool enable)
{
hal_debug("%s %d\n", __func__, enable);
};
void cAudio::SetSpdifDD(bool enable)
{
hal_debug("%s %d\n", __func__, enable);
};
void cAudio::ScheduleMute(bool On)
{
hal_debug("%s %d\n", __func__, On);
};
void cAudio::EnableAnalogOut(bool enable)
{
hal_debug("%s %d\n", __func__, enable);
};
void cAudio::setBypassMode(bool disable)
{
hal_debug("%s %d\n", __func__, disable);
}