summaryrefslogtreecommitdiff
path: root/lib/codec_internal.h
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2003-08-18 05:34:01 +0000
committerMonty <xiphmont@xiph.org>2003-08-18 05:34:01 +0000
commit938f4699b2390c9a035e15736d06a3bf2c5ff40c (patch)
tree2150d1ef37cc9fc2ee4c386d6cb28b8939ee820a /lib/codec_internal.h
parent9a2fc5d1ebc7eb74d32cd45b1f830bc5d5e3a9e2 (diff)
downloadlibvorbis-git-938f4699b2390c9a035e15736d06a3bf2c5ff40c.tar.gz
Vorbisfile API addition for game and mod coders;
Do a 'free' sample rate conversion from source rate to half source rate by calling ov_halfrate() after ov_open(); Although this is solid for immediately desired usage, I want to clean it up a bit before advertising it's existence, so no doc addition yet. Does not break binary API. Monty svn path=/trunk/vorbis/; revision=5222
Diffstat (limited to 'lib/codec_internal.h')
-rw-r--r--lib/codec_internal.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/codec_internal.h b/lib/codec_internal.h
index 392df917..85597718 100644
--- a/lib/codec_internal.h
+++ b/lib/codec_internal.h
@@ -11,7 +11,7 @@
********************************************************************
function: libvorbis codec headers
- last mod: $Id: codec_internal.h,v 1.16 2002/10/11 11:14:41 xiphmont Exp $
+ last mod: $Id: codec_internal.h,v 1.17 2003/08/18 05:34:01 xiphmont Exp $
********************************************************************/
@@ -58,7 +58,7 @@ typedef void vorbis_info_mapping;
typedef struct private_state {
/* local lookup storage */
envelope_lookup *ve; /* envelope lookup */
- float *window[2];
+ int window[2];
vorbis_look_transform **transform[2]; /* block, type */
drft_lookup fft_look[2];
@@ -79,7 +79,6 @@ typedef struct private_state {
bitrate_manager_state bms;
ogg_int64_t sample_count;
-
} private_state;
/* codec_setup_info contains all the setup information specific to the
@@ -125,7 +124,7 @@ typedef struct codec_setup_info {
highlevel_encode_setup hi; /* used only by vorbisenc.c. It's a
highly redundant structure, but
improves clarity of program flow. */
-
+ int halfrate_flag; /* painless downsample for decode */
} codec_setup_info;
extern vorbis_look_psy_global *_vp_global_look(vorbis_info *vi);