mirror of https://github.com/stella-emu/stella.git
Changed SoundSDL::close() to SoundSDL::closeDevice() to match the SoundX11
class. Couldn't use close(), since that is a C-style function called in the SoundX11 code. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@137 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
9e45aa1ada
commit
e4f94c55c9
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: SoundSDL.cxx,v 1.3 2002-11-11 02:07:21 bwmott Exp $
|
// $Id: SoundSDL.cxx,v 1.4 2002-11-11 22:07:35 stephena Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
|
@ -97,7 +97,7 @@ SoundSDL::SoundSDL(bool activate)
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
SoundSDL::~SoundSDL()
|
SoundSDL::~SoundSDL()
|
||||||
{
|
{
|
||||||
close();
|
closeDevice();
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
@ -132,7 +132,7 @@ void SoundSDL::mute(bool state)
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
void SoundSDL::close()
|
void SoundSDL::closeDevice()
|
||||||
{
|
{
|
||||||
if(myIsInitializedFlag)
|
if(myIsInitializedFlag)
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: SoundSDL.hxx,v 1.3 2002-11-11 02:07:21 bwmott Exp $
|
// $Id: SoundSDL.hxx,v 1.4 2002-11-11 22:07:35 stephena Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#ifndef SOUNDSDL_HXX
|
#ifndef SOUNDSDL_HXX
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
This class implements the sound API for SDL.
|
This class implements the sound API for SDL.
|
||||||
|
|
||||||
@author Stephen Anthony and Bradford W. Mott
|
@author Stephen Anthony and Bradford W. Mott
|
||||||
@version $Id: SoundSDL.hxx,v 1.3 2002-11-11 02:07:21 bwmott Exp $
|
@version $Id: SoundSDL.hxx,v 1.4 2002-11-11 22:07:35 stephena Exp $
|
||||||
*/
|
*/
|
||||||
class SoundSDL
|
class SoundSDL
|
||||||
{
|
{
|
||||||
|
@ -47,7 +47,7 @@ class SoundSDL
|
||||||
/**
|
/**
|
||||||
Closes the sound device
|
Closes the sound device
|
||||||
*/
|
*/
|
||||||
void close();
|
void closeDevice();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Return the playback sample rate for the sound device.
|
Return the playback sample rate for the sound device.
|
||||||
|
|
Loading…
Reference in New Issue