__init__.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # -*- coding: utf-8 -*-
  2. """
  3. Trixy Music-Modul.
  4. Musik-Wiedergabe mit Playlist-Unterstützung, mehreren Quellen und Formaten.
  5. Streaming an einen oder mehrere Satellites.
  6. """
  7. from trixy_core.music.track import (
  8. Track,
  9. TrackMetadata,
  10. TrackState,
  11. )
  12. from trixy_core.music.playlist import (
  13. Playlist,
  14. PlaylistItem,
  15. PlaylistManager,
  16. RepeatMode,
  17. ShuffleMode,
  18. )
  19. from trixy_core.music.queue import (
  20. PlayQueue,
  21. QueueItem,
  22. QueueState,
  23. )
  24. from trixy_core.music.sources import (
  25. MusicSource,
  26. SourceType,
  27. LocalFileSource,
  28. USBSource,
  29. URLSource,
  30. SourceManager,
  31. )
  32. from trixy_core.music.formats import (
  33. AudioDecoder,
  34. AudioFormat,
  35. MP3Decoder,
  36. WAVDecoder,
  37. OGGDecoder,
  38. FLACDecoder,
  39. DecoderRegistry,
  40. )
  41. from trixy_core.music.stream import (
  42. AudioStreamer,
  43. StreamSession,
  44. StreamConfig,
  45. StreamState,
  46. )
  47. from trixy_core.music.player import (
  48. MusicPlayer,
  49. PlayerConfig,
  50. PlayerState,
  51. PlaybackEvent,
  52. )
  53. from trixy_core.music.service import MusicPlayerService
  54. __all__ = [
  55. # Track
  56. "Track",
  57. "TrackMetadata",
  58. "TrackState",
  59. # Playlist
  60. "Playlist",
  61. "PlaylistItem",
  62. "PlaylistManager",
  63. "RepeatMode",
  64. "ShuffleMode",
  65. # Queue
  66. "PlayQueue",
  67. "QueueItem",
  68. "QueueState",
  69. # Sources
  70. "MusicSource",
  71. "SourceType",
  72. "LocalFileSource",
  73. "USBSource",
  74. "URLSource",
  75. "SourceManager",
  76. # Formats
  77. "AudioDecoder",
  78. "AudioFormat",
  79. "MP3Decoder",
  80. "WAVDecoder",
  81. "OGGDecoder",
  82. "FLACDecoder",
  83. "DecoderRegistry",
  84. # Stream
  85. "AudioStreamer",
  86. "StreamSession",
  87. "StreamConfig",
  88. "StreamState",
  89. # Player
  90. "MusicPlayer",
  91. "PlayerConfig",
  92. "PlayerState",
  93. "PlaybackEvent",
  94. # Service
  95. "MusicPlayerService",
  96. ]