1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
#ifndef LIBNETMD_TRACKINFORMATION_H
#define LIBNETMD_TRACKINFORMATION_H
#include <stdint.h>
#include "common.h"
/**
Get the bitrate used to encode a specific track.
@param dev pointer to device returned by netmd_open
@param track Zero based index of track your requesting.
@param data pointer to store the hex code representing the bitrate.
*/
int netmd_request_track_bitrate(netmd_dev_handle*dev, const uint16_t track,
unsigned char* encoding, unsigned char* channel);
/**
Get the flags used for a specific track.
@param dev pointer to device returned by netmd_open
@param track Zero based index of track your requesting.
@param data pointer to store the hex code representing the codec.
*/
int netmd_request_track_flags(netmd_dev_handle* dev, const uint16_t track, unsigned char* data);
/**
Get the title for a specific track.
@param dev pointer to device returned by netmd_open
@param track Zero based index of track your requesting.
@param buffer buffer to hold the name.
@param size of buf.
@return Actual size of buffer, if your buffer is too small resize buffer and
recall function.
*/
int netmd_request_title(netmd_dev_handle* dev, const uint16_t track, char* buffer, const size_t size);
#endif
|