Click here to Skip to main content
15,912,207 members
Home / Discussions / C#
   

C#

 
AnswerRe: How keep areference of string Pin
Heath Stewart8-Dec-03 18:28
protectorHeath Stewart8-Dec-03 18:28 
GeneralCreating a Table (Class Scheduler) Pin
Justin LaRose8-Dec-03 16:47
Justin LaRose8-Dec-03 16:47 
GeneralRe: Creating a Table (Class Scheduler) Pin
Heath Stewart8-Dec-03 18:25
protectorHeath Stewart8-Dec-03 18:25 
GeneralAccessing variables from the code behind page Pin
jaimecavazos8-Dec-03 15:24
jaimecavazos8-Dec-03 15:24 
GeneralRe: Accessing variables from the code behind page Pin
Heath Stewart8-Dec-03 18:22
protectorHeath Stewart8-Dec-03 18:22 
GeneralRe: Accessing variables from the code behind page Pin
jaimecavazos9-Dec-03 6:24
jaimecavazos9-Dec-03 6:24 
GeneralCustom Tree View Painting Pin
vektuz8-Dec-03 14:14
vektuz8-Dec-03 14:14 
GeneralRe: Custom Tree View Painting Pin
Heath Stewart8-Dec-03 18:19
protectorHeath Stewart8-Dec-03 18:19 
GeneralRe: Custom Tree View Painting Pin
vektuz8-Dec-03 20:25
vektuz8-Dec-03 20:25 
GeneralRe: Custom Tree View Painting Pin
J. Dunlap8-Dec-03 20:42
J. Dunlap8-Dec-03 20:42 
GeneralRe: Custom Tree View Painting Pin
Heath Stewart9-Dec-03 2:41
protectorHeath Stewart9-Dec-03 2:41 
GeneralProblem with MSDN Pin
Redbehelit8-Dec-03 14:00
Redbehelit8-Dec-03 14:00 
GeneralRe: Problem with MSDN Pin
Heath Stewart8-Dec-03 18:12
protectorHeath Stewart8-Dec-03 18:12 
Generalconvert to c# Pin
Rob Tomson8-Dec-03 13:16
Rob Tomson8-Dec-03 13:16 
GeneralRe: convert to c# Pin
Christian Graus8-Dec-03 16:07
protectorChristian Graus8-Dec-03 16:07 
GeneralRe: convert to c# Pin
Christian Graus8-Dec-03 16:40
protectorChristian Graus8-Dec-03 16:40 
GeneralRe: convert to c# Pin
Rob Tomson8-Dec-03 17:58
Rob Tomson8-Dec-03 17:58 
GeneralRe: convert to c# Pin
Heath Stewart8-Dec-03 18:10
protectorHeath Stewart8-Dec-03 18:10 
GeneralList View Scroll Pin
compubaby8-Dec-03 12:25
compubaby8-Dec-03 12:25 
GeneralRe: List View Scroll Pin
Heath Stewart8-Dec-03 18:05
protectorHeath Stewart8-Dec-03 18:05 
Generalsome general questions about sounds Pin
blakeb_18-Dec-03 8:52
blakeb_18-Dec-03 8:52 
GeneralRe: some general questions about sounds Pin
Heath Stewart8-Dec-03 9:54
protectorHeath Stewart8-Dec-03 9:54 
Any of those libraries deal with WAV files, and your WAV files will pretty much be the same size depending on recording quality. As we discussed before, if you want to decrease the size you'll need to encode them as MP3s, OGGs, WMAs, or whatever.

As far as storing them in the database, it's just my opinion that this would add a lot of complexity because you have to (in most cases) get a "pointer" to the data and use a stream to save the file (perhaps just to memory) so that it could be played. Perhaps there's an easier way, but simplying playing a persistent file would be easier. In either case, the file will take up about the same amount of room. The database (at least Access) won't compress the contents, so it would be the same size in the database that it would be on disk. The only difficulty with the disk approach is that your database probably shouldn't store absolute paths (to work in any case and in any location) so your program should resolve the path to the same file. For instance, lets say you store the path relative to the application's installation directory. You could then do a simple Path.Combine:
string relpath = path_from_database;
string path = Path.Combine(Application.StartupPath, relpath);
PlaySound(path); // Made-up function name, of course


 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: some general questions about sounds Pin
blakeb_18-Dec-03 9:57
blakeb_18-Dec-03 9:57 
GeneralRe: some general questions about sounds Pin
Heath Stewart8-Dec-03 10:02
protectorHeath Stewart8-Dec-03 10:02 
GeneralRe: some general questions about sounds Pin
leppie8-Dec-03 10:33
leppie8-Dec-03 10:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.