<commit_before>/*
	dummy: dummy audio output

	copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
	see COPYING and AUTHORS files in distribution or http://mpg123.org
*/

#include "mpg123app.h"

static int open_dummy(audio_output_t *ao)
{
	debug("open_dummy()");
	warning("Using the dummy audio output module.");
	return 0;
}

static int get_formats_dummy(audio_output_t *ao)
{
	debug("get_formats_dummy()");
	return MPG123_ENC_SIGNED_16;
}

static int write_dummy(audio_output_t *ao,unsigned char *buf,int len)
{
	debug("write_dummy()");
	return len;
}

static void flush_dummy(audio_output_t *ao)
{
	debug("flush_dummy()");
}

static int close_dummy(audio_output_t *ao)
{
	debug("close_dummy()");
	return 0;
}

static int deinit_dummy(audio_output_t *ao)
{
	debug("deinit_dummy()");
	return 0;
}


static int init_dummy(audio_output_t* ao)
{
	if (ao==NULL) return -1;
	debug("init_dummy()");
	
	/* Set callbacks */
	ao->open = open_dummy;
	ao->flush = flush_dummy;
	ao->write = write_dummy;
	ao->get_formats = get_formats_dummy;
	ao->close = close_dummy;
	ao->deinit = deinit_dummy;

	/* Success */
	return 0;
}



/* 
	Module information data structure
*/
mpg123_module_t mpg123_output_module_info = {
	/* api_version */	MPG123_MODULE_API_VERSION,
	/* name */			"dummy",						
	/* description */	"Dummy audio output - does not output audio.",
	/* revision */		"$Rev:$",						
	/* handle */		NULL,
	
	/* init_output */	init_dummy,						
};

<commit_msg>Don't warn on dummy output usage... may be intentional.<commit_after>/*
	dummy: dummy audio output

	copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
	see COPYING and AUTHORS files in distribution or http://mpg123.org
*/

#include "mpg123app.h"

static int open_dummy(audio_output_t *ao)
{
	debug("open_dummy()");
	return 0;
}

static int get_formats_dummy(audio_output_t *ao)
{
	debug("get_formats_dummy()");
	return MPG123_ENC_SIGNED_16;
}

static int write_dummy(audio_output_t *ao,unsigned char *buf,int len)
{
	debug("write_dummy()");
	return len;
}

static void flush_dummy(audio_output_t *ao)
{
	debug("flush_dummy()");
}

static int close_dummy(audio_output_t *ao)
{
	debug("close_dummy()");
	return 0;
}

static int deinit_dummy(audio_output_t *ao)
{
	debug("deinit_dummy()");
	return 0;
}


static int init_dummy(audio_output_t* ao)
{
	if (ao==NULL) return -1;
	debug("init_dummy()");
	
	/* Set callbacks */
	ao->open = open_dummy;
	ao->flush = flush_dummy;
	ao->write = write_dummy;
	ao->get_formats = get_formats_dummy;
	ao->close = close_dummy;
	ao->deinit = deinit_dummy;

	/* Success */
	return 0;
}



/* 
	Module information data structure
*/
mpg123_module_t mpg123_output_module_info = {
	/* api_version */	MPG123_MODULE_API_VERSION,
	/* name */			"dummy",						
	/* description */	"Dummy audio output - does not output audio.",
	/* revision */		"$Rev:$",						
	/* handle */		NULL,
	
	/* init_output */	init_dummy,						
};


{'fraction_non_alphanumeric': 0.1382907133243607, 'fraction_numerical': 0.02288021534320323, 'mean_word_length': 4.152512998266897, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4509679', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1098, 'n_words': 262}