스킵 구현

This commit is contained in:
2023-12-20 19:45:25 +09:00
parent 6503fd167b
commit 8a987320e0
775 changed files with 162601 additions and 135 deletions

View File

@@ -0,0 +1,13 @@
\page stream-mp3-discord-bot Streaming MP3 Files
To stream MP3 files via D++ you need to link an additional dependency to your bot, namely `libmpg123`. It is relatively simple when linking this library to your bot to then decode audio to PCM and send it to the dpp::discord_voice_client::send_audio_raw function as shown below:
\include{cpp} mp3.cpp
To compile this program you must remember to specify `libmpg123` alongside `libdpp` in the build command, for example:
```bash
g++ -std=c++17 -o musictest musictest.cpp -lmpg123 -ldpp
```
\include{doc} install_prebuilt_footer.dox