Subversion Repositories eduke32

Rev

Rev 5768 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1471 terminx 1
/*
2
 Copyright (C) 2009 Jonathon Fowler <jf@jonof.id.au>
5768 hendricks2 3
 
1471 terminx 4
 This program is free software; you can redistribute it and/or
5
 modify it under the terms of the GNU General Public License
6
 as published by the Free Software Foundation; either version 2
7
 of the License, or (at your option) any later version.
5768 hendricks2 8
 
1471 terminx 9
 This program is distributed in the hope that it will be useful,
10
 but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5768 hendricks2 12
 
1471 terminx 13
 See the GNU General Public License for more details.
5768 hendricks2 14
 
1471 terminx 15
 You should have received a copy of the GNU General Public License
16
 along with this program; if not, write to the Free Software
4541 hendricks2 17
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
5768 hendricks2 18
 
1471 terminx 19
 */
20
 
21
/**
22
 * Stub driver for no output
23
 */
24
 
25
#include "inttypes.h"
26
 
1764 plagman 27
#ifndef UNREFERENCED_PARAMETER
28
# define UNREFERENCED_PARAMETER(x) x=x
29
#endif
30
 
31
 
1471 terminx 32
int32_t NoSoundDrv_GetError(void)
33
{
1764 plagman 34
    return 0;
1471 terminx 35
}
36
 
37
const char *NoSoundDrv_ErrorString( int32_t ErrorNumber )
38
{
1764 plagman 39
    UNREFERENCED_PARAMETER(ErrorNumber);
40
    return "No sound, Ok.";
1471 terminx 41
}
42
 
5272 terminx 43
int32_t NoSoundDrv_PCM_Init(int32_t *mixrate, int32_t *numchannels, void * initdata)
1471 terminx 44
{
1764 plagman 45
    UNREFERENCED_PARAMETER(mixrate);
46
    UNREFERENCED_PARAMETER(numchannels);
47
    UNREFERENCED_PARAMETER(initdata);
48
    return 0;
1471 terminx 49
}
50
 
1481 terminx 51
void NoSoundDrv_PCM_Shutdown(void)
1471 terminx 52
{
53
}
54
 
1481 terminx 55
int32_t NoSoundDrv_PCM_BeginPlayback(char *BufferStart, int32_t BufferSize,
1471 terminx 56
                                                int32_t NumDivisions, void ( *CallBackFunc )( void ) )
57
{
1764 plagman 58
    UNREFERENCED_PARAMETER(BufferStart);
59
    UNREFERENCED_PARAMETER(BufferSize);
60
    UNREFERENCED_PARAMETER(NumDivisions);
61
    UNREFERENCED_PARAMETER(CallBackFunc);
62
    return 0;
1471 terminx 63
}
64
 
1481 terminx 65
void NoSoundDrv_PCM_StopPlayback(void)
1471 terminx 66
{
67
}
68
 
1481 terminx 69
void NoSoundDrv_PCM_Lock(void)
1471 terminx 70
{
71
}
72
 
1481 terminx 73
void NoSoundDrv_PCM_Unlock(void)
1471 terminx 74
{
75
}