~ubuntu-app-review-contributors/ubuntu-app-reviews/qoobar

« back to all changes in this revision

Viewing changes to src/ape/NoWindows.h

  • Committer: Andrew Mitchell
  • Author(s): Alex Novichkov
  • Date: 2012-03-04 06:34:35 UTC
  • Revision ID: ajmitch@ubuntu.com-20120304063435-mc7990pmo8n7r293
Tags: 1.5.1
* Added: progress bar for internet search
* Added: Autocompletion now can match the whole string or the last word
* Added: The ability to change some mp4 tags mapping
* Added: Support for some binary mp4 tags (Windows only or TagLib > 1.7.0)
* Added: Progress bar to split dialog
* Added: Option to save tags separated by ; as separate fields (for ape, ogg, flac files)
* Added: Full support for rating in mp4 files (Windows only or TagLib > 1.7.0)
* Changed: Switched to a newer taglib (Windows only)
* Changed: Id3v1 tags now append to tags, not replace the empty ones.
* Changed: scheme files to support new mp4 items
* Changed: Improved transliteration algorithm
* Fixed: Fixed two potential bugs.
* Fixed: Attempt to read binary id3v24 tag causes program crash.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _WIN32
 
2
 
 
3
#ifndef APE_NOWINDOWS_H
 
4
#define APE_NOWINDOWS_H
 
5
 
 
6
#ifndef FALSE
 
7
#define FALSE    0
 
8
#endif
 
9
 
 
10
#ifndef TRUE
 
11
#define TRUE    1
 
12
#endif
 
13
 
 
14
#define NEAR
 
15
#define FAR
 
16
 
 
17
typedef unsigned int        uint32;
 
18
typedef int                    int32;
 
19
typedef unsigned short        uint16;
 
20
typedef short                int16;
 
21
typedef unsigned char        uint8;
 
22
typedef char                int8;
 
23
typedef char                str_ansi;
 
24
typedef char        str_utf8;
 
25
typedef wchar_t                str_utf16;
 
26
 
 
27
typedef unsigned long       DWORD;
 
28
typedef int                 BOOL;
 
29
typedef unsigned char       BYTE;
 
30
typedef unsigned short      WORD;
 
31
typedef float               FLOAT;
 
32
typedef void *                HANDLE;
 
33
typedef unsigned int        UINT;
 
34
typedef unsigned int        WPARAM;
 
35
typedef long                LPARAM;
 
36
typedef const char *        LPCSTR;
 
37
typedef char *                LPSTR;
 
38
typedef long                LRESULT;
 
39
typedef const wchar_t *     LPCWSTR;
 
40
 
 
41
#define _wtoi(ws) wcstol(ws, NULL, 2)
 
42
#define _wcsicmp wcscasecmp
 
43
#define wcsnicmp wcsncasecmp
 
44
 
 
45
#define ZeroMemory(POINTER, BYTES) memset(POINTER, 0, BYTES);
 
46
#define max(a,b)    (((a) > (b)) ? (a) : (b))
 
47
#define min(a,b)    (((a) < (b)) ? (a) : (b))
 
48
 
 
49
#define __stdcall
 
50
#define CALLBACK
 
51
 
 
52
#define _stricmp strcasecmp
 
53
#define _strnicmp strncasecmp
 
54
 
 
55
#define _FPOSOFF(fp) ((long)(fp).__pos)
 
56
#define MAX_PATH    260
 
57
 
 
58
#ifndef _WAVEFORMATEX_
 
59
#define _WAVEFORMATEX_
 
60
 
 
61
typedef struct tWAVEFORMATEX
 
62
{
 
63
    WORD        wFormatTag;         /* format type */
 
64
    WORD        nChannels;          /* number of channels (i.e. mono, stereo...) */
 
65
    DWORD       nSamplesPerSec;     /* sample rate */
 
66
    DWORD       nAvgBytesPerSec;    /* for buffer estimation */
 
67
    WORD        nBlockAlign;        /* block size of data */
 
68
    WORD        wBitsPerSample;     /* number of bits per sample of mono data */
 
69
    WORD        cbSize;             /* the count in bytes of the size of */
 
70
                    /* extra information (after cbSize) */
 
71
} WAVEFORMATEX, *PWAVEFORMATEX, NEAR *NPWAVEFORMATEX, FAR *LPWAVEFORMATEX;
 
72
typedef const WAVEFORMATEX FAR *LPCWAVEFORMATEX;
 
73
 
 
74
#endif // #ifndef _WAVEFORMATEX_
 
75
 
 
76
#endif // #ifndef APE_NOWINDOWS_H
 
77
 
 
78
#endif // #ifndef _WIN32