Thanks for taking the time to response to my question. I already tried that before posting the question but unfortunately, the compiler treats that as a syntax error:I would try to use media.currentAudioTrackIndex = (UInt)-1; which shall result in 0xFFFFFFFF and work.
I found another way to mute but curious how to set -1 as the index as mentioned in the documentation.Binary operator '-' cannot be applied to operands of type '(UInt).Type' (aka 'UInt.Type') and 'Int'
Code: Select all
int main(int argc, const char * argv[]) {
@autoreleasepool {
UInt x;
x = (UInt)-1;
NSLog( @"x is %uld = 0x%x", x, x );
}
return 0;
}
Code: Select all
2016-10-06 16:22:48.412 UIntTest[70763:1076284] x is 4294967295ld = 0xffffffff
Program ended with exit code: 0
Return to “VLC for iOS, iPadOS and Apple TV”
Users browsing this forum: Google [Bot] and 25 guests