diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-08-01 10:07:12 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-08-01 10:07:12 +0000 |
commit | b0965c317babb7d25b3d42241788661b94c59fa2 (patch) | |
tree | c0b156c2dd69672a1bbd237d201dd74ccff4bc52 /src/playerData.c | |
parent | c22a53d373f840569c56a1b3f6a774fc94b1e1e1 (diff) | |
download | mpd-b0965c317babb7d25b3d42241788661b94c59fa2.tar.gz mpd-b0965c317babb7d25b3d42241788661b94c59fa2.tar.xz mpd-b0965c317babb7d25b3d42241788661b94c59fa2.zip |
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
Diffstat (limited to 'src/playerData.c')
-rw-r--r-- | src/playerData.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |