Skip to content
Snippets Groups Projects

Audio callback sample

Closed Muhammad Azeez requested to merge mhmd_azeez/LibVLCSharp:audio-callback-sample into 3.x
5 unresolved threads

Fixes #239 (closed)

This sample shows you how you can use SetAudioFormatCallback and SetAudioCallbacks. It does two things:

  1. Play the sound from the specified video using NAudio
  2. Extract the sound into a file using NAudio

cc @mfkl

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
90 90 /// </summary>
91 91 static void EnsureVersionsMatch()
92 92 {
93 var libvlcMajorVersion = int.Parse(Native.LibVLCVersion().FromUtf8()?.Split('.').FirstOrDefault() ?? "0");
  • 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>
  • Martin Finkel
  • Muhammad Azeez added 1 commit

    added 1 commit

    Compare with previous version

  • Jérémy VIGNELLES
  • 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
  • Muhammad Azeez added 2 commits

    added 2 commits

    Compare with previous version

  • Muhammad Azeez added 1 commit

    added 1 commit

    Compare with previous version

  • Please register or sign in to reply
    Loading