File tree Expand file tree Collapse file tree 9 files changed +86
-6
lines changed Expand file tree Collapse file tree 9 files changed +86
-6
lines changed Original file line number Diff line number Diff line change 5252
5353
5454class M4AConverterHandler (SinkHandler ["M4ASink" ]):
55+ """Default handler to add received voice packets to the audio cache data in
56+ a :class:`~.M4ASink`.
57+
58+ .. versionadded:: 2.7
59+ """
60+
5561 def handle_packet (
5662 self , sink : M4ASink , user : abc .Snowflake , packet : RawData
5763 ) -> None :
Original file line number Diff line number Diff line change 5050
5151
5252class MKAConverterHandler (SinkHandler ["MKASink" ]):
53+ """Default handler to add received voice packets to the audio cache data in
54+ a :class:`~.MKASink`.
55+
56+ .. versionadded:: 2.7
57+ """
58+
5359 def handle_packet (
5460 self , sink : MKASink , user : abc .Snowflake , packet : RawData
5561 ) -> None :
Original file line number Diff line number Diff line change 5050
5151
5252class MKVConverterHandler (SinkHandler ["MKVSink" ]):
53+ """Default handler to add received voice packets to the audio cache data in
54+ a :class:`~.MKVSink`.
55+
56+ .. versionadded:: 2.7
57+ """
58+
5359 def handle_packet (
5460 self , sink : MKVSink , user : abc .Snowflake , packet : RawData
5561 ) -> None :
Original file line number Diff line number Diff line change 5050
5151
5252class MP3ConverterHandler (SinkHandler ["MP3Sink" ]):
53+ """Default handler to add received voice packets to the audio cache data in
54+ a :class:`~.MP3Sink`.
55+
56+ .. versionadded:: 2.7
57+ """
58+
5359 def handle_packet (
5460 self , sink : MP3Sink , user : abc .Snowflake , packet : RawData
5561 ) -> None :
Original file line number Diff line number Diff line change 5252
5353
5454class MP4ConverterHandler (SinkHandler ["MP4Sink" ]):
55+ """Default handler to add received voice packets to the audio cache data in
56+ a :class:`~.MP4Sink`.
57+
58+ .. versionadded:: 2.7
59+ """
60+
5561 def handle_packet (
5662 self , sink : MP4Sink , user : abc .Snowflake , packet : RawData
5763 ) -> None :
Original file line number Diff line number Diff line change 5050
5151
5252class OGGConverterHandler (SinkHandler ["OGGSink" ]):
53+ """Default handler to add received voice packets to the audio cache data in
54+ a :class:`~.OGGSink`.
55+
56+ .. versionadded:: 2.7
57+ """
58+
5359 def handle_packet (
5460 self , sink : OGGSink , user : abc .Snowflake , packet : RawData
5561 ) -> None :
Original file line number Diff line number Diff line change 4444
4545
4646class PCMConverterHandler (SinkHandler ["PCMSink" ]):
47+ """Default handler to add received voice packets to the audio cache data in
48+ a :class:`~.PCMSink`.
49+
50+ .. versionadded:: 2.7
51+ """
52+
4753 def handle_packet (
4854 self , sink : PCMSink , user : abc .Snowflake , packet : RawData
4955 ) -> None :
Original file line number Diff line number Diff line change 4747
4848
4949class WaveConverterHandler (SinkHandler ["WaveSink" ]):
50+ """Default handler to add received voice packets to the audio cache data in
51+ a :class:`~.WaveSink`.
52+
53+ .. versionadded:: 2.7
54+ """
55+
5056 def handle_packet (
5157 self , sink : WaveSink , user : abc .Snowflake , packet : RawData
5258 ) -> None :
@@ -55,6 +61,10 @@ def handle_packet(
5561
5662
5763WavConverterHandler : SinkHandler [WavSink ] = WaveConverterHandler # type: ignore
64+ """An alias for :class:`~.WaveConverterHandler`
65+
66+ .. versionadded:: 2.7
67+ """
5868
5969
6070class WaveSink (Sink ):
Original file line number Diff line number Diff line change 66Core
77----
88
9- .. autoclass :: discord.sinks.Filters
9+ .. autoclass :: discord.sinks.Sink
1010 :members:
1111
12- .. autoclass :: discord.sinks.Sink
12+ .. autoclass :: discord.sinks.RawData
1313 :members:
1414
15- .. autoclass :: discord.sinks.AudioData
15+ .. autoclass :: discord.sinks.SinkHandler
1616 :members:
1717
18- .. autoclass :: discord.sinks.RawData
18+ .. autoclass :: discord.sinks.SinkFilter
1919 :members:
2020
2121
22- Sink Classes
23- ------------
22+ Default Sinks
23+ -------------
2424
2525.. autoclass :: discord.sinks.WaveSink
2626 :members:
2727
28+ .. autoclass :: discord.sinks.WavSink
29+ :members:
30+
2831.. autoclass :: discord.sinks.MP3Sink
2932 :members:
3033
@@ -42,3 +45,28 @@ Sink Classes
4245
4346.. autoclass :: discord.sinks.OGGSink
4447 :members:
48+
49+
50+ Default Handlers
51+ ----------------
52+
53+ .. autoclass :: discord.sinks.WaveConverterHandler()
54+ :members:
55+
56+ .. autoclass :: discord.sinks.MP3ConverterHandler()
57+ :members:
58+
59+ .. autoclass :: discord.sinks.MP4ConverterHandler()
60+ :members:
61+
62+ .. autoclass :: discord.sinks.M4AConverterHandler()
63+ :members:
64+
65+ .. autoclass :: discord.sinks.MKVConverterHandler()
66+ :members:
67+
68+ .. autoclass :: discord.sinks.MKAConverterHandler()
69+ :members:
70+
71+ .. autoclass :: discord.sinks.OGGConverterHandler()
72+ :members:
You can’t perform that action at this time.
0 commit comments