summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/cdda.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/cdda.c')
-rw-r--r--src/emu/sound/cdda.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/emu/sound/cdda.c b/src/emu/sound/cdda.c
index 9e3cb3c06d6..ffdff6597fc 100644
--- a/src/emu/sound/cdda.c
+++ b/src/emu/sound/cdda.c
@@ -9,16 +9,16 @@
struct cdda_info
{
- sound_stream * stream;
- cdrom_file * disc;
+ sound_stream * stream;
+ cdrom_file * disc;
- INT8 audio_playing, audio_pause, audio_ended_normally;
- UINT32 audio_lba, audio_length;
+ INT8 audio_playing, audio_pause, audio_ended_normally;
+ UINT32 audio_lba, audio_length;
- UINT8 * audio_cache;
- UINT32 audio_samples;
- UINT32 audio_bptr;
- INT16 audio_volume[2];
+ UINT8 * audio_cache;
+ UINT32 audio_samples;
+ UINT32 audio_bptr;
+ INT16 audio_volume[2];
};
INLINE cdda_info *get_safe_token(device_t *device)
@@ -216,7 +216,7 @@ static void get_audio_data(cdda_info *info, stream_sample_t *bufL, stream_sample
INT16 *audio_cache = (INT16 *) info->audio_cache;
/* if no file, audio not playing, audio paused, or out of disc data,
- just zero fill */
+ just zero fill */
if (!info->disc || !info->audio_playing || info->audio_pause || (!info->audio_length && !info->audio_samples))
{
if( info->disc && info->audio_playing && !info->audio_pause && !info->audio_length )
@@ -332,7 +332,7 @@ const device_type CDDA = &device_creator<cdda_device>;
cdda_device::cdda_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, CDDA, "CD/DA", tag, owner, clock),
- device_sound_interface(mconfig, *this)
+ device_sound_interface(mconfig, *this)
{
m_token = global_alloc_clear(cdda_info);
}
@@ -365,5 +365,3 @@ void cdda_device::sound_stream_update(sound_stream &stream, stream_sample_t **in
// should never get here
fatalerror("sound_stream_update called; not applicable to legacy sound devices\n");
}
-
-