-Remove some unnecessary defines from rm.c.
-Modify code related to the renamed rm.[c/h] instead of rm2wav.[c/h]. -Remove struct cook_extradata from rm.c as it is not used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21041 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9389a5a4d1
commit
694b3b734f
5 changed files with 6 additions and 25 deletions
|
@ -1,5 +1,5 @@
|
|||
CFLAGS = -Wall -O3
|
||||
OBJS = main.o bitstream.o cook.o rm2wav.o
|
||||
OBJS = main.o bitstream.o cook.o rm.o
|
||||
cooktest: $(OBJS)
|
||||
gcc -o cooktest $(OBJS)
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "bitstream.h"
|
||||
#include "rm2wav.h"
|
||||
#include "rm.h"
|
||||
#include "cookdata_fixpoint.h"
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "rm2wav.h"
|
||||
#include "rm.h"
|
||||
#include "cook.h"
|
||||
|
||||
//#define DUMP_RAW_FRAMES
|
||||
|
|
|
@ -27,11 +27,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "rm2wav.h"
|
||||
|
||||
#define MAX_PATH 260
|
||||
#define PKT_HEADER_SIZE 12
|
||||
#define RAW_AUDIO_DATA packet_length-PKT_HEADER_SIZE
|
||||
#include "rm.h"
|
||||
|
||||
|
||||
#if 0
|
||||
|
@ -41,22 +37,7 @@
|
|||
#define DEBUGF(...)
|
||||
#endif
|
||||
|
||||
/* ASF codec IDs */
|
||||
#define CODEC_ID_WMAV1 0x160
|
||||
#define CODEC_ID_WMAV2 0x161
|
||||
|
||||
/* Some Rockbox-like functions (these should be implemented in metadata_common.[ch] */
|
||||
struct cook_extradata {
|
||||
uint32_t cook_version;
|
||||
uint16_t samples_pf_pc; /* samples per frame per channel */
|
||||
uint16_t nb_subbands; /* number of subbands in the frequency domain */
|
||||
|
||||
/* extra 8 bytes for stereo data */
|
||||
uint32_t unused;
|
||||
uint16_t js_subband_start; /* joint stereo subband start */
|
||||
uint16_t js_vlc_bits;
|
||||
};
|
||||
|
||||
static int read_uint8(int fd, uint8_t* buf)
|
||||
{
|
||||
unsigned char tmp[1];
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
* KIND, either express or implied.
|
||||
*
|
||||
****************************************************************************/
|
||||
#ifndef _RM2WAV_H
|
||||
#define _RM2WAV_H
|
||||
#ifndef _RM_H
|
||||
#define _RM_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
|
Loading…
Reference in a new issue