Comments (3)
For example, i run the code client:play("/home/cloud/Documents/Lua/Bot/SONG.ogg",0.5)
and all I get back is nil error opening file 0.5: unknown error
from lua-mumble.
So A) I figured out that your error handling in the C function responsible for play is taking the wrong argument, and B) Playback of ogg vorbis ripped via youtube-dl seems to be slowed down and pitched down via the bot somehow.
from lua-mumble.
Sorry for the late reply, I literally didn't get any notifications for this issue report.
The arguments that it checks are correct. The first argument is technically the client being passed to itself. It's how Lua handles "self"
client:play("somefile.ogg")
and client.play(client, "somefile.ogg")
do the same exact things.
So I'm checking for the client, then the file, then optionally volume.
The pitch issue is because I don't do any audio resampling. Make sure the audio file is at 48000Hz bitrate and it should play normally.
from lua-mumble.
Related Issues (20)
- Compilation error from duplicate packet_handler definitions HOT 6
- Private message event HOT 1
- Question: How to capture incoming audio stream? HOT 20
- Implement pluginData sending function HOT 6
- timer.c realloc(): invalid next size HOT 41
- hook onUserChannel() not called? HOT 2
- Add sample speed informatin to OnUserSpeak() hook HOT 10
- uninitialized error variable in client_play() HOT 3
- client_isPlaying channel taken from incorrect argument
- Played samples not audible after some time (client:transmit) HOT 13
- Hook:OnMessage HOT 5
- sendPluginData with list broken? `bad argument #3 to 'sendPluginData' (mumble.user expected, got table)` HOT 25
- Question: timers and access to shared variable - lock needed? HOT 8
- How to compile? HOT 19
- Stuttery Audio playback HOT 9
- Timer counter HOT 1
- Crash in timer.lua example script HOT 7
- Typo in README.md (mumble.user:isMuted()) and non-working mumble.user:isSelfMute() HOT 2
- Add plugin packets HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lua-mumble.