From 20515d609ddb1c66dcf9af12ebeba116ab51d6d1 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sun, 7 Nov 2010 10:04:15 +0000 Subject: [PATCH] sound.lib: SetTimeBase() & GetTimeStamp() git-svn-id: svn://kolibrios.org@1691 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/sdk/trunk/sound/include/snd.inc | 3 +++ programs/develop/sdk/trunk/sound/include/sound.h | 6 ++++++ programs/develop/sdk/trunk/sound/src/snd.inc | 2 ++ 3 files changed, 11 insertions(+) diff --git a/programs/develop/sdk/trunk/sound/include/snd.inc b/programs/develop/sdk/trunk/sound/include/snd.inc index c8337e83c7..6e56a4e443 100644 --- a/programs/develop/sdk/trunk/sound/include/snd.inc +++ b/programs/develop/sdk/trunk/sound/include/snd.inc @@ -30,6 +30,9 @@ SND_SETPAN equ 14 SND_GETPAN equ 15 SND_GETBUFFSIZE equ 16 SND_GETFREESPACE equ 17 +SND_SETTIMEBASE equ 18 +SND_GETTIMESTAMP equ 19 + DEV_SET_BUFF equ 4 DEV_NOTIFY equ 5 diff --git a/programs/develop/sdk/trunk/sound/include/sound.h b/programs/develop/sdk/trunk/sound/include/sound.h index 48bb53b67b..87be0e7fff 100644 --- a/programs/develop/sdk/trunk/sound/include/sound.h +++ b/programs/develop/sdk/trunk/sound/include/sound.h @@ -71,6 +71,9 @@ extern "C" #define SND_GETPAN 15 #define SND_GETBUFFSIZE 16 #define SND_GETFREESPACE 17 +#define SND_SETTIMEBASE 18 +#define SND_GETTIMESTAMP 19 + #define PLAY_SYNC 0x80000000 @@ -104,6 +107,9 @@ int _stdcall GetPan(SNDBUF hBuff, int *pan); int _stdcall GetMasterVol(int* vol); int _stdcall SetMasterVol(int vol); +int _stdcall SetTimeBase(SNDBUF hBuff, double base); +int _stdcall GetTimeStamp(SNDBUF hBuff, double *stamp); + typedef struct { diff --git a/programs/develop/sdk/trunk/sound/src/snd.inc b/programs/develop/sdk/trunk/sound/src/snd.inc index c8337e83c7..a098d41877 100644 --- a/programs/develop/sdk/trunk/sound/src/snd.inc +++ b/programs/develop/sdk/trunk/sound/src/snd.inc @@ -30,6 +30,8 @@ SND_SETPAN equ 14 SND_GETPAN equ 15 SND_GETBUFFSIZE equ 16 SND_GETFREESPACE equ 17 +SND_SETTIMEBASE equ 18 +SND_GETTIMESTAMP equ 19 DEV_SET_BUFF equ 4 DEV_NOTIFY equ 5