c@243: #ifndef _SEGMENT_H c@243: #define _SEGMENT_H c@243: c@243: /* c@243: * segment.h c@243: * soundbite c@243: * c@243: * Created by Mark Levy on 06/04/2006. c@243: * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. All rights reserved. c@243: * c@243: */ c@243: c@243: typedef struct segment_t c@243: { c@243: long start; /* in samples */ c@243: long end; c@243: int type; c@243: } segment_t; c@243: c@243: typedef struct segmentation_t c@243: { c@243: int nsegs; /* number of segments */ c@243: int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */ c@243: int samplerate; c@243: segment_t* segments; c@243: } segmentation_t; c@243: c@243: typedef enum c@243: { c@243: FEATURE_TYPE_UNKNOWN = 0, c@243: FEATURE_TYPE_CONSTQ = 1, c@243: FEATURE_TYPE_CHROMA c@243: } feature_types; c@243: c@243: #endif c@243: