Skip to content

Commit

Permalink
iOS: WaveForm - Image cache now generating in a different thread.
Browse files Browse the repository at this point in the history
iOS: Several bug fixes on the WaveForm control on iOS.
iOS: Added CoreGraphicsHelper (ported from MPfm.Mac).

Related to issue #405.
  • Loading branch information
ycastonguay committed Mar 12, 2013
1 parent 71c6540 commit f6169b6
Show file tree
Hide file tree
Showing 6 changed files with 432 additions and 225 deletions.
3 changes: 3 additions & 0 deletions MPfm/MPfm.Sound/PeakFiles/PeakFileGenerator.cs
Expand Up @@ -214,6 +214,7 @@ public void GeneratePeakFile(string audioFilePath, string peakFilePath)
cancelled = true;
IsLoading = false;
OnProcessDone(new PeakFileDoneData() {
AudioFilePath = audioFilePath,
Cancelled = true
});
break;
Expand Down Expand Up @@ -330,6 +331,7 @@ public void GeneratePeakFile(string audioFilePath, string peakFilePath)
// Set completed
IsLoading = false;
OnProcessDone(new PeakFileDoneData() {
AudioFilePath = audioFilePath,
Cancelled = false
});
}, cancellationToken, TaskCreationOptions.LongRunning, TaskScheduler.Current);
Expand Down Expand Up @@ -534,6 +536,7 @@ public class PeakFileProgressData
/// </summary>
public class PeakFileDoneData
{
public string AudioFilePath { get; set; }
public bool Cancelled { get; set; }
}

Expand Down
5 changes: 3 additions & 2 deletions MPfm/MPfm.iOS/Classes/Controllers/PlayerViewController.cs
Expand Up @@ -22,18 +22,19 @@
using System.Linq;
using System.Timers;
using MPfm.Core;
using MPfm.MVP.Messages;
using MPfm.MVP.Models;
using MPfm.MVP.Views;
using MPfm.Player;
using MPfm.Sound.AudioFiles;
using MPfm.Sound.Bass.Net;
using MonoTouch.CoreGraphics;
using MonoTouch.Foundation;
using MonoTouch.MediaPlayer;
using MonoTouch.UIKit;
using MPfm.iOS.Classes.Controllers.Base;
using MPfm.iOS.Classes.Controls;
using MonoTouch.MediaPlayer;
using MPfm.MVP.Messages;
using MPfm.iOS.Helpers;

namespace MPfm.iOS.Classes.Controllers
{
Expand Down

0 comments on commit f6169b6

Please sign in to comment.