<commit_before>/*
    NES Emulator Project
    Created by <NAME>
    06/11/2012
*/

#ifndef _AudioDac_h_
#define _AudioDac_h_

#include <stdint.h>

#define _in_
#define _out_
#define _in_out_


#define AUDIO_DAC_SAMPLING_RATE   44100
#define AUDIO_DAC_BUFFER_SIZE     512


typedef void (*QueryFrameCallBack_t) ( _out_ void * pContext, _out_ int16_t* pData, _in_ uint16_t bytesCnt );

class AudioDac_t
{
public:

//    void (*QueryFrameCallBack)( _out_ void * context, _out_ int16_t* pData, _in_ uint16_t bytesCnt );


public:
    void SetQueryFrameCallBack( QueryFrameCallBack_t qeryFrameCallBack, void* pContext ); 
    void Init( void );
        

private:
    static void RequestFrameCallBack( void *pContext, uint8_t *audioStream, int length );
    
private:
    //SDL_AudioSpec         m_AudioSpec;
    QueryFrameCallBack_t  fp_QueryFrameCallBack;
    void*                 m_pContext;
};

#endif<commit_msg>Coding style<commit_after>/*
    NES Emulator Project
    Created by <NAME>
    06/11/2012
*/

#ifndef _AudioDac_h_
#define _AudioDac_h_

#include <stdint.h>

#define _in_
#define _out_
#define _in_out_


#define AUDIO_DAC_SAMPLING_RATE   44100
#define AUDIO_DAC_BUFFER_SIZE     1024


typedef void (*QueryFrameCallBack_t) ( _out_ void * pContext, _out_ int16_t* pData, _in_ uint16_t bytesCnt );

class AudioDac_t
{
public:

//    void (*QueryFrameCallBack)( _out_ void * context, _out_ int16_t* pData, _in_ uint16_t bytesCnt );


public:
    void SetQueryFrameCallBack( QueryFrameCallBack_t qeryFrameCallBack, void* pContext ); 
    void Init( void );
        

private:
    static void RequestFrameCallBack( void *pContext, uint8_t *audioStream, int length );
    
private:
    //SDL_AudioSpec         m_AudioSpec;
    QueryFrameCallBack_t  fp_QueryFrameCallBack;
    void*                 m_pContext;
};

#endif
{'fraction_non_alphanumeric': 0.07986870897155361, 'fraction_numerical': 0.027899343544857767, 'mean_word_length': 3.5954773869346734, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4003153', 'n_tokens_mistral': 706, 'n_tokens_neox': 662, 'n_words': 160}