-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added configuration for paths to stored files. Added routes for media files. Added logging to audio module and implementation of wavpack (.wv to .wav with segmenting).
- Loading branch information
Mark
committed
Oct 25, 2012
1 parent
c48e15e
commit 84c3542
Showing
13 changed files
with
105 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h1>Media#index</h1> | ||
<p>Index page for media controller.</p> | ||
<p><%= @testing %></p> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<h1>Media#item</h1> | ||
<p>Individual item page for media controller.</p> | ||
<p><%= @avail_params %></p> | ||
<p><%= @file_path %></p> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module Cache | ||
|
||
public | ||
|
||
# calculate the target file name and path based on the modification parameters | ||
def self.calculate_target_path(modify_parameters = {}) | ||
#Mime::Type.lookup_by_extension( | ||
#QubarSite::Application.config.media_file_config | ||
end | ||
|
||
# check to see if a target file exists | ||
def self.exists(source, modify_parameters = {}) | ||
File.exists? calculate_target_path(source, modify_parameters) | ||
end | ||
|
||
private | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class String | ||
def trim(replace_chars, substitute_chars) | ||
"#{self}".gsub(/^[#{substitute_chars}]+|[#{substitute_chars}]+$/, replace_chars) | ||
end | ||
end |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sudo apt-get install ffmpeg=4:0.8.3-0ubuntu0.12.04.1 mp3splt=2.4.1-0ubuntu1 sox=14.3.2-3 wavpack=4.60.1-2 |