From b0965c317babb7d25b3d42241788661b94c59fa2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 1 Aug 2006 10:07:12 +0000 Subject: audio: get rid of the myAudioDevicesEnabled array It just made things more confusing. We'll just store the states in playerData_pd->audioDevicesStates and be done with it (it's a unsigned byte now). git-svn-id: https://svn.musicpd.org/mpd/trunk@4514 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playerData.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/playerData.c') diff --git a/src/playerData.c b/src/playerData.c index f566b5c79..79663f00f 100644 --- a/src/playerData.c +++ b/src/playerData.c @@ -92,7 +92,7 @@ void initPlayerData(void) allocationSize += buffered_chunks * sizeof(mpd_sint8); /*for metaChunk */ allocationSize += sizeof(PlayerData); /*for playerData struct */ - /* for audioDeviceEnabled[] */ + /* for audioDeviceStates[] */ allocationSize += device_array_size; if ((shmid = shmget(IPC_PRIVATE, allocationSize, IPC_CREAT | 0600)) < 0) { @@ -108,7 +108,7 @@ void initPlayerData(void) exit(EXIT_FAILURE); } - playerData_pd->audioDeviceEnabled = (char *)playerData_pd + + playerData_pd->audioDeviceStates = (mpd_uint8 *)playerData_pd + allocationSize - device_array_size; buffer = &(playerData_pd->buffer); -- cgit v1.2.3