Skip to content

Instantly share code, notes, and snippets.

View atsushieno's full-sized avatar
💭
anything unrelated to my writings will be put in low priority queue for months

Atsushi Eno atsushieno

💭
anything unrelated to my writings will be put in low priority queue for months
View GitHub Profile
#OPN@0 { 5,4
31, 8,16,13, 4, 0,0,15,0,0;
31,14, 0,13, 8, 0,0, 5,0,0;
31,14,21,13, 7, 0,0, 5,1,0;
31,16,10,13, 5, 18,0,10,0,0; };
%6@0 o6[a4]8
#OPN@2 { 5,4
14,11, 0,15,10, 0,0,15,0,0;
20,14,31,15, 7, 11,0, 9,0,0;
15,14,31,15, 7, 1,0,10,0,0;
21,14,31,15, 7, 11,0, 6,0,0; };
%6@2 o6[f+4]8;
#OPN@0 { 4,5
20, 4, 0, 8, 3, 18,0, 4,3,0;
20, 6, 0, 8, 5, 0,0, 4,3,0;
15, 4, 0, 8, 0, 18,2, 4,7,0;
20, 6, 0, 8, 5, 0,0, 4,3,0; };
#A=%6@0 o4e16e1 ;
#B=%6@0 o4g16g1 ;
#C=%6@0 o5c16c1 ;
// It doesn't generate useful file.
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using NRenoiseTools;
using NAudio.SoundFont;
using NAudio.Wave;
using SInstrument = NAudio.SoundFont.Instrument;
package name.atsushieno;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
@atsushieno
atsushieno / gist:302706
Created February 12, 2010 16:26
SMF to JET converter for Android JetPlayer
/*
Copyright (C) 2010 Atsushi Eno http://github.com/atsushieno
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
package name.atsushieno;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import android.R.style;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
package name.atsushieno;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import org.apache.http.client.ClientProtocolException;
// importer code ----
var ccu = new CodeCompileUnit ();
var xdi = new XsdDataContractImporter (ccu);
var xss = new XmlSchemaSet ();
foreach (var arg in args)
xss.Add (null, arg);
xss.Compile ();
xdi.Import (xss);
// --------
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp
index df673a4..49032e7 100644
--- a/media/libmediaplayerservice/MediaPlayerService.cpp
+++ b/media/libmediaplayerservice/MediaPlayerService.cpp
@@ -682,7 +682,7 @@ player_type getPlayerType(const char* url)
int len = strlen(FILE_EXTS[i].extension);
int start = lenURL - len;
if (start > 0) {
- if (!strncmp(url + start, FILE_EXTS[i].extension, len)) {
+ if (!strncasecmp(url + start, FILE_EXTS[i].extension, len)) {