Subversion Repositories Kolibri OS

Rev

Rev 205 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
165 serge 1
//
2
//   This file is part of the AC97 mp3 player.
3
//   (C) copyright Serge 2006
4
//   email: infinity_sound@mail.ru
5
//
6
//   This program is free software; you can redistribute it and/or modify
7
//   it under the terms of the GNU General Public License as published by
8
//   the Free Software Foundation; either version 2 of the License, or
9
//   (at your option) any later version.
10
//
11
//   This program is distributed in the hope that it will be useful,
12
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
//   GNU General Public License for more details.
15
 
16
 
17
#define ST_DONE 0x0
18
#define ST_PLAY 0x1
19
#define ST_EXIT 0x2
20
#define ST_STOP 0x4
21
 
22
typedef struct
23
{  DWORD riff_id;
24
    DWORD riff_size;
25
    DWORD riff_format;
26
 
27
    DWORD fmt_id;
28
    DWORD fmt_size;
29
 
30
    WORD  wFormatTag;
31
    WORD  nChannels;
32
    DWORD nSamplesPerSec;
33
    DWORD nAvgBytesPerSec;
34
    WORD  nBlockAlign;
35
    WORD  wBitsPerSample;
36
    DWORD data_id;
37
    DWORD data_size;
38
} WAVEHEADER;
39
 
40
DWORD test_mp3(char *buf);
41
 
42
//void (*snd_play)();
43
void wave_out(char* buff);
44
 
45
void play_wave();
46
void play_mp3();
47
 
48
void snd_stop();