You need to sign in or sign up before continuing.
Audio callback sample
5 unresolved threads
5 unresolved threads
Fixes #239 (closed)
This sample shows you how you can use SetAudioFormatCallback
and SetAudioCallbacks
. It does two things:
- Play the sound from the specified video using NAudio
- Extract the sound into a file using NAudio
cc @mfkl
Merge request reports
Activity
Filter activity
90 90 /// </summary> 91 91 static void EnsureVersionsMatch() 92 92 { 93 var libvlcMajorVersion = int.Parse(Native.LibVLCVersion().FromUtf8()?.Split('.').FirstOrDefault() ?? "0"); @mfkl No I was not doing anything special. For some reason when I was working on this PR,
libvlcsharpMajorVersion
was returning1
even though it was specified as3
. So I commented it out so that I could keep working on it.changed this line in version 2 of the diff
1 <Project Sdk="Microsoft.NET.Sdk"> 2 <PropertyGroup> 3 <OutputType>Exe</OutputType> 4 <TargetFramework>netcoreapp2.0</TargetFramework> 5 <Platforms>AnyCPU;x64;x86</Platforms> 6 <RuntimeIdentifiers>win7-x64;win7-x86;osx-x64</RuntimeIdentifiers> changed this line in version 3 of the diff
- Resolved by Muhammad Azeez
- Resolved by Jérémy VIGNELLES
- Resolved by Muhammad Azeez
91 91 EndProject 92 92 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.MediaPlayerElement.UWP", "..\samples\Uno\Sample.MediaPlayerElement\Sample.MediaPlayerElement.UWP\Sample.MediaPlayerElement.UWP.csproj", "{3CCE13EB-C3E6-491A-BEDD-7B3EDDB12549}" 93 93 EndProject 94 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibVLCSharp.NETCore.AudioCallbacksSample", "..\samples\LibVLCSharp.NETCore.AudioCallbacksSample\LibVLCSharp.NETCore.AudioCallbacksSample.csproj", "{CF9AF7D1-556E-4765-844A-57613F0716C1}" 95 EndProject 94 96 Global 95 GlobalSection(SharedMSBuildProjectFiles) = preSolution Wouldn't this PR be better placed in https://code.videolan.org/mfkl/libvlcsharp-samples ? I mean, we already have trivial samples here, but more complex projects should go there, right ?
added 2 commits
mentioned in merge request mfkl/libvlcsharp-samples!4 (closed)