Skip to content

Instantly share code, notes, and snippets.

//
// Music Player
// This class will stream an MP3 file over HTTP using the Direct Show API
//
//////////////////////////////
//
// MusicPlayer.h
//
@jimmcgowan
jimmcgowan / StickyNoteView.m
Created October 21, 2013 14:46
The sticky notes in Reference Tracker are instances of an NSControl subclass, StickyNoteView. You can add them as subviews of any NSViews in your application. They can be dragged around and resized, can change colour and font, and the default font can be stored in user defaults.
/*
* StickyNoteView
*
* Created by Jim McGowan on 04/10/2007.
* Updated 05/09/2012 for Reference Tracker 2
*
* This code uses ARC
*
* Copyright (c) 2006 - 2010 Jim McGowan
* All rights reserved.
@jimmcgowan
jimmcgowan / wavecuepoint.c
Last active February 12, 2024 18:08
This code reads a .wav file and a text file containing marker locations (specified as frame indexes, one per line) and creates a new .wav file with embedded cue points for each location. The code is standard, portable C.
//
// wavecuepoint.c
// Created by Jim McGowan on 29/11/12.
// jim@bleepsandpops.com
// jim@malkinware.com
//
// This function reads a .wav file and a text file containing marker locations (specified as frame indexes, one per line)
// and creates a new .wav file with embedded cue points for each location. The code is standard, portable C.
//
// For a full description see http://bleepsandpops.com/post/37792760450/adding-cue-points-to-wav-files-in-c
@jimmcgowan
jimmcgowan / EchoPrint Codegen Cocoa Example.m
Created July 9, 2011 11:25
A simple example of using the EchoPrint Codegen to fingerprint an mp3 file and look for a match on EchoNest. For OS X or iOS using Cocoa and Core Audio.
//
// EchoPrint Cocoa Example
// Created by Jim McGowan on 08/07/2011.
// jim at bleepsandpops dot com
//
// A simple example of using the EchoPrint Codegen to fingerprint an mp3 file and
// look for a match on EchoNest. For OS X or iOS. Error checking removed for brevity.
//
// Requires the 'Other C Flags' XCode build setting "-x objective-c++" to compile as Objective-C++
//