chanmask.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Copyright (c) 1983-2013 Richard Dobson and Composers Desktop Project Ltd
  3. * http://people.bath.ac.uk/masrwd
  4. * http://www.composersdesktop.com
  5. * This file is part of the CDP System.
  6. * The CDP System is free software; you can redistribute it
  7. * and/or modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * The CDP System is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. * See the GNU Lesser General Public License for more details.
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with the CDP System; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. *
  19. */
  20. /*chanmask.h*/
  21. #ifndef __CHANMASK_H_INCLUDED
  22. #define __CHANMASK_H_INCLUDED
  23. #define NUM_SPEAKER_POSITIONS (18)
  24. #define SPEAKER_FRONT_LEFT 0x1
  25. #define SPEAKER_FRONT_RIGHT 0x2
  26. #define SPEAKER_FRONT_CENTER 0x4
  27. #define SPEAKER_LOW_FREQUENCY 0x8
  28. #define SPEAKER_BACK_LEFT 0x10
  29. #define SPEAKER_BACK_RIGHT 0x20
  30. #define SPEAKER_FRONT_LEFT_OF_CENTER 0x40
  31. #define SPEAKER_FRONT_RIGHT_OF_CENTER 0x80
  32. #define SPEAKER_BACK_CENTER 0x100
  33. #define SPEAKER_SIDE_LEFT 0x200
  34. #define SPEAKER_SIDE_RIGHT 0x400
  35. #define SPEAKER_TOP_CENTER 0x800
  36. #define SPEAKER_TOP_FRONT_LEFT 0x1000
  37. #define SPEAKER_TOP_FRONT_CENTER 0x2000
  38. #define SPEAKER_TOP_FRONT_RIGHT 0x4000
  39. #define SPEAKER_TOP_BACK_LEFT 0x8000
  40. #define SPEAKER_TOP_BACK_CENTER 0x10000
  41. #define SPEAKER_TOP_BACK_RIGHT 0x20000
  42. /* RWD 2022 use latest version from MS */
  43. #define SPEAKER_RESERVED 0x7FFC0000
  44. #define SPEAKER_ALL 0x80000000
  45. /* my extras*/
  46. #define SPKRS_UNASSIGNED (0)
  47. #define SPKRS_MONO (0x00000004) /* RWD 11:20 correction, was 0x01! */
  48. #define SPKRS_STEREO (0x00000003)
  49. #define SPKRS_GENERIC_QUAD (0x00000033)
  50. #define SPKRS_SURROUND_LCRS (0x00000107)
  51. #define SPKRS_DOLBY5_1 (0x0000003f)
  52. #define SPKRS_SURR_5_0 (0x00000037) /* March 2008 */
  53. #define SPKRS_SURR_6_1 (0x0000013f) /* RELEASE7 2013 */
  54. #define SPKRS_SURR_7_1 (0x000000ff) /* OCT 2009 */
  55. #define SPKRS_CUBE (0x0002d033)
  56. #define SPKRS_ACCEPT_ALL (0xffffffff) /*???? no use for a file*/
  57. #endif