2024-05-01 12:38:01 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2002-2024 D2X Project
|
|
|
|
*
|
|
|
|
* 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 3 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/>.
|
|
|
|
*/
|
|
|
|
|
2024-05-01 11:33:32 +00:00
|
|
|
#ifndef INCLUDED_MVE_AUDIO_H
|
|
|
|
#define INCLUDED_MVE_AUDIO_H
|
|
|
|
|
2024-05-11 13:32:18 +00:00
|
|
|
/**
|
|
|
|
* Process input data and send parsed data into queue buffer
|
|
|
|
* @param buffer output queue buffer
|
|
|
|
* @param data input data
|
2024-07-12 13:37:28 +00:00
|
|
|
* @param sample_size size of sample (1 for 8 bit, 2 for 16 bit)
|
2024-05-11 13:32:18 +00:00
|
|
|
* @param is_compress true if input data is compressed
|
|
|
|
*/
|
2024-07-12 13:37:28 +00:00
|
|
|
void mveaudio_process(char *buffer, unsigned char *data, int sample_size, bool is_compressed = true);
|
2024-05-01 11:33:32 +00:00
|
|
|
|
|
|
|
#endif /* INCLUDED_MVE_AUDIO_H */
|