OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 30 matching lines...) Expand all Loading... |
41 MPD_TX = 1 << 1, | 41 MPD_TX = 1 << 1, |
42 MPD_RX_AND_TX = MPD_RX | MPD_TX, | 42 MPD_RX_AND_TX = MPD_RX | MPD_TX, |
43 }; | 43 }; |
44 | 44 |
45 class VoiceProcessor : public sigslot::has_slots<> { | 45 class VoiceProcessor : public sigslot::has_slots<> { |
46 public: | 46 public: |
47 virtual ~VoiceProcessor() {} | 47 virtual ~VoiceProcessor() {} |
48 // Contents of frame may be manipulated by the processor. | 48 // Contents of frame may be manipulated by the processor. |
49 // The processed data is expected to be the same size as the | 49 // The processed data is expected to be the same size as the |
50 // original data. | 50 // original data. |
51 virtual void OnFrame(uint32 ssrc, | 51 virtual void OnFrame(uint32_t ssrc, |
52 MediaProcessorDirection direction, | 52 MediaProcessorDirection direction, |
53 AudioFrame* frame) = 0; | 53 AudioFrame* frame) = 0; |
54 }; | 54 }; |
55 | 55 |
56 } // namespace cricket | 56 } // namespace cricket |
57 #endif // TALK_MEDIA_BASE_VOICEPROCESSOR_H_ | 57 #endif // TALK_MEDIA_BASE_VOICEPROCESSOR_H_ |
OLD | NEW |