#include <sp/spWave.h>
typedef struct _spWaveInfo {
char file_type[SP_WAVE_FILE_TYPE_SIZE]; /* format unique ID, e.g. "wav" */
char file_desc[SP_WAVE_FILE_DESC_SIZE]; /* format description, e.g. "Microsoft PCM" */
char file_filter[SP_WAVE_FILE_FILTER_SIZE]; /* filter mask, e.g. "*.wav" */
int buffer_size; /* buffer size for output buffer */
spLong header_size; /* you can skip header by fseek using this size. If you can't, zero will be returned. */
int samp_bit; /* bits/sample */
int num_channel; /* number of channels */
double samp_rate; /* sampling rate [Hz] */
long bit_rate; /* bit rate [bits/sec] */
spLong length; /* total length of sound [point] */
} spWaveInfo;
#include <sp/spWave.h>
typedef struct _spSongInfo {
unsigned long info_mask;
spLong32 track;
char title[SP_SONG_INFO_SIZE];
char artist[SP_SONG_INFO_SIZE];
char album[SP_SONG_INFO_SIZE];
char genre[SP_SONG_INFO_SIZE];
char release[SP_SONG_INFO_SIZE];
char copyright[SP_SONG_INFO_SIZE];
char engineer[SP_SONG_INFO_SIZE];
char source[SP_SONG_INFO_SIZE];
char software[SP_SONG_INFO_SIZE];
char subject[SP_SONG_INFO_SIZE];
char comment[SP_SONG_INFO_SIZE];
} spSongInfo;
/* 0.7.12+ */
typedef struct _spSongInfoV2 {
unsigned long info_mask;
spLong32 track;
char title[SP_SONG_INFO_SIZE];
char artist[SP_SONG_INFO_SIZE];
char album[SP_SONG_INFO_SIZE];
char genre[SP_SONG_INFO_GENRE_SIZE];
char album_artist[SP_SONG_INFO_ALBUM_ARTIST_SIZE]; /* V2 */
char release[SP_SONG_INFO_RELEASE_SIZE];
char producer[SP_SONG_INFO_PRODUCER_SIZE]; /* V2 */
spLong32 track_total; /* V2 */
spLong32 disk; /* V2 */
spLong32 disk_total; /* V2 */
spLong32 tempo; /* BPM; V2 */
char copyright[SP_SONG_INFO_SIZE];
char engineer[SP_SONG_INFO_SIZE];
char source[SP_SONG_INFO_SOURCE_SIZE];
char composer[SP_SONG_INFO_COMPOSER_SIZE]; /* V2 */
char software[SP_SONG_INFO_SOFTWARE_SIZE];
char lyricist[SP_SONG_INFO_LYRICIST_SIZE]; /* V2 */
char subject[SP_SONG_INFO_SUBJECT_SIZE];
char isrc[SP_SONG_INFO_ISRC_SIZE]; /* V2 */
char comment[SP_SONG_INFO_SIZE];
} spSongInfoV2;
Last modified: "2013-06-23 14:58:19 hideki"