shithub: mp3dec

ref: 29f6dca321808736a6f671692e647b95fda2d288
dir: /player/decode.h/

View raw version
#pragma once
#include "system.h"

typedef struct decoder
{
    CRITICAL_SECTION mp3_lock;
    const char *file_name;
    short *mp3_buf;
    int mp3_size, mp3_allocated, mp3_file_size, mp3_rate, mp3_channels;
    float mp3_duration;
    HANDLE mp3_open_thread;
} decoder;

int preload_mp3(decoder *dec, const char *file_name);